If a game is stuttering, behaving strangely after a graphics-driver update, or taking up more disk space than expected, clearing its shader cache may help. Shader caches store precompiled graphics data so a game does not have to compile the same shaders every time it runs. Steam and your graphics driver can both keep shader-related files, so the right place to clear them depends on your operating system and the problem you are trying to solve.
This guide explains how to clear the Steam shader cache on Windows, Linux, and Steam Deck, how to remove a Windows DirectX shader cache, and what to expect afterward. The steps focus on removing cache files safely—not uninstalling a game or deleting saved progress.
What Is the Steam Shader Cache?
A shader is a small program used by a game to render effects such as lighting, shadows, reflections, and materials. Compiling shaders can take time and may cause brief pauses or stuttering. Steam’s shader pre-caching feature can download or prepare shader data in advance for some games, particularly on Linux and Steam Deck. Games and graphics drivers may also create their own caches while you play.
There is not always one universal “clear shader cache” button in Steam. The most direct method is to close Steam and remove the cache folder for the affected game. Steam or the game can then create new cache data when needed. Clearing it is a troubleshooting step, not a routine maintenance task; if everything is working well, there is usually no reason to do it.
Before You Clear the Cache
First, identify the game that is having trouble. If only one title stutters or displays graphical glitches, remove only that game’s cache rather than deleting every Steam shader cache. Also note that a cache rebuild can temporarily make performance worse: the game may compile shaders again during launch or gameplay, causing longer load times or short-lived stutters.
- Exit the game and let any pending updates finish.
- Close Steam completely, including its system-tray or background process.
- Do not delete the game’s installation folder, save files, or the entire
steamappsfolder. - If you are unsure whether a folder is cache data, move it to a temporary backup location instead of permanently deleting it.
Find the Game’s Steam App ID
Steam names shader-cache folders with a game’s App ID, which is a number rather than the game’s title. You can find the App ID on the game’s Steam store URL, where it appears after /app/. For example, a URL like store.steampowered.com/app/123456/ has the App ID 123456.
You can also open the game’s Steam page, select its store page, and check the URL in your browser. Once you have the number, look for a folder with that name inside Steam’s steamapps/shadercache directory. If you cannot identify the right folder, avoid deleting individual folders at random.
How to Clear the Steam Shader Cache on Windows
On Windows, Steam’s shader cache is generally stored inside the Steam library that contains the game. The default Steam installation is commonly located at C:\Program Files (x86)\Steam, but you may have installed Steam elsewhere or placed the game in a separate library.
- In Steam, open Settings > Storage to review your library locations. The interface can vary slightly between Steam versions.
- Exit Steam using Steam > Exit. Check that Steam is no longer running in the system tray. If necessary, use Task Manager to confirm that Steam has closed.
- Open the library folder that contains the game, then open
steamappsandshadercache. - Find the folder matching the game’s App ID, such as
steamapps\shadercache\123456. - Delete that App ID folder, or move it somewhere temporary if you want a backup.
- Start Steam and launch the game. Steam or the game will rebuild required shader data as it runs.
If the game is installed in another Steam library, its cache may be in that library’s steamapps\shadercache folder. Check the library where the game is installed rather than assuming the cache is under the default Steam directory. Removing a folder from shadercache does not uninstall the game, but double-check the path before confirming deletion.
Clear the DirectX Shader Cache in Windows
Windows and graphics drivers can keep shader data separately from Steam. If the issue affects several games, or if clearing the Steam game folder does not help, you can also clear the Windows DirectX Shader Cache. Windows will recreate necessary files over time.
- Open Settings > System > Storage.
- Select Temporary files and allow Windows to scan.
- Look for DirectX Shader Cache, select it, and choose the option to remove the selected files.
Depending on your Windows version, you may also be able to use Disk Cleanup: search for Disk Cleanup, select the system drive, and check DirectX Shader Cache in the list. Do not select other temporary-file categories unless you understand what they remove. Windows may show shader cache files again later as applications rebuild them.
How to Clear the Steam Shader Cache on Linux
On a typical Linux installation, Steam’s shader-cache directory is commonly found at ~/.local/share/Steam/steamapps/shadercache. Some installations use the equivalent path ~/.steam/steam/steamapps/shadercache, which may link to the same Steam data. If your library is stored on another drive, check that library’s steamapps directory too.
- Exit the game and close Steam fully.
- Open your file manager and enable hidden files if needed, since paths beginning with a dot are hidden.
- Navigate to the relevant Steam library’s
steamapps/shadercachefolder. - Delete or move the folder named with the affected game’s App ID.
- Reopen Steam and run the game so it can rebuild the cache.
If you installed Steam as a Flatpak, its data is commonly stored under ~/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/shadercache. The exact location can differ if you have configured custom libraries. When using a terminal, verify the full path and App ID before running a removal command. A mistaken recursive delete can remove far more than cache files.
Clear the Shader Cache on Steam Deck
Steam Deck runs SteamOS, which is Linux-based, so its shader-cache files are generally stored in the Steam data directory. To inspect them manually, switch to Desktop Mode, open the file manager, and show hidden files. A common location is ~/.local/share/Steam/steamapps/shadercache. Find the folder for the game by its App ID and remove only that folder while Steam is closed.
Steam Deck also manages shader downloads through Steam’s settings. In Gaming Mode, open Steam’s Settings and look under Downloads for the shader pre-caching option. Menu labels and availability can change with SteamOS updates. Turning off pre-caching is not the same as deleting files already on the device; use the folder method when you specifically need to remove an existing game cache.
Should You Disable Steam Shader Pre-Caching?
Steam’s shader pre-caching feature can reduce shader-compilation pauses for supported games, especially when running Windows games through Proton on Linux or Steam Deck. Disabling it may save some downloads or storage, but it can also mean that more shader compilation happens while you play. That can lead to longer initial loads or intermittent stutter, depending on the game and hardware.
To review the option, open Steam Settings > Downloads and look for Shader Pre-Caching. If the setting is available, you can switch it off or on and observe whether it changes the issue. Treat this as a preference or troubleshooting test, not a guaranteed performance fix. If a game is already running smoothly, leaving the setting at its default is generally reasonable.
What Happens After You Delete the Cache?
The first launch after clearing a shader cache may take longer than usual. The game might compile shaders during its loading screens or as you enter new areas. A little temporary stuttering can happen while this work is repeated. Once the necessary data has been rebuilt, performance may return to normal.
Deleting a Steam shader-cache folder should not remove a game, its Steam Cloud saves, or your local save files. However, it is still important to remove only the intended folder. Some games store their own caches elsewhere, and a Steam cache reset will not necessarily clear those files or repair corrupted game installation data.
If Clearing the Cache Does Not Fix the Problem
A shader cache is only one possible cause of stuttering or graphics issues. If the problem continues after the game rebuilds its cache, try other targeted checks before deleting more files.
- Update or reinstall your graphics driver using the official NVIDIA, AMD, or Intel support tools.
- Use Steam’s game-file verification option: open the game’s Properties, choose Installed Files, and select Verify integrity of game files.
- Check the game’s graphics settings, especially ray tracing, upscaling, and texture quality.
- Restart your computer and make sure the game is not competing with a large download or background task.
- Check the game developer’s support notes for known issues after a patch or driver update.
File verification checks installed game data; it is not a dedicated shader-cache clearing tool. Likewise, reinstalling a graphics driver or deleting broad system folders should not be the first response unless a reliable troubleshooting guide specifically calls for it.
Conclusion
To clear a Steam shader cache, close Steam, locate the correct library’s steamapps/shadercache folder, and remove the subfolder named with the affected game’s App ID. On Windows, you can separately clear the DirectX Shader Cache through Storage settings or Disk Cleanup. Linux and Steam Deck use similar Steam library paths, with Flatpak installations storing their data in a different location.
Clear only the cache you need, then give the game time to rebuild it. A temporary increase in loading time or shader stutter is normal. If the issue remains, check drivers, game files, and graphics settings rather than deleting unrelated Steam or system folders.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.