Small tweak to multiplier

This commit is contained in:
Pax1601 2023-12-05 09:14:06 +01:00
parent 71cf7c67f7
commit 87d71da55e

View File

@ -59,8 +59,8 @@ void Scheduler::execute(lua_State* L)
/* Adjust the load depending on the fps */
double fpsMultiplier = 1;
if (getFrameRate() + 5 > 0)
fpsMultiplier = static_cast<unsigned int>(max(1, 60 / (getFrameRate() + 5)));
if (getFrameRate() + 3 > 0)
fpsMultiplier = static_cast<unsigned int>(max(1, 60 / (getFrameRate() + 3))); /* Multiplier between 1 and 20 */
load = command->getLoad() * fpsMultiplier;
commands.remove(command);