KemptDesk

Is it safe to delete the DirectX, NVIDIA and AMD shader cache?

For PCWindows 10 and Windows 11 with DirectX 12; NVIDIA and AMD graphics driversReviewed 23 November 20267 min read

Quick answer

It is safe to delete the DirectX Shader Cache (D3DSCache) and the NVIDIA and AMD shader caches. They hold shaders that the graphics driver compiled for your games, and games compile them again. Expect slower loads or short stutters the first time you play. Clear the DirectX cache with Disk Cleanup (cleanmgr) after you close your games.

On this page
  1. What a shader cache is
  2. Where the shader caches are
  3. Which shader caches are safe to delete
  4. Should you delete it?
  5. How to clear the DirectX Shader Cache
  6. How to clear the NVIDIA and AMD caches
  7. How to change the NVIDIA shader cache size
  8. How KemptDesk handles this
  9. Questions
  10. Sources

Shader caches are one item in what fills a Windows C: drive. They grow with every game you play, so they can become large on a gaming PC with many games installed.

What a shader cache is

A shader is a small program that runs on the graphics card. A game ships its shaders in a general form, and the graphics driver must compile them for your exact card and driver. Microsoft's DirectX documentation calls this compile step expensive, because it can only happen on your PC at run time.

To avoid that work at every launch, Windows and the graphics drivers save the compiled shaders on disk. The next launch reads them from the cache, so the game loads faster and stutters less.

Microsoft describes D3DSCache as the DirectX Shader Cache component of Windows. Its caches are tied to the program that made them, versioned, and "integrated with disk cleanup". The NVIDIA and AMD drivers keep their own caches next to it.

Where the shader caches are

Microsoft and the graphics card makers do not publish one list of these folders. These are the folders where the caches are usually found, and the ones KemptDesk checks:

  • %LOCALAPPDATA%\D3DSCache: the DirectX Shader Cache of Windows.
  • %LOCALAPPDATA%\NVIDIA\DXCache: the NVIDIA driver's cache for DirectX games.
  • %LOCALAPPDATA%\NVIDIA\GLCache: the NVIDIA driver's cache for OpenGL games.
  • %LOCALAPPDATA%\AMD\DxCache, %LOCALAPPDATA%\AMD\DxcCache and %LOCALAPPDATA%\AMD\GLCache: the AMD driver's caches.

%LOCALAPPDATA% is C:\Users\<name>\AppData\Local. To open a folder, press Windows logo key + R, type the path, and select OK. If Windows says it cannot find the folder, that cache is not on your PC.

Game launchers can keep shader caches of their own. Steam, for example, has a Shader Pre-Caching feature. Manage those caches in the launcher's settings, not in its game library folders.

Which shader caches are safe to delete

PathWhat it isSafe to deleteWhat happens if you delete itHow to clean it
%LOCALAPPDATA%\D3DSCacheDirectX Shader CacheYesGames compile shaders again; first launches load slowerDisk Cleanup > DirectX Shader Cache
%LOCALAPPDATA%\NVIDIA\DXCacheNVIDIA cache for DirectX gamesYesFirst launches can stutter while the cache refillsClose games, then delete the files in it
%LOCALAPPDATA%\NVIDIA\GLCacheNVIDIA cache for OpenGL gamesYesSame as DXCacheClose games, then delete the files in it
%LOCALAPPDATA%\AMD\DxCacheAMD cache for DirectX gamesYesFirst launches can stutter while the cache refillsClose games, then delete the files in it
%LOCALAPPDATA%\AMD\DxcCacheAMD shader cacheYesSame as DxCacheClose games, then delete the files in it
%LOCALAPPDATA%\AMD\GLCacheAMD cache for OpenGL gamesYesSame as DxCacheClose games, then delete the files in it
%LOCALAPPDATA%\NVIDIANVIDIA caches and other driver dataCarefulData other than the caches can be lostDelete only inside DXCache and GLCache

Delete the files inside a cache folder, not the AppData or NVIDIA folder around it. The AppData and Temp guide explains why AppData as a whole must stay.

Should you delete it?

