If a game is stuttering, crashing, or showing visual glitches, clearing the NVIDIA GPU cache may help. The phrase “GPU cache” usually refers to shader cache files: data a graphics driver saves so games and applications can load shaders more quickly. These files can occasionally become outdated or corrupted, but removing them is generally safe because Windows and the NVIDIA driver can recreate them. This guide explains how to clear the NVIDIA shader cache in Windows, how to adjust its settings, and what to know about CUDA and Linux caches.
What Is the NVIDIA GPU Cache?
The NVIDIA GPU cache is not the same thing as graphics memory, or VRAM. A shader cache stores compiled shader data that games and graphics programs may reuse. Shaders handle visual effects such as lighting, shadows, reflections, and materials. Saving compiled versions can reduce loading times and help prevent repeated shader compilation while you play.
There are several kinds of cache that people may mean when they ask how to clear a GPU cache. The most common is the DirectX or OpenGL shader cache created by the NVIDIA driver. Windows can also maintain a DirectX Shader Cache. Some applications, including games and video-editing software, keep their own caches. CUDA applications may store compiled compute kernels separately.
Clearing one cache does not necessarily remove data held by another application. It also does not erase your NVIDIA driver, uninstall games, or permanently damage your GPU. The main trade-off is that games may take longer to load, or stutter briefly, while they rebuild shader data.
Before You Clear the NVIDIA Cache
Save your work and close games, graphics applications, and other programs that use the GPU. If a program is actively writing cache files, Windows may prevent some files from being deleted. Restarting the computer first can make the process easier, especially if you are troubleshooting a crash or driver issue.
Cache folders and menus can vary by Windows version, NVIDIA driver, and installed applications. You may not see every folder listed below. Delete only clearly identified cache contents; do not remove the entire NVIDIA folder or files from the driver installation directory. If Windows says a file is in use, skip it rather than forcing deletion.
Method 1: Clear the DirectX Shader Cache in Windows
Windows includes a built-in option for removing its DirectX Shader Cache. This is often the simplest first step when you want to clear GPU shader data without browsing through folders.
- Open Settings from the Start menu.
- Select System, then Storage.
- Choose Temporary files and wait for Windows to scan.
- Check DirectX Shader Cache.
- Select Remove files and confirm.
The exact labels may differ slightly between Windows 10 and Windows 11. Make sure you select DirectX Shader Cache specifically. Other temporary-file categories may include downloads, recycle-bin contents, or previous Windows installations, so review the choices before deleting anything.
You can also use Disk Cleanup on versions of Windows where it is available. Search for Disk Cleanup, select the Windows drive, and choose DirectX Shader Cache in the list of files to delete. If prompted, select the system drive, which is usually C:.
Method 2: Delete NVIDIA Shader Cache Files Manually
If the Windows cleanup option does not resolve the issue, you can remove NVIDIA shader cache files directly. Common cache folders are inside your Windows user profile. To open one, press Windows key + R, enter the path, and press Enter. Replace the example text with your Windows user name if you type a full path.
-
%LOCALAPPDATA%\NVIDIA\DXCache— commonly used for DirectX shader data. -
%LOCALAPPDATA%\NVIDIA\GLCache— commonly used for OpenGL-related cache data. -
%LOCALAPPDATA%\NVIDIA Corporation\NV_Cache— a cache folder that may exist on some driver installations.
Open a folder and delete its contents, not the folder itself. If a listed location does not exist, move on; NVIDIA driver versions and system setups do not all use identical paths. You may need to enable hidden items in File Explorer to view the AppData folder, although entering the environment-variable path directly usually opens it without showing hidden folders.
Files may remain in the Recycle Bin until you empty it. That is usually fine for troubleshooting. If Windows reports that a file cannot be removed because it is open, restart your computer and try again. Do not use third-party “driver cleaner” tools just to clear shader cache unless you have a separate, well-understood reason to use them.
Method 3: Change Shader Cache Settings in NVIDIA Control Panel
NVIDIA Control Panel can let you manage the driver’s shader cache behavior. The available options depend on your driver version and hardware. To check them, right-click the desktop and open NVIDIA Control Panel, then go to Manage 3D settings. Look for Shader Cache Size under the Global Settings tab.
If the setting is available, you can choose a suitable size or use the driver’s default setting. Setting shader cache size to Off prevents the driver from saving this cache, but it is not usually recommended for everyday gaming. Turning caching off can cause shaders to be compiled more often, which may increase loading time or create extra stutter. To troubleshoot, you can temporarily turn it off, apply the setting, restart the computer, and then return it to the default or a preferred size.
Changing the cache-size setting is not the same as deleting existing cache files. If you want a clean cache, remove the cache contents using the Windows or manual method, then leave shader caching enabled so the driver can create fresh files.
How to Clear a CUDA Cache
If you use NVIDIA CUDA software for machine learning, rendering, scientific computing, or other GPU workloads, the relevant cache may be a CUDA compute cache rather than a game shader cache. On many Linux systems, CUDA applications store compiled kernels in ~/.nv/ComputeCache. On Windows, a CUDA cache may also be stored under your user profile, but its location can depend on the application, CUDA version, and environment variables.
Close the CUDA application before clearing its cache. On Linux, you can inspect the directory in a terminal and remove its contents if you are sure it is the compute cache you intend to reset. For example, a user might remove files from ~/.nv/ComputeCache. Avoid deleting unrelated files from ~/.nv, since other NVIDIA tools may use that directory.
Some CUDA programs define their own cache location or use application-specific settings. Check the software documentation if clearing the standard cache does not help. The application may simply rebuild the cache on its next run, which can make that first launch slower.
How to Clear NVIDIA GPU Cache on Linux
Linux users may have NVIDIA driver caches, application caches, or CUDA compute caches. The exact locations differ across distributions, driver releases, and desktop environments. A common CUDA compute-cache location is ~/.nv/ComputeCache. Some graphics applications keep shader caches in their own configuration or cache directories instead.
Close the affected application first. Use your file manager or terminal to locate the specific cache, and remove only its contents. If you are unsure which files belong to the NVIDIA driver, consult your distribution’s documentation or the application’s support instructions rather than deleting broad system directories. Avoid removing files from locations such as /usr/lib or your driver package directories; those are not ordinary user cache folders.
What Happens After You Clear the Cache?
After clearing the NVIDIA GPU cache, the driver and applications will recreate needed files as you use them. The first time you launch a game or load a scene, it may take longer than usual. You might also notice temporary stuttering while shaders are compiled. This should generally settle after the game has rebuilt its cache.
Clearing the cache is a troubleshooting step, not a routine maintenance requirement. Shader caches are designed to improve performance, and deleting them repeatedly can make games recompile the same shaders again and again. If the problem returns immediately, the underlying cause may be a game bug, outdated driver, damaged game files, overheating, unstable overclock, or another system issue.
When Should You Clear an NVIDIA Shader Cache?
Consider clearing the cache when you experience persistent shader-related problems, such as visual artifacts after a driver update, repeated shader compilation errors, or unusual stuttering that began after a game update. It can also be a reasonable step when following official troubleshooting instructions for a particular game or graphics application.
Try simpler checks first if the issue is not clearly cache-related. Restart the PC, confirm that Windows and your NVIDIA driver are current, and verify or repair the game’s files through its launcher. If you recently changed GPU overclock settings, restore stable defaults while troubleshooting. Do not assume every frame-rate drop is caused by a full cache: GPU temperature, CPU limits, background programs, and game settings can all affect performance.
Frequently Asked Questions
Is it safe to delete NVIDIA cache files? In general, yes, if you delete only the contents of identified shader or compute-cache folders. Windows and applications can rebuild the files. Do not delete driver installation files or entire NVIDIA system folders.
Will clearing the GPU cache improve FPS? It may resolve a problem caused by stale or corrupted shader data, but it does not normally provide a lasting FPS boost. A temporary slowdown can occur while shaders are rebuilt.
Does clearing the cache delete game saves? No. Shader cache files are separate from game saves and user settings. Still, check the folder and category carefully before deleting files, especially when using a general cleanup utility.
Should I clear the NVIDIA cache regularly? Usually not. Clear it when troubleshooting a specific issue or when an application’s support instructions recommend it. Keeping a working shader cache can reduce repeated compilation.
Conclusion
To clear an NVIDIA GPU cache, start with Windows Storage or Disk Cleanup and remove the DirectX Shader Cache. If necessary, close GPU applications and delete the contents of NVIDIA’s identified cache folders, such as DXCache or GLCache. CUDA and Linux users may need to clear a separate compute or application cache. Afterward, leave shader caching enabled for normal use and allow games or programs time to rebuild their files. If the issue continues, investigate driver, game, and hardware causes rather than repeatedly deleting the cache.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.