jitterfix 0.5f faster

This commit is contained in:
2023-01-06 16:53:45 +01:00
parent eee59dfa6a
commit 9697ab1216

View File

@@ -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