Skip to content
Permalink
Browse files

GSDumpGUI: Run one frame per loop for better performance.

Also, make sure to check messages before vsync. GSdx message loop runs per vsync.
  • Loading branch information...
KrossX authored and lightningterror committed Jul 29, 2019
1 parent 0d6b9e9 commit 317683461f2fed99f58638c13af2a7e40fc06728
Showing with 9 additions and 3 deletions.
  1. +9 −3 tools/GSDumpGUI/Library/GSDXWrapper.cs
@@ -315,9 +315,15 @@ public unsafe void Run(GSDump dump, int rendererOverride)
}
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;
}

0 comments on commit 3176834

Please sign in to comment.
You can’t perform that action at this time.