How can I troubleshoot stuttering? Or do I need to worry about it?

Godot Version

4.5.1 (3D)

Question

I have a main ‘level’ scene and I have a bunch of scenes with level components (walls, ceilings, doors, etc…). Originally, these were all in the main level scene and when I’d test it, it ran perfectly fine. These are super basic models and I’m only using SSAO, SSR and some fog and such. Think Quake3/Doom3 level graphics here.

So I decide I’ll move all these walls and stuff into their own scene for the building they are part of and then just put that building scene into the level scene.

After a few cut/pastes and some repositioning things, I test it.

Visually, everything is where it is supposed to be, but now the engine freezes for about 1 second every second, constantly. I checked the profiler and it looks like there’s about 1100ms on ‘Process’?

So I get frustrated and just close the engine down for a while and go do something else.

Now I open up the project again and the problem is gone? Is this some kind of engine bug with the debug game window and something I can safely ignore, or am I the one (unwittingly?) causing the problem somehow and I need to be careful about it?

In general I don’t think rearranging your scene like that ought to make any meaningful difference. Not in the context of gameplay; everything has been loaded, instanced, and the various servers all have what they need.

I tend to restart the editor every once in awhile. When I refactor it gives curious errors about cyclic dependencies. Certain parts of my project seem to make the editor occasionally leak an object or two.

In any case, just click the debugging tab at the bottom and turn on the profilers and look at your metrics, if you get this weird stuttering again.

Thanks, I suppose the only time I should be worried is when an editor restart doesn’t fix it?