Godot 4.4.stable.mono
Using last version Ubuntu as OS
Question
As already said in the title I’m getting very bad lag spikes.
There are 2 occasions where I noticed the lag:
When I try creating a script and I go to select a folder, everything starts lagging really bad (I get max 2 FPS while the explorer page is open).
When I start the game everything on my pc (except the game but including the godot editor) starts lagging in the same way, with very slow response time and very low refresh rate of the windows.
I’m using Godot with dotnet and I’m on ubuntu currently, I don’t get this problem on my Windows computer.
My project is also very lightweight (and it doesn’t give me any sort of problems on other pcs or mobile).
There are no other moments where I have noticed this extreme lag happen.
If anyone has any idea on how to fix this problem I’d love to hear them out.
Thanks in advance.
compiling can take up resources, and one of the moments when this happens is when running a game.
check if the same happens on a non-mono project (gdscript).
what is the hardware on your computer? that is the most important part.
it sounds like you don’t have enough memory. when a PC runs out of memory it uses virtual memory (writes to the HDD), this can reduce the life of a HDD. I’ll take a guess 8 Gb RAM?
godot on it’s own uses the memory specified in the docs, around 2-4Gb, and then you have your project with all its assets and opened scenes, and then whatever IDE you use will use its own too, and the “explorer” also uses memory.
and then you add addons to your IDE to integrate with godot and you could be looking at even more resources needed.
Sorry for the confusion, I didn’t explain correctly, with explorer I meant the file explorer that’s integrated in Godot.
I followed your advice and checked my memory and what consumed it more, and it seemed like the explorer was the one that was eating more resources.
I managed to fix by changing from Wayland to Xorg, I think it was some kind of conflict that was happening from the Godot file explorer to the Ubuntu file explorer.