mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-01 21:52:41 +02:00
Coalesce NOPs
This commit is contained in:
parent
2ddf2c3ba2
commit
1a3d2c3211
@ -209,7 +209,18 @@ void FIFOAnalyzer::UpdateDetails()
|
|||||||
switch (command)
|
switch (command)
|
||||||
{
|
{
|
||||||
case OpcodeDecoder::GX_NOP:
|
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;
|
break;
|
||||||
|
|
||||||
case OpcodeDecoder::GX_CMD_UNKNOWN_METRICS:
|
case OpcodeDecoder::GX_CMD_UNKNOWN_METRICS:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user