Shader compilation stutter
Related terms: shader cache, PSO, pipeline state, shader variants, warm-up
A shader must be compiled for the player's exact GPU and driver before it is first used. If that happens during play, the game freezes for a moment the first time a new effect or material appears.
The fixes: compile everything on a loading screen or at first launch, keep the results in a cache, and cut down the number of shader variants. It is mostly a PC problem. Consoles have fixed hardware, so shaders ship precompiled.
- Further reading
- Unity: How Unity loads and uses shaders