Best thing to do is to provide a ZIP of a project so that others can test it.
Simple scene drops FPS to 58/59 and it shows a lot [3.5.1 stable / GLESS 3]
It would probably show up as a thin vertical line when profiling the app. That said, I only have a rudimentary understanding of the profiler. But that is where to look.
- Edited
I attach the project to see if you can help me better.
The Space key jumps.
Notice that at times, the game drops to 59FPS and when it has that little drop, it gives a very annoying little jerk that is very noticeable visually.
This happens sporadically
https://www.mediafire.com/file/lrbbuthb8gvytpl/project+example.rar/file
- Edited
yes, this.
Megalomaniak What does that vertical line mean? is that causing the problem?
- Edited
That chart is a frame-time plot. That is a graph of time each frame took to be displayed on screen. I phrased it that way for a reason. You might think it's how long it took to render, but no. It's how long everything took to get ready and then on top of that to be rendered.
Where that 1 spike is is whats causing the average FPS value to momentarily show slightly under 60 fps, but for that specific spike, for that 1 frame or rather because of it the average effectively might have actually been '15 fps'.
So the next question is to figure out what is actually happening during that 1 frame, during the spike.
- Edited
Megalomaniak
What surprises me is that the game is super simple.
I don't quite know how to debug it to find out where it might be causing the problem.
EDIT: Also, I just checked that the vertical line does not appear whenever I launch the game....
Sometimes it doesn't appear, and the game has the same jitters as always every "x" seconds.
I am very confused!
Is it possible that it could be V-Sync with your monitor causing the issue? Maybe the V-Sync code from the monitor/graphics driver is causing a few frames to be dropped/skipped?
i solve the same problem by check the option "debug/settings/stdout/verbose_stdout"
exs2 Thank you for your solution, it works for me!!
Hello, were you in the end able to solve this issue? I am experiencing the same thing on Godot 4.1.3 making a 2d game, and the occasional stutter happens on the device as well (iPhone ). When I set the fps to be 60 it is a bit better but image is blurrier naturally, looks much more 'stuttery' on the phone if the refresh rate is allowed to be 120.