Guides

Shader Compilation Stutter Explained: Why New PC Games Hitch and What You Can Do About It

We may earn a commission from links on this page. It never decides our picks.

How we picked: We compared specs, prices, compatibility and trusted third-party reviews. We have not tested these products ourselves.

You’ve got a powerful PC. The frame counter says 140. Then you turn a corner, an explosion goes off, and the whole game freezes for a split second, like it tripped over its own shoelaces. A minute later the same thing happens again somewhere else.

There’s a good chance you’ve met shader compilation stutter. Many modern PC games have to translate their graphics code into instructions your exact graphics card understands, and some of that translation happens while you’re playing. When the game suddenly needs something it hasn’t prepared yet, like a new effect, area or enemy, the frame has to wait while your graphics driver does the translation. That wait is the hitch you feel.

Most of the fix is in the developer’s hands. As a player, the most useful things you can do are to let any “compiling shaders” screen finish, and to expect the first session after a driver update to be a bit bumpier while things rebuild.

Shaders compiled during play vs precompiled during loading

What a shader is (and a PSO)

Four steps from shipped shader files to compiled PSOs in the driver's disk cache

A shader is a small program that runs on your graphics card to draw something, like lighting, a shiny metal surface or a cloud of sparks. Games don’t ship shaders in a form your card can run directly. They ship them in an in-between format, called DXIL for DirectX 12 games and SPIR-V for Vulkan games. Your graphics driver then translates them into instructions for your exact card. That last step can’t be done ahead of time at the game studio, because it depends on which graphics card you own and which driver version you’re running.

DirectX 12 and Vulkan also bundle shaders together with the settings they’re drawn with, into something called a Pipeline State Object, or PSO. Epic’s engineers explain that a game has to build the whole PSO before it can draw anything with it. With older systems like DirectX 11, the driver could quietly do more of this work behind the scenes, as and when it was needed.

Why that causes stutter

If a game asks for a PSO for the first time in the middle of a fight, the frame can’t finish until the driver has compiled it. If that takes long enough, you see a freeze. In Epic’s documentation, a PSO compile during gameplay counts as a hitch when it takes longer than 20 milliseconds.

The obvious question is why games don’t just compile everything up front. The answer is scale. Epic points out that a game’s material system can in theory produce millions of possible PSOs, while the game only ever uses a small slice of them. Compile everything and you’d be staring at a loading bar for a very long time. Compile nothing up front and you get stutter. Developers have to find the sweet spot in between.

What developers do about it

Millions of possible PSOs versus about 30,000 compiled and 10,000 used per Fortnite match

Epic describes two approaches in Unreal Engine. The older one, which was the recommended method until Unreal Engine 5.2, is a bundled PSO cache. Developers play through the game, record which PSOs actually get used, and ship that list so the game can compile them in advance. It works, but it’s slow, tedious work, and the list goes out of date whenever the game’s content changes.

The newer approach, introduced in Unreal Engine 5.2, is called PSO precaching. When an object loads, the engine works out which PSOs it might need and compiles them in the background during loading, before they’re ever drawn on screen. Epic’s example is Fortnite Battle Royale, which compiles about 30,000 PSOs per match and actually uses about 10,000 of them.

Epic is honest that the job isn’t finished. As of Unreal Engine 5.5, some kinds of shaders still weren’t being precached, and keeping precached PSOs in memory could cost more than 1 GB. Epic says its goal is fully automatic precaching but hasn’t given a date. PC Gamer’s analysis adds that a lot of stutter comes down to how individual games are built, so engine updates alone won’t make it disappear overnight.

That’s why some games greet you with a “compiling shaders” progress bar on first launch, while others skip it and then stutter for the first hour.

What you can do as a player

How to tell shader compilation stutter from traversal stutter

There’s no magic setting that makes shader stutter disappear, but a few habits help.

If a game shows a “compiling shaders” or “optimizing” screen, let it finish. It’s tempting to skip it and jump straight in, but all that does is move the work into the middle of your gameplay.

Expect a rougher ride after you update your graphics driver. Epic notes that drivers keep compiled PSOs in a cache on your disk, and that cache is wiped when you install a new driver. Your first session afterwards will hitch more, then it usually settles down once the cache has rebuilt itself. For the same reason, don’t clear your shader cache as a “fix”. That forces everything to compile all over again, and it only helps if the cache has actually become corrupted.

Install your games on an SSD. It won’t stop shaders from compiling, but it speeds up the loading and streaming that precaching depends on.

It also helps to know shader stutter’s evil twin, traversal stutter. If the hitches happen every time you move into a new part of an open world, even when you’ve been there before, the game is probably loading in new assets rather than compiling shaders. A faster CPU and SSD help more with that, and so do game patches.

Speaking of patches, keep your games updated. Developers often add or improve shader precompilation after launch, once players have pointed out where it hurts.

So the next time your game freezes for half a second right as the action kicks off, you’ll know it isn’t your PC giving up. It’s your graphics driver doing homework it should have done earlier.


How we researched this guide: the technical explanation and the figures come from Epic Games’ tech blog post on shader stutter and its PSO precaching documentation, with extra context from PC Gamer, all checked on November 27, 2026. The diagrams are illustrations, not measured data.

SM Talha
About the authorSM TalhaMore from SM Talha