Add MaxFPS setting

This commit is contained in:
Nadia Holmquist Pedersen
2024-01-26 13:06:32 +01:00
parent 890035c688
commit 7dd4152d67
5 changed files with 92 additions and 35 deletions

View File

@ -576,7 +576,7 @@ void EmuThread::run()
{
bool limitfps = Config::LimitFPS && !fastforward;
double practicalFramelimit = limitfps ? frametimeStep : 1.0 / 1000.0;
double practicalFramelimit = limitfps ? frametimeStep : 1.0 / Config::MaxFPS;
double curtime = SDL_GetPerformanceCounter() * perfCountsSec;