If a game is stuttering, displaying unusual graphics, or behaving oddly after a driver update, clearing the shader cache may help. A shader cache stores compiled graphics instructions so your computer does not have to rebuild them each time a game or application runs. Removing it is usually safe: the cache can be recreated automatically, although games may take longer to load or stutter briefly while shaders are rebuilt.
The exact steps depend on your graphics card and operating system. This guide explains how to clear shader cache in Windows, NVIDIA, AMD, Intel, and Linux, and what to expect afterward. Before deleting files, close your games and graphics applications, and avoid removing folders unless you know they contain shader cache data.
What Is a Shader Cache?
A shader is a small program that tells your graphics processor how to render parts of an image, such as lighting, shadows, and visual effects. Games and creative applications may compile shaders for your specific graphics hardware and save the results in a cache. The next time you use the same content, the program can load the compiled version instead of compiling it again.
There may be more than one shader cache on a computer. Windows can maintain a DirectX shader cache, while your graphics driver or a particular game may keep its own files. That is why clearing one cache might not remove every shader file, and why the best method can vary by device.
What Happens When You Clear the Shader Cache?
Clearing shader cache files does not normally uninstall your graphics driver, remove a game, or delete saved games. It removes temporary compiled data. The driver or application generally rebuilds that data when you launch a game or open a scene again.
You may notice a longer first launch, loading delays, or temporary stuttering while the shaders compile again. Performance often settles after you revisit areas or effects that need those shaders. Clearing the cache repeatedly is not a routine performance fix: it can make loading slower until the cache is rebuilt.
Consider clearing it when you are troubleshooting graphics glitches, persistent shader-related crashes, or problems that began after a driver or game update. If the issue continues, investigate other causes, such as outdated drivers, damaged game files, overheating, or incompatible settings.
How to Clear Shader Cache in Windows
Windows includes a way to remove its DirectX shader cache through Temporary files. This is a good first option because Windows identifies the cache category for you, rather than requiring you to locate folders manually.
- Open Settings from the Start menu.
- Select System, then Storage.
- Choose Temporary files. Windows may take a moment to calculate the available categories.
- Select DirectX Shader Cache. Check the label carefully before continuing.
- Choose Remove files and allow the process to finish.
The wording and layout can differ slightly between Windows versions. If you do not see the DirectX Shader Cache option, use Windows search to open Disk Cleanup, select your system drive, and check DirectX Shader Cache in the list of files to delete. Confirm the selection, then start the cleanup.
Windows may recreate the cache automatically. Restarting your computer after cleanup is not always necessary, but it can help ensure that open applications have closed and that the system starts fresh. Launch your game afterward and allow extra time for its first load.
How to Clear the NVIDIA Shader Cache
NVIDIA graphics cards can use driver-managed shader caches, and Windows may also have a DirectX cache. Start with the Windows method above. For NVIDIA-specific troubleshooting, close all games and graphics applications before clearing driver cache files.
On many Windows systems, NVIDIA cache folders are found under your user profile, such as %LOCALAPPDATA%\NVIDIA\DXCache or %LOCALAPPDATA%\NVIDIA\GLCache. You can paste a path into the File Explorer address bar to check whether it exists. Folder names can vary by driver version and system configuration.
- Exit games, launchers, and applications that use the GPU.
- Press Windows key + R, enter
%LOCALAPPDATA%\NVIDIA, and press Enter. - If present, open the relevant cache folder, such as
DXCacheorGLCache. - Delete the contents of the cache folder, not the NVIDIA folder itself. Skip any file Windows says is in use.
- Restart the computer, then open a game and give it time to rebuild shaders.
Do not assume every NVIDIA computer has the same folder structure. If these folders are absent, do not create them or search the drive for random NVIDIA files to delete. Use Windows Storage or Disk Cleanup instead. NVIDIA Control Panel settings may let you adjust the shader cache size, but that is different from clearing the current cache.
How to Reset the AMD Shader Cache
AMD Software: Adrenalin Edition offers a built-in option to reset its shader cache on supported driver versions. This is usually the simplest way to clear AMD’s driver-managed cache without manually browsing system folders.
- Open AMD Software: Adrenalin Edition.
- Select the Gaming tab and open Graphics or the graphics settings page.
- Look for Advanced settings and find Reset Shader Cache.
- Select the reset option and confirm if prompted.
- Close and reopen the game you are troubleshooting.
AMD changes its software layout over time, so the setting may appear in a different place or may not be available in every version. If you cannot find it, update or check the help information for your installed Adrenalin version. You can also clear the Windows DirectX Shader Cache using the Windows steps above.
After a reset, the first run of a game can take longer while the driver rebuilds shader data. Avoid resetting the cache again just because that initial load is slower than usual.
How to Clear or Refresh an Intel Shader Cache
Intel integrated graphics and Intel Arc graphics can use shader data maintained by Windows, the graphics driver, or individual applications. For most users, clearing the Windows DirectX Shader Cache is the safest starting point. Use Settings > System > Storage > Temporary files, or Disk Cleanup, and select only the DirectX cache entry.
Intel graphics software and driver interfaces can differ depending on the product and version. If your Intel graphics utility has a specific cache-reset option, follow the instructions provided for that version. Otherwise, do not delete unfamiliar Intel folders or driver files manually. Check for a current graphics driver from Intel or your computer manufacturer if the problem started after an update.
How to Clear Shader Cache on Linux
On Linux, Mesa-based graphics drivers commonly store shader cache data in a hidden cache directory in your home folder. The exact location depends on your driver and configuration. A common Mesa cache location is ~/.cache/mesa_shader_cache; some systems may use another Mesa cache directory.
Close games and graphics applications before removing cache data. If you are comfortable using a terminal, you can inspect the directory first, then remove only the relevant Mesa shader cache folder. For example, you might use your file manager to show hidden files and navigate to .cache. Avoid deleting the entire ~/.cache directory, because it can contain useful temporary data for many applications.
Steam’s shader pre-caching is a separate feature. You can manage it in Steam’s settings, but turning it off does not necessarily clear the Mesa or graphics-driver cache. If a game is the only source of a problem, use that game’s own troubleshooting guidance before changing system-wide cache files.
Should You Clear Shader Cache for a Specific Game?
Some games maintain their own shader data or provide an option to rebuild it. These files may be stored in the game’s configuration or user-data folders, and their locations differ by title. Do not delete a game’s entire settings folder unless the developer’s instructions specifically recommend it. Doing so could reset graphics settings, key bindings, or other preferences.
For a single-game issue, first restart the game and computer, install available game updates, and use the launcher’s verify or repair files feature. Check the game’s support page for a recommended shader-cache reset procedure. If you remove a game-specific cache, leave saved-game and configuration folders untouched unless you have a backup and understand what they contain.
Common Mistakes to Avoid
- Deleting random driver folders: Remove only a clearly identified shader cache, or use the operating system or driver’s built-in reset option.
- Expecting an instant FPS boost: A clean cache is mainly a troubleshooting step. It may temporarily make loading and stuttering worse.
- Clearing the cache while a game is open: The game or driver may be using the files. Close applications first.
- Confusing shader cache with saved games: They are different types of data. Still, read folder names carefully and back up important files before manual cleanup.
- Repeating the cleanup too often: The cache exists to avoid compiling shaders from scratch every time.
What to Do If the Problem Remains
If clearing shader cache does not fix the issue, update your graphics driver using the appropriate official source, then restart your computer. If the problem began immediately after a driver update, check whether a stable earlier driver is available. For a game-specific crash, verify its files through the launcher and check for patches or known issues.
Also consider whether the problem occurs in one game or across several applications. A single-game issue points toward that game’s files or settings; problems across multiple programs may involve the driver, Windows, or hardware. If you continue to see visual artifacts, crashes, or severe performance drops, stop changing cache folders and investigate temperatures, system stability, and hardware health.
Conclusion
To clear shader cache, use the method that matches your system: Windows Storage or Disk Cleanup for the DirectX cache, AMD Software for an AMD cache reset, or the appropriate vendor and Linux tools for other driver caches. Close GPU applications first, remove only identified cache data, and expect shaders to rebuild the next time you play. Clearing the cache can help with certain graphics problems, but it is not a guaranteed performance boost—and the cache is usually best left alone when everything is working normally.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.