Why do PC games compile shaders on first launch, and can you skip it?
More and more PC games show a "compiling shaders" progress bar the first time you launch them (or after a driver update). It can take anywhere from seconds to many minutes. Here's why.
What shaders are
Shaders are small programs that run on your GPU to handle lighting, materials, shadows and effects. Games ship them in an intermediate form, and they have to be compiled into code your specific GPU and driver understand.
Why consoles don't do this
Consoles have one fixed hardware configuration, so developers can pre-compile shaders before release. PCs have countless combinations of GPUs and driver versions, so compilation has to happen on your machine.
Why games do it upfront
If shaders compile during gameplay, you get "shader compilation stutter": a hitch the first time a new effect appears on screen. Pre-compiling at launch trades a longer wait for smoother play.
Can you skip it?
- Some games let you skip, but you'll likely get more stutter while the cache builds during play.
- It usually reruns after GPU driver updates or game patches, because the cache becomes invalid.
- Steam can download pre-compiled shader caches for some games, especially on Linux and Steam Deck.
- Deleting your driver's shader cache folder will force recompilation, so only do it when troubleshooting.
Tips
- Let it finish fully before judging a game's performance.
- A faster CPU shortens compilation, since it's CPU work.
Do you prefer an upfront compile step, or would you rather jump straight in and tolerate some early stutter? Which games have you noticed the longest compile times in?
Comments · 4
Shaders are compiled for your specific GPU and driver. Doing it up front avoids stuttering mid-game.
I'd rather wait two minutes at launch than hitch in a boss fight. Sorry, stutter fans.
Why can't developers just ship the compiled shaders with the game?
Shaders have to match each GPU and driver version, so the compiled files can't be one-size-fits-all. Some consoles do ship them since the hardware is fixed.