Clearing a shader cache gives space back for a while. Games then fill the cache again as you play, so it is not a lasting fix for a full drive.

  • Clear it if a game has graphics problems and its support page tells you to clear the cache, or if you need the space now.
  • Keep it if your games run well. A full cache is the reason they load without stutter.

Some game publishers' support pages give steps to clear the NVIDIA and DirectX caches as a troubleshooting step. Microsoft's design also lets a cache be versioned by the graphics driver, so after a driver update games build new cache entries.

How to clear the DirectX Shader Cache

Use the tools built into Windows first. Microsoft's documentation says the DirectX caches in temporary storage "can be cleared by disk cleanup".

  1. Close all games and game launchers.
  2. In the search box on the taskbar, type Disk Cleanup and select it. You can also press Windows logo key + R and run this command:
cmd
cleanmgr /d C:
  1. If Windows asks for a drive, choose C: and select OK.
  2. In the list, select DirectX Shader Cache. Clear the items you want to keep, such as Recycle Bin.
  3. Select OK, then Delete Files.

In Settings, select Start > Settings > System > Storage > Temporary files. Select DirectX Shader Cache, clear the other items you want to keep, and select Remove files.

How to clear the NVIDIA and AMD caches

  1. Close all games, game launchers and graphics tools.
  2. Press Windows logo key + R, type %LOCALAPPDATA%\NVIDIA\DXCache and select OK.
  3. Press Ctrl + A to select everything, then press Delete.
  4. If Windows says a file is in use, select Skip. A running program still uses it.
  5. Repeat for %LOCALAPPDATA%\NVIDIA\GLCache, or for the folders in %LOCALAPPDATA%\AMD on a PC with an AMD card.
  6. Empty the Recycle Bin. Deleted files use space until you do.

AMD's driver app is AMD Software: Adrenalin Edition. If it offers an option to reset the shader cache, you can use that option instead of the steps above.

How to change the NVIDIA shader cache size

NVIDIA's driver settings include a shader cache that is on by default, and a maximum size for the cache on disk. You can change the limit in NVIDIA Control Panel.

  1. Open NVIDIA Control Panel from the Start menu.
  2. Select Manage 3D settings, then the Global Settings tab.
  3. Find Shader Cache Size and pick a smaller or larger limit, or Driver Default.
  4. Select Apply.

A smaller limit keeps the cache small, but the driver must compile more shaders again. Do not turn the cache off: without it, the driver compiles shaders at every launch.

How KemptDesk handles this

KemptDesk cleans these folders in the System Junk category GPU shader caches: D3DSCache, NVIDIA DXCache and GLCache, and AMD DxCache, DxcCache and GLCache in %LOCALAPPDATA%. They are Safe to clean, but the category is not selected for you, so Smart Care's "Clean recommended" leaves it out until you tick it. Files are deleted directly, not moved to the Recycle Bin, and files in use are skipped. The Browser caches category also clears the shader caches of Chromium browsers. System Junk removes only files inside the cache folders. Hidden space shows %LOCALAPPDATA%\NVIDIA as Check first and never selects it. KemptDesk does not clean game launchers' shader caches or change driver settings.

Questions

Is it safe to delete the DirectX Shader Cache?

Yes. It holds compiled shaders that games can create again. The only cost is slower loads or short stutters the next time you play.

Why do my games stutter after I cleared the shader cache?

The driver must compile each shader again the first time a game needs it. The stutter goes away as the cache fills.

Why does the DirectX Shader Cache come back after Disk Cleanup?

Every game you play adds compiled shaders to the cache again. That is normal, and it is why clearing the cache is not a lasting fix for a full drive.

Should I set the NVIDIA Shader Cache Size to Disabled?

No. Without a cache, the driver compiles shaders at every launch, so games load slower and stutter more. Pick a smaller limit if you need the space.

Should I clear the shader cache after a driver update?

You do not have to. Caches can be versioned by the driver, so games build new entries after an update. Clear the old cache if you want the space back.

Sources

See what is safe to delete on your computer

KemptDesk scans your disk, explains every folder and selects only what apps can rebuild. The scan is free and cleans up to 500 MB. No account.

Then pay once from $59 or yearly from $9.99 for the first year until 31 December 2026, then $24.99. One license covers Macs and PCs. See plans