GBA Video: Fix frameskip affecting timing

This commit is contained in:
Vicki Pfau 2020-08-02 15:35:03 -07:00
parent 9ab0f2d1b5
commit 7551afc952
1 changed files with 4 additions and 2 deletions

View File

@ -148,8 +148,10 @@ void _startHdraw(struct mTiming* timing, void* context, uint32_t cyclesLate) {
} }
video->p->memory.io[REG_VCOUNT >> 1] = video->vcount; video->p->memory.io[REG_VCOUNT >> 1] = video->vcount;
if (video->vcount < GBA_VIDEO_VERTICAL_PIXELS && video->frameskipCounter <= 0) { if (video->vcount < GBA_VIDEO_VERTICAL_PIXELS) {
if (video->frameskipCounter <= 0) {
video->renderer->drawScanline(video->renderer, video->vcount); video->renderer->drawScanline(video->renderer, video->vcount);
}
video->shouldStall = 1; video->shouldStall = 1;
} }