mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Fix frameskip affecting timing
This commit is contained in:
parent
9ab0f2d1b5
commit
7551afc952
|
@ -148,8 +148,10 @@ void _startHdraw(struct mTiming* timing, void* context, uint32_t cyclesLate) {
|
|||
}
|
||||
video->p->memory.io[REG_VCOUNT >> 1] = video->vcount;
|
||||
|
||||
if (video->vcount < GBA_VIDEO_VERTICAL_PIXELS && video->frameskipCounter <= 0) {
|
||||
video->renderer->drawScanline(video->renderer, video->vcount);
|
||||
if (video->vcount < GBA_VIDEO_VERTICAL_PIXELS) {
|
||||
if (video->frameskipCounter <= 0) {
|
||||
video->renderer->drawScanline(video->renderer, video->vcount);
|
||||
}
|
||||
video->shouldStall = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue