What clearing your Nvidia shader cache does
Your Nvidia graphics card stores compiled shaders — small programs that tell your GPU how to draw specific visual effects — in a cache on your hard drive. Over time this cache can grow large, become corrupted, or contain outdated versions that cause stuttering, crashes, or visual glitches in games and 3D applications. Clearing it removes these stored shaders so your GPU rebuilds them fresh the next time you run a program.
You do not need to clear this cache often. Most people only do it when they notice graphics problems after a driver update, or when troubleshooting a specific game that stutters on first launch. Clearing the cache does not harm your system — it just means the first time you run a graphics-heavy program afterward, your GPU will spend a few extra seconds compiling shaders instead of loading them from storage.
Key Takeaways
- The Nvidia shader cache lives in a hidden folder on your hard drive that you can delete manually without affecting your system.
- On Windows, the cache is usually at C:\Users\[YourUsername]\AppData\Local\Nvidia\GLCache or C:\Users\[YourUsername]\AppData\Local\Nvidia\DXCache depending on which graphics API your programs use.
- On Linux, look in ~/.cache/nvidia/GLCache or check your Nvidia driver settings panel for the exact location.
- You can also clear the cache through Nvidia's driver control panel, which is faster than finding the folders manually.
Clearing the cache on Windows through File Explorer
First, show hidden files so you can see the AppData folder. Open File Explorer, click the View tab at the top, then check the box next to "Hidden items". You should now see folders that were grayed out before.
Navigate to C:\Users\[YourUsername]\AppData\Local\Nvidia. Replace [YourUsername] with your actual Windows username. Inside the Nvidia folder you will see one or more cache folders: GLCache (for OpenGL programs), DXCache (for DirectX programs), or both. Right-click each cache folder and select Delete. Windows will move it to the Recycle Bin, so you can restore it if something goes wrong.
After you delete the folders, close File Explorer and restart any graphics-heavy programs you use. Your GPU will rebuild the cache automatically on the next launch. The first time may take a few seconds longer than usual as shaders compile.
Clearing the cache through Nvidia Control Panel
Right-click on your desktop and select Nvidia Control Panel from the menu. If you do not see this option, your Nvidia drivers may not be installed or may need updating. In the Control Panel window, look for the menu on the left side and click Manage 3D Settings.
Scroll down in the Settings list until you find Shader Cache. The default setting is usually "Driver Default". Below that option you will see a button or link to clear the cache — the exact label varies by driver version but usually says "Clear" or "Delete Cache". Click it. A confirmation dialog will appear; click Yes or OK to confirm.
This method is faster than navigating folders manually and does the same thing. After clearing, close the Control Panel and restart your graphics programs.
Clearing the cache on Linux
Open a terminal and navigate to the cache directory by typing cd ~/.cache/nvidia/GLCache. If this folder does not exist, your system may not have created a cache yet, or your Nvidia drivers may not be installed. You can check your driver status by typing nvidia-smi in the terminal — if the command is not found, you need to install Nvidia drivers first.
Once you are in the GLCache folder, type rm -r * to delete all files inside it. The asterisk tells the system to remove everything in that directory. If you use other graphics APIs, you may also have a DXCache folder in the same parent directory — repeat the process there if it exists.
After clearing, close the terminal and restart your graphics programs. The cache will rebuild on the next launch.
When to clear the cache and when not to
Clear your shader cache if you notice stuttering or visual glitches that started after a driver update, or if a specific game stutters badly on its first launch. You should also clear it if you switch between different Nvidia driver versions — old cached shaders may not work correctly with a new driver.
Do not clear the cache as routine maintenance. There is no benefit to clearing it regularly, and doing so only forces your GPU to recompile shaders unnecessarily. If your system runs smoothly, leave the cache alone. Clearing it is a troubleshooting step, not a performance optimization.
What to do if clearing the cache does not fix the problem
If you still see graphics problems after clearing the cache, the issue may be something else. Try updating your Nvidia drivers to the latest version — outdated drivers cause more graphics issues than a corrupted cache. You can download the latest driver from Nvidia's website by selecting your GPU model and operating system.
If updating drivers does not help, the problem may be overheating, a failing GPU, or a conflict with your specific game or application. Check your GPU temperature using a tool like GPU-Z or HWiNFO. If your GPU is running above 80°C under load, your cooling may be inadequate. If temperatures are normal and the problem persists only in one game, try verifying the game's files through its launcher (Steam, Epic Games, etc.) to rule out corrupted game data.
Frequently Asked Questions
Will clearing the shader cache speed up my computer?
No. Clearing the cache does not improve performance — it actually causes a brief slowdown the first time you run graphics programs afterward, because your GPU has to recompile shaders. The cache exists to make programs load faster, not slower. Clear it only to fix problems, not to optimize speed.
Is it safe to delete the Nvidia cache folders manually?
Yes. The cache is not essential to your system's operation — it is just stored data that your GPU can rebuild. Deleting it will not break Windows, Linux, or any installed programs. Your system will simply regenerate the cache the next time you run a graphics program.
Do I need to clear the cache before uninstalling Nvidia drivers?
No, but it does not hurt. If you are uninstalling drivers completely, the cache will be removed anyway during the uninstall process. Clearing it beforehand is unnecessary but harmless.
What is the difference between GLCache and DXCache?
GLCache stores shaders for programs that use OpenGL (a graphics standard used by many games and professional software). DXCache stores shaders for programs that use DirectX (primarily Windows games). Most modern games use DirectX, but some use OpenGL. You can clear both if you are not sure which one is causing problems.
How long does it take to rebuild the shader cache?
Rebuilding happens automatically and usually takes only a few seconds per program. The first time you launch a graphics-heavy game or application after clearing the cache, you may notice a brief pause as shaders compile. Subsequent launches will be normal speed because the cache is rebuilt.