What is the Shader Cache and Why Does It Cause Stuttering?
Modern video games written in DirectX 12 and Vulkan compile graphic shaders to match your specific GPU architecture and driver version. To avoid compiling thousands of mathematical rendering formulas every time you launch a game, your graphics driver and Windows store these compiled instructions on your SSD in a local repository called the Shader Cache.
While caching speeds up map loading under ideal conditions, driver updates and game patches frequently leave behind obsolete or corrupt cache files. When a game encounters a corrupt shader file, the engine stalls for several frames while trying to recompile the asset in the middle of gameplay. This produces severe hitching, micro-stutters during gunfights, and unexplained 0.1% low frame rate dips.
Clearing corrupted shader directories and running a dedicated FPS tweak tool refreshes your graphics pipeline, removes orphaned DirectX cache bloat, and restores smooth frame delivery across all titles.
Method 1: Clear DirectX Shader Cache via Windows Disk Cleanup (Windows 10 & 11)
Windows includes a native cleanup tool designed specifically to flush obsolete DirectX shader files without affecting your game saves or personal settings.
-
Press
Windows Key + S, type Disk Cleanup, and open the application. -
Select your system drive (usually
C:) and click OK. -
Click on Clean up system files. Windows will rescan the drive.
-
In the list of files to delete, uncheck everything except DirectX Shader Cache.
-
Click OK and confirm by selecting Delete Files.
-
Restart your PC to ensure the graphics driver initializes a fresh cache container.
System > Storage > Temporary files. Check ‘DirectX Shader Cache’ and click Remove files.”>Storage Sense Alternative on Windows 11
You can also clear shader cache in Windows 11 by navigating to Settings > System > Storage > Temporary files. Check ‘DirectX Shader Cache’ and click Remove files.
PC Headroom Check
How much FPS is your PC leaving on the table?
Method 2: Manually Delete NVIDIA Shader Cache Folders (DXCache & GLCache)
While Windows Disk Cleanup flushes native DirectX temporary assets, NVIDIA drivers maintain separate cache directories inside your AppData folders that can grow to tens of gigabytes over time.
Follow these steps to manually purge NVIDIA shader cache folders:
-
Close all running games, Steam, Discord, and your web browser.
-
Open NVIDIA Control Panel, click Manage 3D settings, scroll down to Shader Cache Size, and set it to Disabled. Click Apply. (This unlocks file locks on the cache folders).
-
Press
Windows Key + R, type%localappdata%NVIDIA, and press Enter. -
Open the folders named DXCache and GLCache. Select all files inside (
Ctrl + A) and delete them. If a few files say they are in use, click Skip. -
Press
Windows Key + Ragain, type%appdata%NVIDIAComputeCache(or%localappdata%NVIDIA CorporationNV_Cache), and delete the contents. -
Return to NVIDIA Control Panel and re-enable Shader Cache Size (set it to 10 GB or 100 GB).
For more detailed driver tweaks, read our in-depth NVIDIA Control Panel gaming guide.
Method 3: Clear AMD Radeon Shader Cache via Adrenalin Software
AMD makes clearing shader caches straightforward by providing a one-click reset button directly inside the driver settings interface.
-
Right-click your desktop and open AMD Software: Adrenalin Edition.
-
Click the gear icon (Settings) in the top-right corner, then select the Graphics tab.
-
Scroll down to the bottom and click on Advanced to expand additional settings.
-
Locate the Reset Shader Cache option and click Perform Reset.
-
Click OK when prompted. The driver will immediately purge all cached AMD DirectX and Vulkan shaders.
How to Increase NVIDIA Shader Cache Size to 10GB or 100GB
By default, NVIDIA sets the Shader Cache Size to “Driver Default”, which caps cache storage at only 4GB. In modern titles using Unreal Engine 5 or heavy asset streaming (like Cyberpunk 2077, Modern Warfare 3, or Hogwarts Legacy), a 4GB cache fills up rapidly. When the limit is reached, older shaders are deleted, forcing the game to recompile them later.
<table data-rec-table=”true” class=”rec-table” data-rows='[{“setting”:”NVIDIA Shader Cache Size”,”value”:”10 GB (Recommended)”,”why”:”Ample space to hold shaders for 10-15 installed games without constant eviction.”},{“setting”:”Heavy Modding / 4K Gaming”,”value”:”100 GB”,”why”:”Essential for heavily modded games (Skyrim, FiveM, Assetto Corsa) with massive texture packs.”},{“setting”:”Budget SSDs (SettingRecommended ValueWhyNVIDIA Shader Cache Size10 GB (Recommended)Ample space to hold shaders for 10-15 installed games without constant eviction.Heavy Modding / 4K Gaming100 GBEssential for heavily modded games (Skyrim, FiveM, Assetto Corsa) with massive texture packs.Budget SSDs (<256GB C: Drive)5 GBBalances compilation caching without exhausting primary system drive capacity.
When Should You Clear Your Shader Cache?
Clearing your shader cache should not be done daily. You should clear your shader cache under the following specific circumstances:
-
After a GPU driver update: Especially when using Display Driver Uninstaller (DDU) or switching between GPU vendors.
-
After a major game patch: When a game update overhauls lighting models or rendering engines.
-
When experiencing sudden stuttering: If a game that used to run smoothly starts micro-freezing during combat, follow our troubleshooting guide on how to fix stuttering in games on PC.
-
When diagnosing low FPS: Check our comprehensive why is my FPS low troubleshooting guide to rule out driver-level asset corruption.
-
After upgrading to Windows 11: To ensure clean operating system integration, review our guide to optimize Windows 11 for gaming.
Need to check your available storage and identify performance bottlenecks on your drives? Test your disk headroom with our live tool:
Storage Speed
Pick your drive type for targeted tweaks
SATA SSD Optimization Tips
5–10s faster loading- Enable TRIM
- Disable SuperFetch for game drives
- Update SSD firmware
- Set AHCI mode in BIOS
