Skip to content

Commit 6a8b265

Browse files
committed
Qt: Fix bounded fast forward with enhancement OpenGL renderer
1 parent 96ba753 commit 6a8b265

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Other fixes:
2020
- Qt: Fix crash in sprite view for partially out-of-bounds sprites (fixes mgba.io/i/2165)
2121
- Qt: Fix having to press controller buttons twice for menu items (fixes mgba.io/i/2143)
2222
- Qt: Redo sensor binding to be less fragile
23+
- Qt: Fix bounded fast forward with enhancement OpenGL renderer
2324
- Util: Fix loading UPS patches that affect the last byte of the file
2425
Misc:
2526
- Util: Improve speed of UPS patch loading

src/platform/qt/DisplayGL.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,9 @@ void PainterGL::draw() {
460460
while (m_delayTimer.nsecsElapsed() + 1'000'000 < 1'000'000'000 / sync->fpsTarget) {
461461
QThread::usleep(500);
462462
}
463-
forceRedraw = true;
464-
} else if (!forceRedraw) {
463+
forceRedraw = sync->videoFrameWait;
464+
}
465+
if (!forceRedraw) {
465466
forceRedraw = m_delayTimer.nsecsElapsed() + 1'000'000 >= 1'000'000'000 / m_surface->screen()->refreshRate();
466467
}
467468
}

0 commit comments

Comments
 (0)