← Blog

How to Clear Shader Cache (2026): Fix Stutter and Repeated Shader Compiling on Windows, NVIDIA and AMD

In Modern Warfare 4, a soldier in a helmet and goggles holds a rifle against a wall while a building behind him burns on a night street, sparks drifting through the air
Image source: © Activision · Call of Duty: Modern Warfare 4 official Steam screenshot
Key takeaways
  • A shader cache is the graphics code a game builds for your exact GPU and driver. Clearing it forces a rebuild, so the first match afterwards usually stutters a little more. That is expected.
  • Work through three places: the DirectX Shader Cache in Windows, the Shader Cache Size setting and cache folders for NVIDIA, and Reset Shader Cache in AMD Software. Only do the GPU brand you actually have.
  • In games with built in shader preloading, such as Call of Duty, let it finish before you queue. Activision warns that leaving the main menu early stops preloading and can cause performance issues.

You update your graphics driver, and a game that ran fine yesterday now hitches every few seconds. Or the shader compilation screen shows up every single time you launch.

The standard advice on every forum is to clear your shader cache, but plenty of people do it, see an even choppier first match, and assume they broke something.

This guide, current as of November 10, 2026, explains what the shader cache actually is, when clearing it makes sense, how to do it on Windows, NVIDIA and AMD, and why in game shader preloading deserves your patience.

The problem shows up most in games like Modern Warfare 4, which prepares shaders on first launch and after big updates, and in large open worlds like Crimson Desert, where new areas keep throwing fresh effects at your GPU. One thing to set straight up front: clearing the cache does not raise your average FPS. It cleans out corrupted or outdated data that causes repeated compiling and sudden frame time spikes.

What to try first, by symptom

SymptomMost likely causeTry this first
Only the first match after a driver update stuttersThe game is rebuilding shaders for the new driverDo not clear anything yet. Play two or three more matches and reassess.
Shader compiling restarts from zero every launchCache is not being saved, or it is corruptedClear the Windows DirectX Shader Cache and your GPU cache, then restart.
Same spot hitches for days on endStale or corrupted cacheClear the GPU side cache, then run the same spot twice and compare.
Stutter in a match you joined before preloading finishedPrecompilation did not completeWait on the main menu until the progress indicator is full.
Stutter got worse after setting NVIDIA Shader Cache Size to DisabledNothing is cached, so everything compiles every timeSet Shader Cache Size back to Driver Default.
Gameplay is smooth but your recording stuttersRecording encoder settingsFollow the order in fixing game recording stutter to check your recording settings.

Before you clear anything: what the cache does and what clearing it costs

Shaders are small programs that tell your GPU how to draw lighting, shadows, water, smoke and everything else on screen. Modern DirectX 12 and Vulkan games have to compile those shaders for your specific GPU and driver version, then save the result to disk so they can reuse it next time.

That saved data is the shader cache. When the game hits an effect it has never compiled before, it builds it on the spot, and the frame waits. That hitch is what people call shader compilation stutter.

Update your driver or install a big game patch and the old cache no longer matches, so the game compiles again. That is why stutter and compile screens cluster right after updates, and it is normal behavior, not a fault.

Clearing the cache is worth it in a narrower set of cases: you have played for several sessions after an update and still hitch in the same spots, the game recompiles from zero every launch, or you see broken textures and flashing that point to corrupted data. Clearing gives the game a clean slate.

The trade off is that the next launch and the first match rebuild everything, so they take longer and can stutter more than before. Judge the result on your second or third match on the same route, never the first. If the hitches shrink, the cache was the problem. If nothing changes, look elsewhere.

