Windows 11 Shader Cache: What It Does and When to Clear It


You install a new game, start it, and the first few minutes are a mess: hitches, dropped frames, and stutter in places that later run perfectly. Nothing is broken. What you are seeing is shader compilation — the graphics driver translating the game's rendering instructions into code your specific GPU can execute — and the stutter stops once those results are stored in the shader cache.

This guide explains what the shader cache is, why it lives on your disk, when clearing it is genuinely useful, when it just makes things worse, and how a disk cache helps with the part of game loading that shaders do not cover.

PAGE CONTENT

What a Shader Cache Is

A shader is a small program that runs on your graphics card to decide what each pixel looks like. Games ship shaders as source code, and something has to compile that code for your particular GPU, driver version, and graphics settings before it can run.

Compilation takes time, and the same shader is used over and over, so the driver saves the compiled result. That saved collection is the shader cache. It lives on disk, which is why it survives restarts, and it is keyed to your driver version: update the driver and the cache is legitimately invalidated, because the compiled code no longer matches.

Where it lives depends on your hardware:

Why Games Stutter the First Time

When a game shows you something new — a new area, a new weapon effect, a new enemy type — it may need shaders it has never used before. If they are not in the cache, they must be compiled right then, while the scene is running, and the frame rate drops while that happens. Once the shaders are cached, the same scene runs smoothly.

This explains the pattern most players notice:

Note
Some games compile shaders during a loading screen or a "pre-compiling shaders" step. Letting that finish before playing is the single most effective way to avoid first-run stutter.

When Clearing the Shader Cache Helps

Clearing the shader cache is not a performance tweak. It is a troubleshooting step, and it is worth trying only when you have one of these symptoms:

If your game runs well, leave the cache alone. Clearing a healthy shader cache guarantees at least one round of stutter while everything is recompiled — the exact problem you are trying to avoid.

How to Clear It Safely

Step 1. Close all games and anything that uses the GPU heavily. Start by using the built-in tool: open the Start menu, search for Disk Cleanup, choose your system drive, and click Clean up system files.

Step 2. Tick DirectX Shader Cache and click OK. This removes the DirectX portion, which is the safest and most common fix.

Step 3. For a thorough reset, open %localappdata% in File Explorer and look for your GPU vendor's cache folders. For NVIDIA these include NVIDIA\DXCache and NVIDIA\GLCache; for AMD, AMD\DxCache. Delete the contents of these folders, not the folders themselves.

Step 4. Restart the PC so the driver and games rebuild their caches cleanly.

Step 5. Launch the game and let any shader pre-compilation step finish. Expect the first session to be slightly rough again; that is the rebuild, not a new problem.

Set the Shader Cache Size Correctly

NVIDIA's driver exposes a Shader Cache Size setting under Manage 3D settings. The available choices are a fixed size, Unlimited, and Off.

If your system drive is short on space, keep the default rather than raising the limit. The shader cache is not small on a machine with a large game library.

How a Disk Cache Fits In

A shader cache is a GPU-side cache: it stores compiled graphics code. It has nothing to do with reading textures, level data, and audio from your drive, which is where a slow disk shows up as long loading screens and streaming stutter during fast movement.

Those file reads are exactly what a disk cache accelerates. If your games live on a hard drive, Qiling Fast Cache keeps the most-used blocks in spare RAM and on a spare SSD, so repeated reads of level data and textures come from fast storage instead of the HDD.

Step 1. Download and install Qiling Fast Cache.

Step 2. Open the program, click the + button, and select the drive that holds your games.

create a new cache task in Qiling Fast Cache

Step 3. Set the cache size generously, add the SSD tier if you have a spare SSD so the cache stays warm between sessions, and click OK.

set cache size and tiers for the game drive

Step 4. Play normally for a few sessions. Levels you return to should load faster, and the cache window shows how much of the game data is being served from the fast tier.

Fast Cache performance statistics

For more on this pairing, see RAM Disk for Gaming and Faster Gameplay with Fast Cache.

FAQs About Shader Caches

Does clearing the shader cache improve performance?

No. It briefly makes performance worse because everything must be recompiled. Clear it only to fix graphical glitches or crashes.

How often should I clear it?

Only when you have a symptom. Routine clearing is one of the most common pieces of bad advice about gaming performance.

Why did my game stutter again after updating the driver?

Because the driver version changed, so the compiled shaders no longer match. The game rebuilds the cache, and the stutter fades once it has seen your usual areas again.

Is the shader cache the same as the disk cache?

No. The shader cache holds compiled GPU code; a disk cache holds copies of files read from storage. They solve different halves of game loading.

Can I move the shader cache to another drive?

Not through a supported setting. It lives where the driver puts it, and moving it can break driver behavior. If the drive is slow, cache it instead.

Do games that pre-compile shaders still stutter?

Far less, because the work happens before gameplay starts. Let that step finish rather than skipping it, and see What Is Cache Warm-Up? for why the first run is always the slowest.

Back Up Windows Before You Change Settings

Clearing GPU caches is safe, but if you also change driver settings or game configurations, a backup protects your system. Qiling Disk Master creates a full Windows image you can restore from if anything goes wrong.

Part 1: Create a Full System Backup

Step 1. Install and open Qiling Disk Master. On the home screen, open "Backup and Recovery" and choose "System Backup". This option automatically includes Windows and the hidden boot partitions, so you do not have to select them one by one.

open Backup and Recovery in Qiling Disk Master

Step 2. Check the source. The disk where Windows is installed and its system partitions are already ticked for you. If you only need your personal documents, run a separate "File Backup" task instead.

choose System Backup to protect Windows 11

Step 3. Click the destination box and choose where the image should be saved. Use an external HDD or SSD, a NAS, or any drive other than the one Windows is installed on, and make sure it has enough free space.

select an external drive as the system backup destination

Step 4. Review the task summary and click "Proceed". Wait until the progress bar reaches 100%. Do not unplug the drive or turn off the PC while the backup is running.

click Proceed to start the system backup

Part 2: Restore Windows from the Backup

Step 1. Open Qiling Disk Master again, go to "Backup and Recovery", and select the recovery option. Your backup images are listed, so pick the one you created before the changes began.

select the system backup image to restore

Step 2. Choose the target disk or partition. Normally you restore to the original system disk. If the drive was replaced, select the new disk instead, and the restore rebuilds Windows together with its boot partitions.

choose the target disk for the system restore

Step 3. Preview the restore plan, click "Proceed", and confirm the warning. The PC restarts to finish the job, and Windows comes back exactly as it was on the day the image was created, with your files and programs intact.

preview the restore plan before proceeding

Note
Keep the backup image on a separate drive, and refresh it before changing drivers or graphics settings.

Conclusion

The shader cache is a GPU-side storage for compiled graphics code, and it is the reason a game runs better on its second session than its first. Treat it as a troubleshooting tool, not a tuning knob: clear it when you see graphical glitches or shader-related crashes, leave it alone otherwise, and avoid disabling it in the driver. The stutter that remains after shaders are cached usually comes from reading game files off a slow disk, and that is where Qiling Fast Cache helps by keeping your most-used game data in spare RAM and on a spare SSD.

Protect your PC with Qiling Backup—create a system image before your next round of settings changes.

For more Windows 11 performance guides, see RAM Disk for Gaming, Faster Gameplay with Fast Cache, Windows 11 Fast Cache, What Is Cache Warm-Up?, and How Big Should Your Cache Be?.

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!


QilingTech uses cookies to ensure you get the best experience on our website.  Learn more  Got it