Order of Shader Compilation

I’ve seen the info that performance problems in modern PC games are often caused by shader compilation on runtime. Is there any way to avoid it while making your own game? For example, to force it to compile the shaders during an application startup or on loading a scene?

Load objects behind a black screen to have them compile maybe?
I think recent unity versions also have something to improve this

1 Like

That’s a good idea. Make a small scene containing all the materials in the game and load it before everything else