From b1eb30ed6c03a7c3995e02a451fff9b3f52d2b9d Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 10 Apr 2021 11:09:38 +0200 Subject: [PATCH] fix: workaround high frame skip when loading resources It'll need a proper fix, but if the game is going under 15FPS, make delta time to 1/15 second, in order to be sure that it'll simply slow that frame and not skip a whole transition for instance --- sonic-radiance.love/core/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sonic-radiance.love/core/init.lua b/sonic-radiance.love/core/init.lua index 964d970..5b45336 100644 --- a/sonic-radiance.love/core/init.lua +++ b/sonic-radiance.love/core/init.lua @@ -89,6 +89,8 @@ end -- Load every sytem every update functions of the scene and objects function CoreSystem:update(dt) + -- If the frameskip is to high, prefer slowdown to frameskip + local dt = math.min(dt, 1/15) self.debug:update(dt) self.input:update(dt)