mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Small tweak to multiplier
This commit is contained in:
parent
71cf7c67f7
commit
87d71da55e
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user