If a game is stuttering, displaying visual glitches, or behaving strangely after a graphics driver update, clearing the NVIDIA shader cache may help. The shader cache stores data that NVIDIA graphics drivers and games can reuse, reducing the time needed to prepare graphics effects. If cached data becomes outdated or corrupted, removing it can give your PC a fresh start.
Clearing the cache is generally safe, but it can make games load more slowly or stutter briefly the next time you play while shaders are rebuilt. This guide explains how to clear the NVIDIA shader cache in Windows 10 and Windows 11, which folders are usually safe to clean, and what to try if the problem continues.
What Is the NVIDIA Shader Cache?
A shader is a small program used by a game or graphics application to create effects such as lighting, shadows, reflections, and surface details. Your graphics driver processes shaders so the GPU can use them. Rather than repeating that work every time, NVIDIA drivers and some games save compiled shader data in a cache on your storage drive.
The cache is designed to improve performance, not reduce it. Reusing prepared shaders can shorten loading times and help prevent repeated shader compilation from disrupting gameplay. However, a driver update, game update, or corrupted cache file can sometimes leave the system using data that is no longer suitable. Deleting the cache prompts the relevant software to create fresh shader data as needed.
Shader caches can be stored in more than one place. Windows may maintain a DirectX shader cache, the NVIDIA driver may store cache files in your user profile, and individual games or launchers may keep their own caches. You do not need to remove every cache on your computer to troubleshoot an NVIDIA graphics issue. Start with Windows’ built-in cleanup option, then try the NVIDIA folders if necessary.
Before You Clear the Cache
Save your work and close games, launchers, video editors, and other graphics-intensive programs. These applications may be using cache files, and closing them reduces the chance of a file being locked or recreated while you are cleaning it. If Windows says a file is in use, skip it rather than forcing it to close.
It is also useful to note when the issue started. If the problem began immediately after a driver update, a clean driver installation may be more relevant than clearing shader files alone. If only one game is affected, its own cache or game files may be responsible. Clearing the cache is a troubleshooting step, not a guarantee that every graphics problem will be fixed.
Method 1: Clear DirectX Shader Cache in Windows
The simplest approach is to use Windows’ temporary-file cleanup tools. This removes the DirectX shader cache managed by Windows without requiring you to find folders manually.
In Windows 11:
- Open Settings from the Start menu.
- Select System, then choose Storage.
- Open Temporary files and wait for Windows to scan your drive.
- Select DirectX Shader Cache. Review the other selected categories carefully so you do not remove files you want to keep.
- Choose Remove files and confirm.
In Windows 10:
- Open Settings and select System.
- Choose Storage, then select Temporary files.
- Check DirectX Shader Cache.
- Click Remove files.
The wording or layout may vary slightly between Windows versions. If you do not see the DirectX shader cache option, try Disk Cleanup. Search for Disk Cleanup from the Start menu, choose your Windows drive, and select DirectX Shader Cache in the list of files to delete. Confirm the cleanup when you are ready.
This method targets the Windows DirectX cache. It may not remove every cache created by NVIDIA drivers or by individual games, so continue to the next method if you are troubleshooting a problem that remains.
Method 2: Manually Clear NVIDIA Shader Cache Files
NVIDIA shader cache files are commonly stored in folders inside your Windows user profile. You can open a folder quickly by using its path in File Explorer’s address bar. The exact folders present can vary by driver, Windows installation, and the applications you use.
To check common NVIDIA cache locations:
- Press Windows key + R to open the Run dialog.
- Enter
%LOCALAPPDATA%\NVIDIAand press Enter. - Look for folders named
DXCacheorGLCache. - If present, open each cache folder and delete its contents, not the parent
NVIDIAfolder. - You can also check
%PROGRAMDATA%\NVIDIA Corporation\NV_Cachein File Explorer, if that location exists on your PC.
To remove the contents of a cache folder, press Ctrl + A to select the files, then press Delete. If Windows asks for administrator permission, approve the request only if you are sure you are inside the stated cache folder. If some files cannot be deleted because they are in use, skip those files or restart the computer and try again before opening games or graphics applications.
You may also find a Windows Direct3D cache at %LOCALAPPDATA%\D3DSCache. This is not an NVIDIA-only folder, but clearing its contents can be useful when troubleshooting a DirectX game. As with the other locations, remove the contents rather than deleting the folder itself. Do not delete unrelated NVIDIA driver folders, installation files, or folders whose purpose you do not recognize.
Method 3: Restart and Let the Cache Rebuild
After cleaning the cache, restart your computer. This helps close background processes that may still be using graphics files and gives Windows and the NVIDIA driver a clean session. Once the PC restarts, launch the game or application that was affected.
The first launch may take longer than usual. You might also notice brief stuttering while the game compiles shaders again. This is expected and should improve after you play for a while or launch the same areas again. Avoid repeatedly deleting the cache as a routine performance tweak: a cache that is continually removed cannot provide its normal benefit.
For the fairest comparison, test the same game, graphics settings, and scene before and after clearing the cache. Give the game time to complete its initial shader compilation, and avoid judging performance based only on the first few minutes after cleanup.
Can You Clear the Shader Cache in NVIDIA Control Panel?
NVIDIA Control Panel includes graphics settings, and some driver versions let you set the maximum size of the shader cache under Manage 3D settings. The available options can differ depending on the driver. This setting controls whether shader caching is enabled or how much space it may use; it is not generally a direct “clear cache now” button.
To review the setting, open NVIDIA Control Panel, select Manage 3D settings, and look for Shader Cache Size in the global settings. If you change a setting, select Apply. You normally do not need to disable shader caching to clear old files. Leaving it enabled allows the driver to build a useful cache again as you play.
NVIDIA software interfaces may change over time, so do not rely on a particular app version having a cache-cleaning button. Windows cleanup and the cache-folder method are the more direct approaches described above.
Will Clearing the NVIDIA Shader Cache Improve FPS?
Clearing the cache does not usually increase average frame rates by itself. The cache is meant to help graphics applications run efficiently, so deleting it may temporarily make performance worse while shaders are recreated. Clearing it can still be worthwhile if you suspect the existing cache is corrupted or mismatched after an update.
Once the cache has been rebuilt, performance should generally return to its usual level. If you still experience low frame rates, crashes, texture problems, or persistent stuttering, investigate other causes such as outdated drivers, game updates, overheating, background applications, power settings, or damaged game files.
If the Problem Continues
Try these additional troubleshooting steps if clearing the cache does not resolve the issue:
- Update the game and graphics driver. Install updates from the game developer or NVIDIA, especially if the issue is known to affect a particular release.
- Restart the computer. A full restart can resolve temporary problems with the driver or background processes.
- Verify the game’s files. Use the repair or verify option in the game launcher to check for missing or damaged files.
- Test another game or application. If only one title is affected, investigate that title’s settings, updates, or game-specific cache.
- Reinstall the graphics driver if needed. If problems started after a driver change, reinstalling a stable driver may help. Follow NVIDIA’s installation instructions and avoid removing unrelated system files.
- Check temperatures and system stability. Overheating, unstable overclocks, or power problems can cause symptoms that appear to be graphics-cache issues.
Before making more significant changes, note your current graphics settings and create a restore point if you are comfortable doing so. If the computer displays repeated crashes or visual artifacts across multiple applications, consider checking the hardware and getting help from a qualified technician.
Frequently Asked Questions
Is it safe to delete NVIDIA shader cache files?
Yes, deleting the contents of recognized shader-cache folders is generally safe. The driver or application can recreate the data. Close graphics applications first, and do not delete neighboring driver or system folders.
Will clearing the cache delete my games or saved files?
No. The DirectX and NVIDIA shader caches contain temporary graphics data, not game installations or saved-game progress. Still, check the folder path carefully before deleting anything.
How often should I clear the shader cache?
There is no need to clear it on a schedule. Do so when troubleshooting a specific problem, such as unusual stuttering or rendering errors after a driver or game update. Otherwise, allowing the cache to work normally is usually best.
Why is the cache folder empty or missing?
Windows or the NVIDIA driver may not have created it yet, the cache may be stored elsewhere, or your system may use a different configuration. An empty or missing folder is not necessarily a problem. Use Windows’ DirectX Shader Cache cleanup option if it is available.
Conclusion
To clear the NVIDIA shader cache, begin with Windows Settings or Disk Cleanup and remove the DirectX Shader Cache. If you need to remove NVIDIA-specific cached files, check common locations such as %LOCALAPPDATA%\NVIDIA\DXCache, %LOCALAPPDATA%\NVIDIA\GLCache, and, when present, %PROGRAMDATA%\NVIDIA Corporation\NV_Cache. Delete only the contents of confirmed cache folders, then restart your PC and allow games to rebuild their shaders.
Expect a slower first launch or brief stuttering while the cache is recreated. If the original issue remains after that, check the game files, driver, and system stability rather than repeatedly clearing the cache. This approach keeps the cleanup targeted while giving Windows and your NVIDIA GPU a fresh set of shader data.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.