Seemingly random stutters when running the project

4.5.1 from steam, Linux mint

When running my game, i get seemingly random stutters throughout. Exporting it didn’t help, sicne they also appear there. I tried adding a pooling system for my game objects, but that didn’t help either.

Video showing the problem The console in the video detects when a stutter appears. Any idea what could be causing this?

Hi,

no idea, downloaded the project, no issue here.
Sometimes the console is printing “Possible stutter detected” but nothing visible.
I tested it until Lvl 11.
btw.: where the stutter detection comes from?

Maybe its an issue with your system.
I tested on Windows with Godot 4.4.1
Had a read here already?

Last but not least i would change the velocity calculation to this, feels more responsive, but maybe its just my personal taste. (raised the speed to 500)

velocity = distance * speed

Did you take a look at the Profiler or Monitors?

The monitors don’t seem to detect anything, but the frame time Profiler does. Every blue downward spike is one of these stutters. But I don’t really know what to make of that

It shouldn’t be a problem on my system because i tried the same project on a completely different computer running windows 11 and the stutters were still happening. The stutter detection is from the test.gd script, i threw it together fast to try and fix the bug. Also tried it on your version (4.4.1), didn’t help

Have you tried switching from Forward+ to Compatibility mode? I was having a similar problem with a project and that fixed it for me. I spent a lot of time trying various optimizations and turning parts of the game off. Switching to Compatibility was the only thing that worked.

1 Like

So compatibility removes the stutters when moving the window, and just generally feels smoother. The stutters are definitely more rare, but some still appear sometimes. But i think that’s that best solution right now. I won’t mark it as solved yet, maybe someone has another helpful tip

1 Like