From 1a3d2c32119e15d64008a94624e592cda70b734e Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Fri, 19 Feb 2021 20:53:24 -0800 Subject: [PATCH] Coalesce NOPs --- Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp b/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp index e532ba72ca..5511fe0dfe 100644 --- a/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp +++ b/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp @@ -209,7 +209,18 @@ void FIFOAnalyzer::UpdateDetails() switch (command) { case OpcodeDecoder::GX_NOP: - new_label = QStringLiteral("NOP"); + if (object[object_offset] == OpcodeDecoder::GX_NOP) + { + u32 nop_count = 2; + while (object[++object_offset] == OpcodeDecoder::GX_NOP) + nop_count++; + + new_label = QStringLiteral("NOP (%1x)").arg(nop_count); + } + else + { + new_label = QStringLiteral("NOP"); + } break; case OpcodeDecoder::GX_CMD_UNKNOWN_METRICS: