mirror of https://github.com/mgba-emu/mgba.git
GBA Context: Fix waiting on frames
This commit is contained in:
parent
4db61f400b
commit
9f5bfeeebb
|
@ -165,6 +165,7 @@ int32_t GBAVideoProcessEvents(struct GBAVideo* video, int32_t cycles) {
|
|||
GBAFrameEnded(video->p);
|
||||
--video->frameskipCounter;
|
||||
if (video->frameskipCounter < 0) {
|
||||
GBASyncPostFrame(video->p->sync);
|
||||
video->frameskipCounter = video->frameskip;
|
||||
}
|
||||
++video->frameCounter;
|
||||
|
|
Loading…
Reference in New Issue