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
5d05e38d27
commit
f33a970304
1
CHANGES
1
CHANGES
|
@ -21,6 +21,7 @@ Other fixes:
|
|||
- Qt: Fix some Qt display driver race conditions
|
||||
- Core: Improved lockstep driver reliability (Le Hoang Quyen)
|
||||
- Switch: Fix threading-related crash on second launch
|
||||
- Qt: Fix FPS target maxing out at 59.727 (fixes mgba.io/i/1421)
|
||||
Misc:
|
||||
- GBA Savedata: EEPROM performance fixes
|
||||
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
|
||||
|
|
|
@ -413,7 +413,7 @@ void SettingsView::updateConfig() {
|
|||
}
|
||||
|
||||
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));
|
||||
} else {
|
||||
saveSetting("fpsTarget", m_ui.fpsTarget);
|
||||
|
|
Loading…
Reference in New Issue