If a DirectX 11 game is stuttering, showing graphical glitches, or behaving strangely after a driver update, clearing its shader cache may help. The cache stores compiled shader data so games can load effects more quickly. Removing it is generally safe: Windows and your graphics driver can rebuild the files the next time you play. The trade-off is that a game may take longer to load, or stutter briefly, while shaders are created again.
For most Windows 10 and Windows 11 users, the simplest way to clear the DirectX shader cache is through Settings. You can also use Disk Cleanup or, if needed, remove cache files manually. Follow the steps below and start with the built-in Windows option.
How to Clear the DirectX 11 Shader Cache in Windows
Windows includes a temporary-file category called DirectX Shader Cache. Clearing it removes cached shader data managed by Windows, but it does not uninstall DirectX 11, remove a game, or delete your saved games. Close games and graphics-intensive apps before starting.
- Open the Start menu and select Settings.
- In Windows 11, choose System, then Storage. In Windows 10, open System, then Storage.
- Select Temporary files. Windows may take a moment to calculate the files it can remove.
- Find and check DirectX Shader Cache.
- Review the other selected categories carefully. Uncheck anything you do not want to remove.
- Select Remove files and confirm if Windows asks.
The exact wording and layout can vary slightly between Windows versions. If you do not see DirectX Shader Cache, Windows may have no files in that category at the moment, or it may not be listed on your system. You can try Disk Cleanup instead.
Clear the Cache With Disk Cleanup
Disk Cleanup is another built-in Windows tool for removing temporary files. It is useful if you prefer a classic desktop utility or cannot find the cache category in Storage settings.
- Open Start, type Disk Cleanup, and launch the app.
- If prompted, select the Windows drive, usually C:, and choose OK.
- Wait for the scan to finish, then look for DirectX Shader Cache in the list.
- Check that item. Leave other categories unchecked unless you also want to remove those files.
- Select OK, then choose Delete Files to confirm.
If the DirectX Shader Cache option is missing, there may be nothing for Disk Cleanup to remove. Do not select unrelated items just to clear shader files. In particular, categories such as Downloads can contain personal files, so check each item before confirming.
Manually Remove the Windows DirectX Shader Cache
If the built-in tools do not work, you can check the common Windows cache folder. This approach is optional; for most people, Storage or Disk Cleanup is safer and more convenient.
- Save your work and close games, launchers, browsers, and other graphics-intensive apps.
- Press Windows key + R to open the Run dialog.
- Enter
%LOCALAPPDATA%\D3DSCacheand press Enter. - If the folder opens, select the files inside it and delete them. Do not delete other folders in AppData.
- If Windows says a file is in use, skip that file or restart the computer and try again.
The D3DSCache folder may not exist, and its contents can vary by Windows version and system. That is normal. Do not create the folder if it is missing. Windows can recreate cache data when an application needs it. You usually do not need administrator access to clear files in your own local profile.
Should You Clear NVIDIA or AMD Shader Caches Too?
Windows is not the only software that can store shader data. NVIDIA and AMD graphics drivers may maintain their own caches, and individual games may also keep shader files. Clearing the Windows DirectX Shader Cache does not necessarily remove every cache created by a GPU driver or game.
Try the Windows method first. If the issue continues and you suspect a graphics-driver cache, use the controls or instructions provided by your graphics-card manufacturer. Driver menus and cache locations can change over time. Some versions of NVIDIA or AMD software include shader-cache settings, while others rely on Windows or driver-managed folders.
Advanced users may find cache folders in their local AppData directory, such as folders associated with NVIDIA or AMD. Their names and contents vary by driver version. If you choose to inspect one, close games and the GPU control panel first, and remove only clearly identified cache files—not driver installation files, configuration folders, or unrelated data. When in doubt, do not delete it. A manufacturer-supported cleanup option is preferable to guessing which folder is safe.
Clearing a vendor cache can have the same short-term effect as clearing the Windows cache: games may rebuild shaders and briefly load more slowly. Avoid repeatedly clearing every cache as a routine maintenance step. Shader caches are designed to improve performance, and deleting them without a reason can make the next play session less smooth.
What Happens After You Clear a DX11 Shader Cache?
A shader is a small program that helps render visual effects, lighting, materials, and other graphics. Before a game can use certain shaders efficiently, Windows, the driver, or the game may compile and store them. The stored versions are called a shader cache.
After you clear the cache, the first launch of a game—or the first time you enter an area with particular effects—may involve shader compilation. You might see a loading screen, a “compiling shaders” message, or temporary stuttering. This is usually expected and should improve once the game has rebuilt the data. Let the game finish compiling rather than repeatedly closing it during that process.
Clearing shader files should not remove your game saves, screenshots, installed games, or DirectX runtime components. It also does not change a game from DirectX 11 to another graphics API. If a game offers a choice between DX11 and DX12, that setting is separate from the cache.
When Should You Clear the DirectX Shader Cache?
Clearing the cache can be a reasonable troubleshooting step when shader-related problems begin after a graphics-driver update, a game update, or a system change. It may also help if cached data appears corrupted and a game repeatedly displays visual artifacts or fails while compiling shaders. However, cache clearing is not a guaranteed fix. Crashes and poor performance can also come from outdated drivers, damaged game files, overheating, or hardware problems.
Consider clearing it when:
- A game has new graphical glitches that began after an update.
- You are troubleshooting unusual stuttering that seems connected to shader compilation.
- A support guide for your specific game or graphics card recommends it.
- You want to remove temporary shader data as part of a focused troubleshooting process.
You generally do not need to clear it simply because the folder contains files. Windows and graphics drivers manage these caches automatically. Keeping them can reduce repeated shader compilation and help games start or run more smoothly.
What to Try If Clearing the Cache Does Not Fix the Problem
If a DirectX 11 game still has problems after the cache is rebuilt, try other targeted checks. Restart the computer, install a stable graphics driver from NVIDIA, AMD, or Intel, and use the game launcher’s option to verify or repair game files. Check the game’s graphics settings and temporarily disable overlays or graphics modifications to see whether they are involved.
Also make sure Windows and the game are fully updated. If the issue started immediately after a driver update, check whether the manufacturer offers a newer stable release or follow its guidance for rolling back the driver. Avoid downloading individual DirectX files from third-party websites; use Windows Update and official software sources instead.
If performance drops only on the first run after clearing the cache, give the game time to rebuild shaders before judging the result. If stuttering continues across several sessions, or the game crashes with a specific error, consult the game publisher’s support information. Include your graphics card model, driver version, Windows version, and the exact error message when asking for help.
Frequently Asked Questions
Is it safe to delete the DirectX Shader Cache?
Yes, clearing the Windows DirectX Shader Cache through Storage settings or Disk Cleanup is a normal troubleshooting action. Windows and applications can generate replacement data as needed. The main drawback is temporary shader compilation and possible first-run stuttering.
Will clearing the cache improve FPS?
Not usually as a general performance boost. It can help if a cache is corrupted and causing a specific problem, but deleting healthy cache files may make performance temporarily worse while shaders are rebuilt. It is best treated as a troubleshooting step, not a regular FPS optimization.
Will clearing it delete game saves or reinstall DirectX?
No. The DirectX Shader Cache is temporary graphics data. Clearing it does not uninstall DirectX 11, remove installed games, or delete game saves when you use the steps described above.
Why can’t I find the DirectX Shader Cache option?
Windows may not have any cache files to display, or the option may be presented differently on your version. Try Disk Cleanup. If the relevant folder is absent too, there may simply be nothing to clear.
Conclusion
To clear the DX11 shader cache, start with Settings > System > Storage > Temporary files, select DirectX Shader Cache, and remove the files. Disk Cleanup is a reliable alternative, while manually clearing %LOCALAPPDATA%\D3DSCache is an optional fallback. Close games before cleaning, avoid deleting unfamiliar driver folders, and expect a short period of shader rebuilding afterward. If the original problem persists, investigate the game files, driver, and graphics settings rather than repeatedly clearing caches.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.