mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix FPS target maxing out at 59.727 (fixes #1421)
This commit is contained in:
parent
c5b686fce2
commit
6248093e4b
1
CHANGES
1
CHANGES
|
@ -1,6 +1,7 @@
|
||||||
0.7.3: (Future)
|
0.7.3: (Future)
|
||||||
Other fixes:
|
Other fixes:
|
||||||
- Switch: Fix threading-related crash on second launch
|
- Switch: Fix threading-related crash on second launch
|
||||||
|
- Qt: Fix FPS target maxing out at 59.727 (fixes mgba.io/i/1421)
|
||||||
|
|
||||||
0.7.2: (2019-05-25)
|
0.7.2: (2019-05-25)
|
||||||
Emulation fixes:
|
Emulation fixes:
|
||||||
|
|
|
@ -389,7 +389,7 @@ void SettingsView::updateConfig() {
|
||||||
}
|
}
|
||||||
|
|
||||||
double nativeFps = double(GBA_ARM7TDMI_FREQUENCY) / double(VIDEO_TOTAL_LENGTH);
|
double nativeFps = double(GBA_ARM7TDMI_FREQUENCY) / double(VIDEO_TOTAL_LENGTH);
|
||||||
if (nativeFps - m_ui.fpsTarget->value() < 0.0001) {
|
if (fabs(nativeFps - m_ui.fpsTarget->value()) < 0.0001) {
|
||||||
m_controller->setOption("fpsTarget", QVariant(nativeFps));
|
m_controller->setOption("fpsTarget", QVariant(nativeFps));
|
||||||
} else {
|
} else {
|
||||||
saveSetting("fpsTarget", m_ui.fpsTarget);
|
saveSetting("fpsTarget", m_ui.fpsTarget);
|
||||||
|
|
Loading…
Reference in New Issue