Frametime spikes in Godot 4.3
I created my game with Godot 4.3 and experienced massive frametime spikes (>100ms on the Render Passes) if a Node first comes into view of the camera. After that it runs smoothly. On Godot's GitHub I read, that it's most likely caused by the shader compiler, which compiles the shader for the newly visible material.
I tried the following things to fix it: - Place all Nodes with different materials at a single spot and have the camera look at them. - Use the ShaderPrecompiler-Utility from GitHub.
Unfortunately, nothing worked, so in the end, I decided to let the player character automatically move through the entire level to trigger all stutters while the loading screen is visible. This "solution" works, but it feels very hacky.
Has anybody had a similar problem? And if so, how did you solve it?