Changed default multiplier value

This commit is contained in:
Pax1601 2023-12-05 09:24:13 +01:00
parent 82704f042b
commit 45b840fa72

View File

@ -58,7 +58,7 @@ void Scheduler::execute(lua_State* L)
log("Command '" + commandString + "' executed correctly, current load " + to_string(getLoad()));
/* Adjust the load depending on the fps */
double fpsMultiplier = 1;
double fpsMultiplier = 20;
if (getFrameRate() + 3 > 0)
fpsMultiplier = static_cast<unsigned int>(max(1, 60 / (getFrameRate() + 3))); /* Multiplier between 1 and 20 */