How to clear shader cache, in order

  1. 1Let in game shader preloading finishIf the game has its own shader preloading step, as recent Call of Duty titles do, start there. That step is an important part of the first boot: leaving the main menu pauses it, and jumping into a match before it finishes can cost you performance. Modern Warfare 4 runs it again after major updates and resumes where it left off if you interrupt it. Since October 21, 2026, copies installed through the Microsoft Store or the Xbox PC app on Windows 11 (24H2 or later) with a supported GPU (NVIDIA RTX or AMD RDNA cards, for example) can also receive precompiled shaders through Advanced Shader Delivery; when that works, the launch screen shows Precompiled shaders installed in the bottom left corner. Keep your graphics driver current, and if you do not see that line, wait until the main menu progress indicator is full before you queue.
  2. 2Clear the DirectX Shader Cache in WindowsOn Windows 11, open Settings > System > Storage > Temporary files, tick only DirectX Shader Cache, and click Remove files. Disk Cleanup works too: search for Disk Cleanup in the Start menu, pick your C drive, tick the same DirectX Shader Cache entry, and click Delete Files. Untick everything else you do not need. Your save files and game settings are not stored in this entry.
  3. 3NVIDIA: check Shader Cache Size and empty the cache foldersIn NVIDIA Control Panel, go to Manage 3D settings > Global Settings and find Shader Cache Size. If an old optimization guide had you set it to Disabled, that alone can cause constant recompiling, so set it back to Driver Default. For a full wipe, set it to Disabled temporarily and restart, then type %LOCALAPPDATA%\NVIDIA into the File Explorer address bar and delete the files inside DXCache and GLCache. Recent drivers also keep a cache under AppData\LocalLow\NVIDIA\PerDriverVersion, so check there too. Afterwards, set Shader Cache Size back to Driver Default and restart again. The rest of the panel is covered in NVIDIA Control Panel gaming settings.
  4. 4AMD: run Reset Shader CacheOpen AMD Software: Adrenalin Edition, go to the Gaming tab, open Graphics, expand Advanced, and find Reset Shader Cache. Click Perform Reset to wipe the shader cache the driver has stored. The exact location shifts a little between driver versions, so if you cannot see it, type shader cache into the AMD Software search bar. This button only clears the driver cache, so clear the Windows DirectX Shader Cache separately as in the earlier step.
  5. 5Restart and let the first launch compile fullyRestart your PC, then launch the game. The compile screen will run longer than usual because every shader is being rebuilt from scratch. Do not alt tab away or jump straight into a match; let it finish. For Steam games that use Vulkan or OpenGL, keeping Shader Pre-Caching enabled in Steam settings lets Steam download precompiled shaders and shortens that first launch.
  6. 6Play the same stretch twice and compareRun the area or map that used to hitch once just to rebuild the cache, then run the same route again and pay attention the second time. The first run is building fresh cache, so it is not a fair comparison. If you want numbers, turn on an on screen counter with how to show FPS in games. What matters is whether the sudden drops got fewer, not whether the average moved.

After clearing, confirm these

  • The in game shader preloading or compile progress reached 100 percent.
  • NVIDIA Shader Cache Size is set to Driver Default, not Disabled.
  • You judged stutter on the second match after clearing, not the first.
  • You compared the same location, graphics settings and background apps.
  • If the game still recompiles every launch, you checked free space on your C drive.
If the stutter survives a cache wipe and Task Manager shows disk usage pegged or memory commit right at its limit, the cause may be memory rather than shaders. Our guide to virtual memory settings for gaming walks through checking RAM and page file headroom for big games. Also keep some free space on your system drive. When it is nearly full, the game may have nowhere to store a fresh cache and end up compiling again every time.

Prove the stutter is gone with before and after footage

Shader stutter lasts a fraction of a second, so feeling like it improved is not much to go on. Record the stretch that hitches before you clear anything, then record the same stretch on your second match afterwards and watch them side by side. The difference is easy to see.

DOR is a free Windows game recorder. It detects supported games when you launch them and records the whole match, or the full session from launch to exit, and gathers everything in My Clips inside the app.

For Modern Warfare 4 it detects the campaign and multiplayer separately and records the full session.

Trim just the part you want to compare in 16:9, 9:16 or 1:1, then put both clips together in DOR Studio (dor.gg/studio) and export an mp4 or share a dor.gg link when you ask for help on Reddit or Discord.

On supported NVIDIA graphics cards such as the RTX series, DOR records with NVENC hardware encoding. To keep recording conditions identical between the two runs, follow the same method as before and after recording for gear upgrades.

Recording that starts when your game does: game recording software →

FAQ

FAQ

Will clearing shader cache increase my FPS?

Not your average FPS. It cleans out corrupted or outdated cache that causes repeated compiling and sudden hitches. The first match after clearing can actually stutter more while shaders rebuild, so judge the result from the second match onward.

What should NVIDIA Shader Cache Size be set to?

Leave it on Driver Default unless you have a specific reason. Setting it to Disabled means nothing gets saved, so shaders compile again every time and stutter can get worse. There is no need to shrink it unless you are genuinely short on disk space.

Shader preloading takes forever. Can I skip it?

You can, but a match you join before it finishes may stutter. Call of Duty resumes preloading where it left off, so if you are short on time, stop it and let it finish on the main menu later. Seeing it run again right after a driver or game update is normal.

Games

Related game guides

Read next

Related articles

Get started with DOR

Just launch the game and DOR records on its own, so you never miss a great play