Inconsistent FPS

Godot Version

v4.4

Question

When testing my 3D game via the editor, I am experiencing inconsistent performance. Sometimes the game runs smooth at 50 fps when I play it. Other times the game runs at only 12 fps on startup. Sometimes when I close the editor and re-open it - it fixes it and the frame rate goes back to 50 when I start the game. The FPS generally doesn’t change during the game.

Does anyone know why this might be happening?

Have you got anything else running in the background?

No, I always close everything except the editor for any chance of smooth performance.

Try to use the profiler to see which process slows down your game

I checked. There is no specific process affecting performance. Sometimes the profiler shows everything off the charts and other times all is well. Depends on the “mood” the editor is in that day.

When these issues only happen on the start of the game it could be related to some caching. Do you have a lot of shaders?

Very few shaders. But, again - sometimes it runs well. I just never know if I’m going to get a good day or a slow day with the editor game preview.

Well its hard to say why that happens with so little information

I suspect that the problem is my computer and not Godot. Maybe I don’t have sufficient memory. I am running Godot on a 10 year old potato computer. That is the reason I love Godot, because it runs on it, but maybe I am pushing the limits with my 3D game.

2 Likes

Thermal throttling, maybe? What are the specs of this potato?

2 Likes

Operating System: Linux Mint 20.3 Cinnamon
Processor: Intel Core i7-4790 CPU @ 3.60GHz x 4
Memory: 7.7 GiB
Graphics Card: NVIDIA GeForce GTX 760

hi, make sure the 3D scene is not running behind the game window.
if you are running the game in window, before launching go to the game tab, click on the 3 dots, and un-select “embed game in next play”. this will make it so that the editor displays a blank surface instead of the 3D scene or script.

if you are in embed mode, this should not be a problem, but I would still run in a window because then you can control the resolution of the game.