Your Search Bar For Shrewd Tips

How Do I Clear Dx12 Cache?


If a DirectX 12 game is stuttering, crashing, or behaving strangely after a graphics driver update, clearing its shader cache may help. The cache stores graphics data that Windows and your GPU can reuse, so games do not have to build it from scratch every time. If those files become outdated or corrupted, removing them can give the game a clean start.

In most cases, the safest way to clear the DirectX 12 cache is through Windows Storage settings or Disk Cleanup. You can also clear certain graphics-driver or game-specific caches when troubleshooting requires it. The files are temporary: Windows, your graphics driver, or the game will usually create new ones automatically. Expect a game to stutter briefly while shaders are rebuilt the next time you play.

What Is the DirectX 12 Shader Cache?

DirectX 12 is a graphics technology used by Windows games and applications. To render complex scenes efficiently, a game needs shaders: small programs that tell the graphics hardware how to process visual effects, lighting, textures, and other elements. Compiling shaders takes time, so Windows, the game, or the graphics driver may save compiled shader data in a cache.

On a later launch, the game can reuse cached data instead of compiling the same shaders again. This can reduce loading delays and help prevent repeated pauses during gameplay. A shader cache is not the same as the DirectX runtime itself, and clearing it does not uninstall DirectX, remove a game, or erase your save files.

There may be more than one cache involved. Windows can maintain a DirectX Shader Cache, while NVIDIA, AMD, or Intel graphics software and individual games may keep their own shader data. Clearing the Windows cache is a good first step because it is straightforward and does not require you to identify every folder used by a particular game.

How to Clear the DirectX 12 Cache in Windows 11

Windows 11 includes a Temporary files page that lets you remove the DirectX Shader Cache without searching for folders manually. The names and layout of some options can vary slightly between Windows updates, but the general process is the same.

  • Save your work and close games and graphics-intensive applications.
  • Open Start, select Settings, and go to System > Storage.
  • Select Temporary files. Windows may take a moment to calculate the available categories.
  • Find and select DirectX Shader Cache.
  • Check the other categories carefully. Leave anything you do not intend to remove unchecked.
  • Select Remove files and confirm if Windows asks you to.

Do not select categories such as Downloads or Recycle Bin unless you have checked their contents and want to delete them. The DirectX Shader Cache option is the one relevant to this task. When Windows finishes, restart your PC if you are troubleshooting a graphics issue, then launch the affected game again.

How to Clear the DirectX 12 Cache in Windows 10

Windows 10 users can usually clear the cache from Storage settings or with Disk Cleanup. If you do not see the cache category in Settings, use Disk Cleanup instead.

  • Open Start and select Settings.
  • Go to System > Storage, then select Temporary files.
  • Wait for Windows to scan the files and look for DirectX Shader Cache.
  • Select that option and choose Remove files.

To use Disk Cleanup, open the Start menu, search for Disk Cleanup, and launch the tool. Choose your Windows drive, usually C:, if prompted. Select DirectX Shader Cache in the list, make sure you have not selected other categories by mistake, and click OK or Clean up system files if that option is needed to display the category. Confirm the deletion.

The exact labels can differ depending on your Windows version. If you cannot find DirectX Shader Cache in either utility, the cache may already be empty, or Windows may not currently have files in that category to remove.

How to Clear a GPU Driver Shader Cache

A graphics driver may keep its own cache in addition to the Windows DirectX Shader Cache. Clearing the Windows cache is not always the same as clearing a vendor-specific cache. If the issue began after a driver update or affects several games, check your graphics software for a built-in reset option before deleting folders manually.

AMD: Some versions of AMD Software: Adrenalin Edition include a Reset Shader Cache option in the graphics settings. Open AMD Software and look under the graphics or advanced graphics options. The location and wording can change between releases. If the option is available, use it, then restart Windows and test the game again.

NVIDIA: NVIDIA’s settings and driver versions do not all provide the same direct cache-reset control. Start by clearing the Windows DirectX Shader Cache. If you need to remove NVIDIA’s local cache files as an additional troubleshooting step, close games and NVIDIA applications first. Cache folders are commonly found under your Windows user profile in locations such as %LOCALAPPDATA%\NVIDIA\DXCache, but folder names and availability can vary by driver version.

Intel: Intel graphics drivers may also create local shader data, and the available controls depend on the driver and graphics software version. Try Windows’ DirectX Shader Cache cleanup first. Use Intel’s official support information for your specific driver if you need to locate an additional cache.

Do not confuse shader-cache folders with graphics driver installation files or folders containing application settings. If you are uncertain about a folder, do not delete it. A built-in reset option or Windows cleanup utility is preferable to removing files manually.

How to Clear a Game-Specific Shader Cache

