fix framerate target not adjusting with vcount writes (#2181)

This commit is contained in:
Jakly
2024-10-30 14:40:33 -04:00
committed by GitHub
parent 3877a8e46b
commit 4ba8f330c4
3 changed files with 21 additions and 18 deletions

View File

@ -93,25 +93,25 @@ EmuInstance::EmuInstance(int inst) : deleting(false),
if (val == 0.0)
{
Platform::Log(Platform::LogLevel::Error, "Target FPS in config invalid\n");
targetFPS = 1.0 / 60.0;
targetFPS = 60.0;
}
else targetFPS = 1.0 / val;
else targetFPS = val;
val = globalCfg.GetDouble("FastForwardFPS");
if (val == 0.0)
{
Platform::Log(Platform::LogLevel::Error, "Fast-Forward FPS in config invalid\n");
fastForwardFPS = 1.0 / 60.0;
fastForwardFPS = 60.0;
}
else fastForwardFPS = 1.0 / val;
else fastForwardFPS = val;
val = globalCfg.GetDouble("SlowmoFPS");
if (val == 0.0)
{
Platform::Log(Platform::LogLevel::Error, "Slow-Mo FPS in config invalid\n");
slowmoFPS = 1.0 / 60.0;
slowmoFPS = 60.0;
}
else slowmoFPS = 1.0 / val;
else slowmoFPS = val;
doAudioSync = globalCfg.GetBool("AudioSync");