NVIDIA app Shader Cache settings with Auto Shader Compilation and Compile Now options

Why PC Games Compile Shaders and Why It Causes Stutter

This article may include affiliate links that earn us a small commission at no extra cost to you.

A PC game can report a high average frame rate and still pause for a split second when you enter a new area, trigger an effect, or meet an enemy for the first time. One common cause is shader compilation stutter.

Shaders are small programs that tell the graphics card how to draw parts of a scene. A game may need thousands of shader combinations for different materials, lights, shadows, weather effects, and graphics settings. If the game has to compile one of those combinations during play, the next frame may arrive late and create a noticeable hitch.

What does a shader do?

A shader helps control how the GPU draws an image. Different shaders can affect:

  • Lighting and shadows
  • Reflections
  • Water, smoke, fire, and fog
  • Character skin and hair
  • Surface materials such as metal, glass, or cloth
  • Post-processing and screen-space effects
  • Ray tracing

Developers write shader code in a form they can work with. The code must then be translated into instructions that a specific GPU and graphics driver can run. NVIDIA says the CPU handles this translation and that modern games can require tens of thousands of shader translations.

Why are there so many shader combinations?

One shader can have several variants, also called permutations. Each variant handles a different combination of features.

  • Shadows on or off
  • Ray tracing on or off
  • Low, medium, high, or ultra quality
  • Indoor or outdoor lighting
  • Wet or dry surfaces
  • Different graphics APIs
  • Different GPU features

The number grows quickly because each option can combine with several others. Developers can remove unused variants, but they must avoid removing one the game needs later. More variants also mean more work to build, test, store, and compile.

Why does compilation cause a visible stutter?

A game needs to deliver frames at steady intervals. A 60 frames-per-second game has about 16.7 milliseconds to prepare each frame.

If the engine discovers that it needs an uncompiled shader immediately, the CPU and graphics driver may have to compile it before the GPU can finish the frame. The late frame appears as a pause or hitch. Unity’s documentation says a scene can stutter when a shader variant is used for the first time.

You may notice:

  • A brief freeze when an effect appears for the first time
  • A hitch when entering a new room or area
  • Repeated pauses during an opening sequence
  • Smoother performance when replaying the same section
  • New stutters after a game or graphics-driver update

Modern engines try to prevent the pause by preparing pipeline state objects, or PSOs, before they are needed. A PSO bundles shader code with other GPU settings for a drawing task. Unreal Engine’s PSO guide says certain PSOs can cause runtime hitches on first use, so the engine precaches them during startup or in the background.

What is a shader cache?

A shader cache stores completed compilation work so the system can reuse it later. Reusing a finished shader is faster than compiling it again during gameplay.

MethodWhen compilation happensMain tradeoff
Startup compilationBefore reaching the gameLonger startup, but fewer gameplay hitches
Background compilationWhile menus or gameplay continueLess waiting, but compilation competes for CPU time
Runtime compilationWhen an effect is first neededFast initial launch, but possible stutter
Cached reuseA saved result is loadedSmoother play until the cache becomes invalid

NVIDIA’s control-panel guide says its shader cache lets later runs skip repeated compilation. Installing a new driver deletes that cache, so the first run afterward may stutter. A game patch can cause similar behavior when it changes shaders or makes older cached results incompatible.

What does a “Compiling Shaders” screen mean?

A visible compilation screen means the game is trying to finish the work before active play. Waiting can be frustrating, but a complete startup process can prevent many mid-game hitches. Closing the game before it finishes may leave more work for the next launch.

Some games compile most required shaders at startup. Others prepare only a portion and build the rest as you encounter new content. Results can therefore differ between games on the same PC.

Shader stutter is not the only kind of stutter

Several problems can feel similar. The pattern around the hitch often provides the best clue.

ProblemCommon patternWhat may help
Shader compilationA new effect or area hitches once, then becomes smootherFinish precompilation and preserve the cache
Asset streamingHitches while moving quickly through new areasFaster storage, enough memory, or lower texture settings
VRAM shortageRepeated stutter in demanding scenesLower texture quality or resolution
CPU bottleneckUneven performance in crowded or complex scenesReduce CPU-heavy settings and background work
Thermal throttlingPerformance worsens after extended playCheck cooling and reduce sustained load
Network delayOnline actions or players jump while local animation stays smoothCheck latency, packet loss, and the connection
Low frame rateThe whole game remains consistently slowLower graphics settings or resolution

Lowering graphics quality may help when the GPU is overloaded, but it does not guarantee a fix for missing shader compilation. The game still needs a compatible shader for each feature combination it uses.

What can players safely try?

  1. Let the compilation process finish. If a game shows a shader progress screen, allow it to reach 100 percent. Avoid starting a match or closing the game while the process is active.
  2. Replay the same short section. Return to the area that hitched. A much smoother second run supports the shader-cache explanation, although it does not prove shaders were the only cause.
  3. Expect temporary stutter after updates. A large game patch or graphics-driver update may invalidate older cached shaders. Performance can improve after the game rebuilds its cache.
  4. Avoid clearing the cache without a reason. Deleting it forces the system to rebuild completed work. Cache removal can help if stored files are damaged, but it can make the next session stutter more.
  5. Keep storage space available. Driver-managed caches need disk space. NVIDIA warns that a limit set too low can evict shaders that are still useful and cause later stutters.
  6. Use a stable game and driver version. Updates may fix known problems, but changing versions also can trigger a rebuild. Install a recommended stable driver, restart when required, and give affected games time to prepare shaders again.
  7. Report repeatable first-use hitches. Note the game version, driver version, graphics API, settings, and exact place where the hitch occurs. A stutter that returns after every launch is useful evidence for the developer.

NVIDIA’s optional Auto Shader Compilation

NVIDIA introduced an Auto Shader Compilation beta in March 2026. The feature can rebuild supported DirectX 12 shaders while the PC is idle or when you choose Compile Now.

NVIDIA says the option appears in the NVIDIA app under Graphics > Global Settings > Shader Cache. It requires Game Ready Driver 595.97 or newer. A newly installed game still must generate its first set of shaders through the game, so the feature is not a universal fix.

Frequently asked questions

Does shader compilation mean my GPU is too weak?

No. Powerful systems can still encounter shader stutter because the interruption involves compilation timing, the CPU, the graphics driver, and the game engine. Faster hardware may shorten a pause without removing the underlying problem.

Will lowering graphics settings stop shader stutter?

Not always. Lower settings may reduce the number or complexity of effects, but changing settings can also require different shader variants. Lower settings help most when the GPU or video memory is overloaded.

Why are PC games more exposed to the problem?

PC developers must support many combinations of GPUs, drivers, operating systems, graphics APIs, and settings. Consoles use fixed hardware, which generally makes it easier to prepare shaders for a known configuration.

Why does the same area run better the second time?

The first visit may force the system to compile a shader or build a PSO. Later visits can reuse the cached result. A smoother second run is a useful clue, but asset streaming and other caches can create a similar pattern.

Should I delete my shader cache after every update?

No. Driver and game updates rebuild incompatible shaders when necessary. Manually deleting the cache removes reusable work and can create extra stutter during the next session.

Shader compilation is partly a game-engine and development problem, so players cannot fix every case themselves. The safest approach is to finish any offered precompilation, keep the game and driver stable, preserve the cache, and check whether each hitch happens only the first time a new scene or effect appears.

Image Credit: NVIDIA

Join the Conversation

Discover more from Eventide Gaming

Subscribe now to keep reading and get access to the full archive.

Continue reading