Some games manage shader caches themselves. A game might rebuild its cache after a graphics update, offer a repair option in its settings, or store temporary data in its own user folder. The location and recommended cleanup method differ from one game to another, so there is no single folder that is safe to delete for every DirectX 12 title.

Before removing game-specific files, check the game’s official support page or community instructions from its developer. Close the game and its launcher first. Avoid deleting entire folders under Documents, Saved Games, or AppData unless the game’s instructions specifically identify the files as disposable cache data. Those folders can also contain configuration files, screenshots, profiles, or saved progress.

If you use a launcher with a repair or verify feature, it can be useful for checking damaged game files. However, verifying a game’s installation does not necessarily clear its shader cache. Follow the game developer’s steps if the problem continues after a Windows cache cleanup.

Can You Delete the Cache Manually?

Manual deletion is possible, but it is easier to remove the wrong files or choose a folder that is currently in use. Use Windows Storage settings or Disk Cleanup first. If you have a specific reason to clear a driver cache manually, close all games, launchers, and graphics utilities, then identify the exact cache folder for your driver version before proceeding.

Some common cache locations may be inside your user profile under AppData\Local, such as D3DSCache or a graphics-vendor folder. These names are not a universal map of every DX12 cache, and not every PC will have the same folders. If a file cannot be removed because it is in use, restart Windows and try again rather than forcing the deletion.

Do not delete folders from Windows\System32, remove the DirectX runtime, or use an unfamiliar “PC cleaner” tool to hunt for shader files. Those steps are unnecessary for clearing the cache and can cause avoidable problems.

What Happens After You Clear the DX12 Cache?

Clearing the cache is generally safe, but the next launch may not feel as smooth as usual. The game or driver may need to compile shaders again. You might notice longer loading times, brief stutters, or pauses the first time new areas and effects appear. This is usually temporary; as the cache is rebuilt, performance should settle down.

Clearing the cache does not normally delete game saves, reset your Windows installation, or permanently lower frame rates. It also does not guarantee a fix. If the underlying cause is a driver bug, a damaged game file, overheating, insufficient system memory, or a game-specific problem, the same symptoms may return.

When Should You Clear the DirectX 12 Cache?

There is no need to clear the shader cache regularly as routine maintenance. A cache is useful because it avoids repeating work. Consider clearing it when a game starts stuttering or displaying graphics errors after a driver or game update, when shader compilation appears stuck, or when official troubleshooting instructions recommend it.

If a game works normally, leave the cache alone. Removing it just to free a small amount of disk space can lead to extra shader compilation and temporary stuttering. Windows’ Temporary files page shows the cache size when it has data to remove, so you can decide whether the space savings are worthwhile.

Troubleshooting If Clearing the Cache Does Not Help

If the problem remains, try these practical checks rather than repeatedly clearing the same cache:

  • Restart the PC and test the game again after shaders have had time to rebuild.
  • Install a stable graphics driver from the NVIDIA, AMD, or Intel website, or roll back if the issue began immediately after a driver update.
  • Use the game launcher’s repair or verify feature to check for missing or damaged installation files.
  • Check the game developer’s support page for known DirectX 12 issues, patches, and game-specific cache instructions.
  • Make sure Windows and the game are fully updated, then test whether the issue affects one game or several.
  • Monitor temperatures and system resource use if performance problems occur during extended play.

For a game that offers both DirectX 12 and another graphics API, testing the alternative can help determine whether the issue is specific to its DX12 renderer. Change that setting only if the game supports it, and restart the game after making the change.

Conclusion

To clear the DirectX 12 cache, open Settings > System > Storage > Temporary files in Windows 11 or Windows 10, select DirectX Shader Cache, and remove it. Disk Cleanup is another option, particularly on Windows 10. For persistent problems, consider a graphics-driver or game-specific cache only after checking the instructions for your exact software and hardware.

After clearing the cache, give the game time to rebuild its shaders. A little extra loading or temporary stuttering is normal on the first run. If the original issue continues, investigate the driver, game files, or game-specific support guidance instead of repeatedly deleting cache data.


Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.

Shrewdnia

Shrewdnia

Shrewdnia is a destination for curious minds seeking clarity, knowledge, and informed perspectives. Through insightful articles and practical guides our passionate team explores a wide range of topics designed to help readers understand the world around them, make smarter decisions, and stay informed in an ever-changing landscape.


💡 Every question sparks discovery, and every perspective enriches the conversation. Share your thoughts and insights in the comments 👇

Back to blog

Leave a comment

JOIN THE SHREWDNIA COMMUNITY FORUM

What do you think?

Have an opinion, experience, or question about this topic? Join the Shrewdnia Forum and share your thoughts with other readers.

Join the Forum →