For months my PC suffered random micro-stutters in AAA games. I updated GPU drivers, tweaked in-game graphics, disabled background apps, and even tested RAM stability. Nothing fully stopped the hitches. The fix turned out to be one rarely-discussed setting: raising the shader cache size limit in my GPU control panel.
What shader cache actually does
Modern games, especially Unreal Engine 5 titles, use thousands of unique shaders to render lighting, materials and visual effects. Every time your GPU encounters a new shader, it compiles it on the fly. That live compilation creates brief freezes, frame-time spikes and stutters mid-gameplay.
Your GPU stores these compiled shaders in a shader cache folder on your SSD or HDD. The next time you load the same scene, it pulls the pre-compiled shader from disk instead of re-building it from scratch. The catch? GPUs have a default storage cap for this cache.
The hidden problem with the default limit
For NVIDIA GPUs, the default shader cache size sits at 10GB. That sounds large, but modern games burn through this space quickly, especially if you play multiple titles. Once the cache hits the cap, older compiled shaders get automatically deleted to make room for new ones.
That means when you return to a game you played a few weeks ago, the shaders get recompiled all over again — and the stutters come back. Most gaming guides tell you to clear shader cache to fix corruption, but almost nobody talks about increasing the cache size to stop repeated eviction.
AMD’s Adrenalin software also has a shader cache control, though its default limit differs. The core problem remains: a small cache forces repeated shader recompilation and persistent micro-stutters.
My before-and-after test
I tested on an RTX GPU playing open-world and UE5 games, recording frame times before and after the change.
Before (default 10GB limit):
- Frequent stutters while exploring new regions
- Stutters returned every time I revisited older games
- Smooth frame rate numbers, but inconsistent frame times
After setting Shader Cache Size to Unlimited:
- Initial playthrough still has minor stutters as shaders compile the first time
- On subsequent play sessions, hitches almost disappeared
- Frame times became far more stable; no more random freezes while moving through scenes
Important: The first run after changing this setting will still stutter while the cache builds. The improvement shows on your second and later playthroughs.
Step-by-step: How to adjust shader cache size
NVIDIA
- Right-click your desktop and open NVIDIA Control Panel
- Go to Manage 3D Settings > Global Settings
- Scroll down to Shader Cache Size
- Change the dropdown from Driver Default (10GB) to Unlimited
- Click Apply and restart your PC
You can also set this per-game if you do not want global unlimited cache.
AMD
- Open AMD Software: Adrenalin Edition
- Navigate to Gaming > Graphics > Advanced
- Find Shader Cache settings and enable the maximum allowed size
- Save and reboot
What about disk space?
Unlimited shader cache will grow as you play more games. It only stores compiled shader data, not full game assets. If you have a small SSD, you can pick a large fixed value like 20GB instead of unlimited. If your C: drive is tight on storage, monitor the cache folder size occasionally.
You can manually clear the cache later if needed:
- NVIDIA:
%localappdata%\NVIDIA\DXCacheandGLCache - AMD:
%localappdata%\AMD\DxCacheandVkCache
What this tweak cannot fix
This setting only addresses shader compilation stutters. It will not solve:
- CPU bottlenecks
- RAM shortages or XMP instability
- Overheating GPU or CPU
- Poorly optimized game engine bugs
- Texture streaming stutters
If your stutters happen consistently even after the shader cache is fully built, your problem lies elsewhere.
Common misconceptions
- “Clearing shader cache always fixes stutters.” Clearing cache only fixes corrupted shader files. After clearing, you will get stutters again while everything recompiles. Raising the limit prevents the cache from purging old shaders repeatedly.
- Unlimited shader cache slows your SSD. The cache reads and writes during shader compilation, which only happens on first encounter. Once cached, it is just quick reads. The extra disk usage is generally worth it for smoother gameplay.
- This works for every game. Some games ship with pre-compiled shaders and have much less shader stutter by design. UE5 open-world titles benefit the most.
Extra tips
- Use an SSD for your shader cache location. HDDs will still have longer load/compilation hitches.
- Avoid running Disk Cleanup regularly with “DirectX Shader Cache” checked, as it deletes your cached shaders.
- If you install a new GPU driver, expect a one-time shader rebuild and temporary stutters.
Final thoughts
I wasted hours chasing driver and graphics settings when the root issue was just a conservative 10GB shader cache cap. This quiet, underrated setting stopped the recurring stutters in my library.
If you have stable FPS but annoying random micro-freezes while exploring game worlds, try increasing your shader cache size. It is low-risk, reversible, and often delivers much smoother frame consistency.