mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix bounded fast forward with enhancement OpenGL renderer
This commit is contained in:
parent
9eefc85b64
commit
3392f86dcb
1
CHANGES
1
CHANGES
|
@ -35,6 +35,7 @@ Other fixes:
|
||||||
- Qt: Fix crash in sprite view for partially out-of-bounds sprites (fixes mgba.io/i/2165)
|
- Qt: Fix crash in sprite view for partially out-of-bounds sprites (fixes mgba.io/i/2165)
|
||||||
- Qt: Fix having to press controller buttons twice for menu items (fixes mgba.io/i/2143)
|
- Qt: Fix having to press controller buttons twice for menu items (fixes mgba.io/i/2143)
|
||||||
- Qt: Redo sensor binding to be less fragile
|
- Qt: Redo sensor binding to be less fragile
|
||||||
|
- Qt: Fix bounded fast forward with enhancement OpenGL renderer
|
||||||
- Util: Fix loading UPS patches that affect the last byte of the file
|
- Util: Fix loading UPS patches that affect the last byte of the file
|
||||||
Misc:
|
Misc:
|
||||||
- Core: Suspend runloop when a core crashes
|
- Core: Suspend runloop when a core crashes
|
||||||
|
|
|
@ -460,8 +460,9 @@ void PainterGL::draw() {
|
||||||
while (m_delayTimer.nsecsElapsed() + 1'000'000 < 1'000'000'000 / sync->fpsTarget) {
|
while (m_delayTimer.nsecsElapsed() + 1'000'000 < 1'000'000'000 / sync->fpsTarget) {
|
||||||
QThread::usleep(500);
|
QThread::usleep(500);
|
||||||
}
|
}
|
||||||
forceRedraw = true;
|
forceRedraw = sync->videoFrameWait;
|
||||||
} else if (!forceRedraw) {
|
}
|
||||||
|
if (!forceRedraw) {
|
||||||
forceRedraw = m_delayTimer.nsecsElapsed() + 1'000'000 >= 1'000'000'000 / m_surface->screen()->refreshRate();
|
forceRedraw = m_delayTimer.nsecsElapsed() + 1'000'000 >= 1'000'000'000 / m_surface->screen()->refreshRate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue