From 9697ab1216d2014eb94753030a992f14c3c64e23 Mon Sep 17 00:00:00 2001 From: vaporvee Date: Fri, 6 Jan 2023 16:53:45 +0100 Subject: [PATCH] jitterfix 0.5f faster --- src/window.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.cs b/src/window.cs index ec58df8..46648b8 100644 --- a/src/window.cs +++ b/src/window.cs @@ -8,7 +8,7 @@ public partial class window : Node /* VSync should be used because needing to change the PhysicsTicksPerSecond in _Process takes CPU ussage * You could also just set max FPS and delte this fix */ - await ToSignal(GetTree().CreateTimer(2f), "timeout");//waits until the game has loaded some time + await ToSignal(GetTree().CreateTimer(1.5f), "timeout");//waits until the game has loaded some time if (Engine.PhysicsTicksPerSecond != (int)Engine.GetFramesPerSecond()) { Engine.PhysicsTicksPerSecond = (int)Engine.GetFramesPerSecond(); //PhysicsTicksPerSecond have to be the same value like current FPS or the movement will lagg