GBA Context: Fix waiting on frames

This commit is contained in:
Jeffrey Pfau 2015-10-06 21:26:25 -07:00
parent 4db61f400b
commit 9f5bfeeebb
1 changed files with 1 additions and 0 deletions

View File

@ -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;