Nvidia's Default Shader Cache stores compiled graphics code on your hard drive
Shader cache is a folder on your computer where Nvidia graphics cards save compiled versions of graphics instructions. When a game or program runs, it sends shader code (instructions for how to draw pixels) to your GPU. The first time your card sees a particular shader, it compiles that code into machine language your GPU understands. Nvidia's driver saves this compiled version so the next time the same shader runs, your card can use the pre-compiled version instead of compiling it again.
The default location for this cache is C:\ProgramData\Nvidia\NvCache on Windows systems. The folder grows over time as you play different games and run different programs, because each game typically uses hundreds or thousands of unique shaders. Without the cache, your GPU would recompile the same shaders every time you launched a game or restarted your computer, which would cause stuttering and frame rate drops during the first few minutes of play.
This is a normal part of how modern graphics work. AMD and Intel graphics cards maintain similar caches. The cache is created automatically by the Nvidia driver and you do not need to do anything to enable it.
Key Takeaways
- Shader cache stores pre-compiled graphics code so your GPU does not have to recompile the same instructions every time you play a game.
- The default cache location is C:\ProgramData\Nvidia\NvCache on Windows, and it grows larger as you play more games.
- Without shader cache, you would experience stuttering and frame rate drops during the first few minutes of launching a game.
- You can clear the cache manually if you suspect corrupted data is causing graphics problems, and the driver will rebuild it automatically.
Why shader cache causes stuttering on first launch
When you start a game for the first time after installing it, your GPU has never seen that game's shaders before. The driver must compile every shader the game uses, which is computationally expensive. During this compilation phase, your GPU is busy converting shader code instead of rendering frames, so your frame rate drops and the game stutters.
This process can take anywhere from a few seconds to several minutes depending on how many unique shaders the game uses and how powerful your GPU is. Once compilation finishes, subsequent launches of the same game run smoothly because the compiled versions are already in the cache. This is why you might notice a game runs poorly the first time you play it but runs much better the second time.
Newer Nvidia drivers have improved this by using shader pre-caching, where game developers can include pre-compiled shaders with the game itself. This reduces the amount of compilation your GPU has to do on first launch. However, most games still require some on-the-fly compilation.
How to clear shader cache if you are experiencing graphics problems
If you suspect corrupted shader cache is causing graphics glitches, crashes, or unusual performance problems, you can delete the cache folder manually. On Windows, navigate to C:\ProgramData\Nvidia\NvCache and delete the entire folder. The Nvidia driver will automatically recreate it the next time you launch a game.
Clearing the cache will not harm your system or your games. The only consequence is that your GPU will need to recompile shaders the next time you play, which means you will experience stuttering during the first few minutes of gameplay. After that, performance returns to normal.
You should only clear the cache if you are actually experiencing problems. There is no performance benefit to clearing it if your games are running normally, and you will only create extra work for your GPU on the next launch.
Shader cache size and storage space
The shader cache folder typically grows to between 500 MB and 2 GB depending on how many games you own and how actively you play them. Games with complex graphics like Cyberpunk 2077 or Star Citizen generate larger caches than simpler games. If you play dozens of games regularly, your cache might reach 3 GB or more.
For most people, this is not a storage concern on modern hard drives or SSDs. However, if you are running low on disk space, clearing the cache is a safe way to free up a few gigabytes. The cache will rebuild itself over time as you play games.
You can also limit cache size through Nvidia Control Panel if you want to prevent it from growing beyond a certain point, though this is rarely necessary.
Shader cache versus driver cache
Nvidia maintains two separate caches: the shader cache and the driver cache. The shader cache stores compiled graphics code, while the driver cache stores other driver-related data. Both are located in the NvCache folder, but they serve different purposes.
When you clear the NvCache folder, you are clearing both caches at once. This is fine — both will rebuild automatically. You cannot selectively clear just the shader cache without also clearing the driver cache through the folder deletion method, though Nvidia Control Panel offers more granular options if you need them.
Disabling shader cache in Nvidia Control Panel
You can disable shader caching entirely through Nvidia Control Panel if you want, though this is not recommended for gaming. To do this, open Nvidia Control Panel, go to Manage 3D Settings, find the Shader Cache Size option, and set it to Off.
Disabling the cache means your GPU will recompile shaders every single time you launch a game, which will cause constant stuttering and poor performance. The only reason to disable it is if you are troubleshooting a specific driver issue and Nvidia support has instructed you to do so. For normal gaming, leave it enabled.
If you want to limit cache size instead of disabling it entirely, you can set Shader Cache Size to Limited and choose a maximum size. This prevents the cache from growing indefinitely while still providing the performance benefits of caching.
Frequently Asked Questions
Is shader cache safe to delete?
Yes, deleting the shader cache is completely safe. Your games will not be affected, and the cache will rebuild automatically the next time you play. The only downside is that your GPU will need to recompile shaders on the next launch, which causes temporary stuttering.
Why is my shader cache so large?
Shader cache grows larger as you play more games and as games receive updates. Complex modern games generate larger caches than older or simpler games. A cache of 1-2 GB is normal if you play many games regularly. You can clear it anytime to free up space.
Does shader cache slow down my computer?
No, shader cache does not slow down your computer when it is not in use. It only affects performance during the compilation phase when you first launch a game. Once compilation is done, the cache actually improves performance by avoiding recompilation.
Can I move shader cache to a different drive?
You cannot easily move the default shader cache location without using third-party tools or modifying driver settings. For most users, there is no reason to move it. If you are concerned about storage space, clearing the cache periodically is simpler than relocating it.
What happens if I disable shader cache?
Disabling shader cache means your GPU will recompile shaders every time you launch a game, causing stuttering and poor performance during the first few minutes of gameplay. It is not recommended unless you are troubleshooting a specific driver problem.