GSDumpGUI: Run one frame per loop for better performance.

Also, make sure to check messages before vsync. GSdx message loop runs per vsync.
This commit is contained in:
KrossX 2019-07-29 10:06:08 -03:00 committed by lightningterror
parent 0d6b9e9570
commit 317683461f
1 changed files with 9 additions and 3 deletions

View File

@ -315,9 +315,15 @@ namespace GSDumpGUI
}
else
{
GSData itm = dump.Data[gs_idx++];
CurrentGIFPacket = itm;
Step(itm, pointer);
while (gs_idx < dump.Data.Count)
{
GSData itm = dump.Data[gs_idx++];
CurrentGIFPacket = itm;
Step(itm, pointer);
if (gs_idx < dump.Data.Count && dump.Data[gs_idx].id == GSType.VSync)
break;
}
if (gs_idx >= dump.Data.Count) gs_idx = 0;
}