From 87d71da55e51c9080a06ad64a95a6db8897614c4 Mon Sep 17 00:00:00 2001 From: Pax1601 Date: Tue, 5 Dec 2023 09:14:06 +0100 Subject: [PATCH] Small tweak to multiplier --- src/core/src/scheduler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/src/scheduler.cpp b/src/core/src/scheduler.cpp index 28af3520..5faec42c 100644 --- a/src/core/src/scheduler.cpp +++ b/src/core/src/scheduler.cpp @@ -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(max(1, 60 / (getFrameRate() + 5))); + if (getFrameRate() + 3 > 0) + fpsMultiplier = static_cast(max(1, 60 / (getFrameRate() + 3))); /* Multiplier between 1 and 20 */ load = command->getLoad() * fpsMultiplier; commands.remove(command);