If a game is stuttering, crashing, or showing visual glitches, you may be wondering: how do I clear the NVIDIA driver cache? NVIDIA and Windows store temporary graphics data to help games and apps load and run more efficiently. If that data becomes outdated or corrupted, deleting the cache can sometimes help troubleshoot performance problems. The files are temporary, so your system can rebuild them when needed.
This guide explains how to clear the NVIDIA shader cache in Windows, where to find related cache files, what to expect after deleting them, and how to approach the process on Linux. Follow the steps carefully, and avoid removing NVIDIA driver files that are not cache data.
What Is the NVIDIA Driver Cache?
The NVIDIA driver cache is temporary data created by your graphics driver and applications. A key part is the shader cache. Shaders are small programs used to create graphics effects such as lighting, shadows, and reflections. Rather than compiling the same shaders every time a game launches, your system can save compiled versions and reuse them later.
Keeping this data can reduce loading times and help games run more smoothly after their first launch. However, cache files may occasionally become damaged, or an update to a game, graphics driver, or Windows may make older cached data less useful. Clearing the cache gives the system a fresh start by removing those temporary files.
Clearing the cache is a troubleshooting step, not a routine maintenance task that you need to perform on a schedule. It also will not repair every graphics problem. If an issue is caused by overheating, a faulty driver installation, damaged game files, or an unstable overclock, deleting cache data alone may not solve it.
Before You Clear the NVIDIA Cache
Save your work and close games, video editors, 3D software, browsers, and other graphics-intensive apps. These programs may be using cache files, and closing them can prevent a file from being locked while you remove it. You generally do not need to uninstall your NVIDIA driver or use administrator permissions to delete cache folders in your Windows user profile.
Keep in mind that the first launch after clearing the cache may take longer than usual. A game may briefly stutter while shaders are compiled again. This is expected and should improve once the new cache has been built. If you are troubleshooting one specific game, launch it and test the same area or activity after the cache has had time to rebuild.
How to Clear the NVIDIA Driver Cache in Windows
The following steps work on most Windows 10 and Windows 11 computers with an NVIDIA graphics card. Folder names can vary slightly between driver versions and systems, so you may not see every folder listed below.
- Close graphics apps: Exit games and other programs that use the NVIDIA GPU. Check the system tray and close any game launcher or graphics application that is still running, if practical.
- Open your local AppData folder: Press Windows + R, type %LOCALAPPDATA%, and press Enter. This opens the Local folder inside your Windows user profile.
- Find NVIDIA’s cache folders: Open the NVIDIA folder. Look for folders such as DXCache, GLCache, or ComputeCache. Some systems or driver versions may also have a folder named NV_Cache.
- Delete the contents: Open a cache folder and delete the files inside it. You can also delete the cache folder itself; Windows or the NVIDIA driver may recreate it when needed. If Windows says a file is in use, skip that file or restart the PC and try again before opening your usual apps.
- Restart Windows: A restart is not always essential, but it helps ensure that programs have released their files and gives you a clean starting point for testing.
- Launch your game or app: Allow it to load and rebuild its shaders. The first session may take longer or have temporary stutters; test performance again after the app has run for a while.
To reach the location directly, you can paste %LOCALAPPDATA%\NVIDIA into the File Explorer address bar. If that path does not open or you do not see the expected folders, your driver may store cache data elsewhere, or the cache may not have been created on that account yet.
Clear the DirectX Shader Cache in Windows
Windows may also keep a DirectX shader cache outside the NVIDIA folder. You can remove this data using Windows’ built-in storage tools. This is a useful option if you want to clear shader cache files without manually browsing through folders.
- In Windows 11: Open Settings, select System, then Storage. Choose Temporary files, select DirectX Shader Cache, and choose Remove files.
- In Windows 10: Open Settings, select System, then Storage. Choose Temporary files, select DirectX Shader Cache, and remove the selected files. Depending on your Windows version, the labels or location may differ.
Review the selections before removing anything. Temporary-files screens can include other categories, such as Downloads or Recycle Bin. Leave any category you do not intend to clear unchecked. You can also search Windows for Disk Cleanup, select your system drive, and look for the DirectX Shader Cache option if it is available.
Clear the NVIDIA Shader Cache Using NVIDIA Settings
NVIDIA Control Panel includes a setting called Shader Cache Size on many driver versions. It controls how much disk space the driver can use for shader cache data; it is not generally a button that clears existing cache files. To find it, right-click the desktop, open NVIDIA Control Panel, and go to Manage 3D settings. Look under the global settings for Shader Cache Size.
In most cases, leave the setting at its default or choose an appropriate size rather than disabling shader caching. Turning caching off can cause shaders to be compiled repeatedly, which may increase loading times or stuttering. If you change the setting while troubleshooting, note the original value and restore it if the change does not help. For a straightforward cache reset, deleting the relevant temporary files is usually the more direct method.
How to Clear the NVIDIA Cache on Linux
On Linux, NVIDIA OpenGL cache data is commonly stored in a folder such as ~/.nv/GLCache. The exact location and cache type can depend on your distribution, driver, desktop session, and graphics applications. Close games and 3D applications first, then use your file manager to show hidden folders and locate the relevant NVIDIA cache directory in your home folder.
Alternatively, in a terminal, you can inspect the folder before removing it. For example, the command ls -la ~/.nv/GLCache lists its contents. If you have confirmed that it is the cache directory you want to clear, you can remove it with rm -rf ~/.nv/GLCache. Use that command cautiously: a mistyped path with rm -rf can delete unrelated files. Do not run it with elevated privileges, and do not remove your NVIDIA driver installation or system directories.
After the cache is cleared, restart the affected application and allow it to recreate its data. If you are unsure which cache directory your Linux setup uses, consult your distribution or application documentation rather than deleting folders at random.
What You Should Not Delete
Only remove files you can identify as temporary cache data. Do not delete NVIDIA driver folders from Program Files, files in the Windows driver store, or folders inside System32. Those locations contain driver components that Windows needs to load and use your graphics card. Removing them manually can break the driver or cause display problems.
Clearing a shader cache is also different from performing a clean graphics-driver installation. If you suspect that the driver itself is damaged, use NVIDIA’s official installer or an appropriate Windows driver-update method. Do not try to fix a driver installation by manually deleting unfamiliar NVIDIA files.
What Happens After You Clear the Cache?
When you open a game or graphics app again, it may rebuild shader data in the background or during loading. You might notice a longer startup, a compiling-shaders screen, or brief stuttering the first time certain areas or effects appear. That temporary behavior is normal. As the cache is recreated, loading and playback may return to their usual performance.
Cache files can also grow again over time. That is expected: they are created to help your applications run efficiently. A folder reappearing after you delete it does not mean the cleanup failed.
When Clearing the Cache May Help
Consider clearing NVIDIA and DirectX shader cache data when you are troubleshooting persistent stuttering after a driver or game update, visual artifacts that occur in a particular game, or an application that behaves unusually after a major graphics change. It can also be a reasonable step when a support guide specifically recommends resetting shader data.
If the same issue continues, try other targeted checks. Update or roll back the graphics driver if the problem began immediately after a driver change, verify the game’s files through its launcher, install relevant game updates, and check GPU temperatures and power settings. Test one change at a time so you can tell what helped. If multiple apps fail or Windows has display errors, investigate the driver or hardware rather than repeatedly clearing the cache.
Frequently Asked Questions
Will clearing the NVIDIA cache delete my games or personal files? No, deleting files from the identified shader-cache folders should not remove games, saved games, or documents. Still, check the folder path before deleting anything and avoid selecting other temporary-file categories by mistake.
Is it safe to clear the NVIDIA shader cache? In general, yes. Cache data is temporary and can be recreated. The main risk is deleting the wrong files, which is why you should stick to known cache folders and avoid NVIDIA driver installation directories.
How often should I clear the cache? There is no need to clear it regularly. Do so when troubleshooting a relevant issue or when a trusted support instruction recommends it. Routine deletion can lead to extra shader compilation and longer loads without providing a benefit.
Does clearing the cache improve FPS? Not usually as a general performance upgrade. It may help if corrupted or outdated cache data is contributing to a specific problem, but it can temporarily make performance feel worse while shaders are rebuilt. It will not increase a GPU’s normal capabilities.
Conclusion
To clear the NVIDIA driver cache on Windows, close graphics apps, open %LOCALAPPDATA%\NVIDIA, and remove the contents of identifiable cache folders such as DXCache, GLCache, or ComputeCache. You can also remove the Windows DirectX Shader Cache through Storage settings or Disk Cleanup. On Linux, the NVIDIA OpenGL cache is often found at ~/.nv/GLCache, but confirm the location before deleting anything.
Cache clearing is a safe, targeted troubleshooting step when handled carefully, but it is not a guaranteed fix or routine maintenance requirement. Expect applications to rebuild their shader data, and never delete unfamiliar driver or Windows system files. If the issue remains after the cache is recreated, investigate the game, driver, system settings, or hardware next.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.