GB, GBA: Fix sync to video with frameskip
Vicki Pfau vi@endrift.com
Sun, 03 Sep 2017 22:15:48 -0700
3 files changed,
3 insertions(+),
2 deletions(-)
M
CHANGES
→
CHANGES
@@ -20,6 +20,7 @@ - Qt: Fix sprite export pausing game indefinitely (fixes mgba.io/i/841)
- GB Video: Fix potential hang when ending mode 0 - GB Memory: Fix HDMA count starting in mode 0 (fixes mgba.io/i/855) - GB Memory: Actually load latch time from savestate + - GB, GBA: Fix sync to video with frameskip Misc: - Qt: Don't rebuild library view if style hasn't changed - SDL: Fix 2.0.5 build on macOS under some circumstances
M
src/gb/video.c
→
src/gb/video.c
@@ -265,10 +265,10 @@ }
} GBFrameEnded(video->p); + mCoreSyncPostFrame(video->p->sync); --video->frameskipCounter; if (video->frameskipCounter < 0) { video->renderer->finishFrame(video->renderer); - mCoreSyncPostFrame(video->p->sync); video->frameskipCounter = video->frameskip; } ++video->frameCounter;
M
src/gba/video.c
→
src/gba/video.c
@@ -157,9 +157,9 @@ if (GBARegisterDISPSTATIsVblankIRQ(dispstat)) {
GBARaiseIRQ(video->p, IRQ_VBLANK); } GBAFrameEnded(video->p); + mCoreSyncPostFrame(video->p->sync); --video->frameskipCounter; if (video->frameskipCounter < 0) { - mCoreSyncPostFrame(video->p->sync); video->frameskipCounter = video->frameskip; } ++video->frameCounter;