Is there a way to preload all materials (loading screen) in Godot?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Macryc

I have a bunch of imported shaders with textures and the like in my scene. When I start the game it lags a bit each time a new shader enters the camera’s viewport. Is there a way to preload all shaders/materials a scene uses (including those from linked scenes etc., basically all resources used in a ‘level’) up front to prevent lags?

Perhaps this discussion on github is helpful for you:
https://github.com/godotengine/godot/issues/13954

wombatstampede | 2020-01-07 14:50