How to fix shader compilation stutter (PC, Steam Deck)
Why games hitch the first time you see an effect, and the practical steps that reduce shader stutter on PC and Steam Deck.
You turn a corner, a door explodes and your game freezes for a split second. Then it's fine. Then a new enemy shows up and… hitch. That's very often shader compilation stutter, and it's one of the most annoying PC gaming problems of the DirectX 12 / Vulkan era. Here's what's happening and what you can actually do about it.
What's a shader, and why does it compile?
A shader is a tiny program that tells your GPU how to draw something: lighting, water, smoke, a character's skin. Games ship shaders in a generic form, and your graphics driver has to compile them into code for your exact GPU and driver version. If that happens while you're playing, the frame waits and you see a hitch. Consoles don't have this problem nearly as much because every PS5 has the same GPU, so shaders can be compiled ahead of time.
Step 1: Let the game pre-compile
- Many modern games show a “Compiling shaders” or “Optimizing shaders” screen on first launch or after a driver update. Let it reach 100%. Skipping it trades a 3-minute wait for an hour of stutter.
- If a game offers the option again in its graphics menu, run it after every GPU driver update.
Step 2: Keep the shader cache healthy
- NVIDIA: NVIDIA Control Panel → Manage 3D settings → Shader Cache Size. Set it to 10 GB or Unlimited so compiled shaders aren't thrown away.
- AMD: Adrenalin → Gaming → Graphics. Leave shader cache enabled. Only use “Reset Shader Cache” if a game is visually broken, because resetting makes the next session stutter while it rebuilds.
- Steam: Settings → Downloads → Enable Shader Pre-caching. Steam downloads shaders other players with your GPU already compiled (mostly helpful for Vulkan and Proton games).
- Give the cache drive some space. A nearly full SSD can force caches to be dropped.
Step 3: Update (the right) things
- Install the newest game patch. Developers often ship pre-compilation fixes after launch.
- Update your GPU driver from the official links. Expect one stuttery session afterward while caches rebuild. That's normal.
Step 4: Tweak settings that reduce hitching
- Cap your frame rate a bit below your average (e.g. 60 or 90). A cap won't remove compile hitches, but it hides small spikes and makes frame pacing smoother.
- If the game has both DX11 and DX12 modes, try DX11. It often stutters less on first run (but may run slower overall).
- Turn off overlays you don't use. Stacking several overlays at once can add hitching.
Steam Deck & Linux
Keep Steam's shader pre-caching on and let the “Processing Vulkan shaders” step finish. Proton translates DirectX into Vulkan via DXVK and VKD3D-Proton, and Valve ships pre-compiled caches for popular games on Deck. That's a big reason many games stutter less on Deck than on Windows.
Is it shaders… or something else?
- Hitches only the first time you see something, then gone → shader compilation.
- Hitches when moving through a big open world, every time → traversal/streaming stutter. Install the game on an SSD and check your RAM/VRAM usage.
- Regular stutter every few seconds → background apps, power plans, or a failing drive. Try our Fix my game wizard.
Want proof? Tools like CapFrameX graph frame times so you can see spikes instead of guessing.