Why compiled shaders need a cache
A shader is a small program the GPU executes per vertex or per pixel, and it has to be compiled for your exact GPU and driver version before it can run. That compilation is expensive — tens to hundreds of milliseconds per shader — and a modern game contains thousands of them. When a new shader appears mid-game, the compilation shows up as a hitch: the notorious first-play stutter you feel in the first hour of many games.
So drivers save the compiled results on disk and reuse them on later launches. That is the entire job of the shader cache: turning compile-time stutter into a one-time cost. It is also why a bigger cache is usually a good thing — everything in it is stutter you are not experiencing.
Where the cache lives on disk
Windows itself keeps a Direct3D cache under %LOCALAPPDATA%\D3DSCache, and each driver vendor adds its own folders. Together they routinely reach a few gigabytes on a gaming machine — which is when people start noticing them.
- %LOCALAPPDATA%\D3DSCache — the Windows Direct3D shader cache used by apps and games
- %LOCALAPPDATA%\NVIDIA\DXCache — NVIDIA's cache for DirectX shaders
- %LOCALAPPDATA%\NVIDIA\GLCache — the same for OpenGL titles
- %LOCALAPPDATA%\AMD\DxCache — AMD's DirectX shader cache
- %LOCALAPPDATA%\AMD\DxcCache — AMD's cache for DX12/DXIL shaders
- %LOCALAPPDATA%\Intel — Intel graphics keeps its shader cache in subfolders here
When clearing helps — and when it just costs time
The legitimate cases are narrow. If a GPU driver update left corrupted entries in the cache, games can crash at launch, show graphical artifacts or stutter where they never did before — deleting the cache forces a clean recompile and fixes exactly that class of problem. Disk Cleanup offers a 'DirectX Shader Cache' checkbox, and Settings → Storage → Temporary files lists the same entry; both delete the contents of these folders safely.
What clearing does not do is improve performance. A healthy cache makes games run smoother, not slower — wipe it and every game pays the compilation cost again on its next first runs. Treat it like medicine, not like a ritual: clear when symptoms appear after a driver change, leave it alone otherwise.
Questions and Answers
Is it safe to delete the DirectX shader cache?
Yes. Drivers rebuild it automatically — the only cost is recompiling shaders, which brings back some first-play stutter in games until the cache refills.
Why do games stutter the first time I play them?
New shaders are being compiled for your exact GPU and driver as the game runs. Once the compiled versions sit in the shader cache, later runs replay them from disk without the hitches.
Know what is included before you buy.
The one-time 30-minute trial covers core tools. PRO-labelled features stay locked until a paid license is activated.
Read next
Write to us: [email protected]