If Kingdom Come: Deliverance 2 (KCD2) is stuttering, showing odd graphics, or crashing after a graphics-driver update, clearing its shader cache may help. Shader caches store data the game and graphics driver use to display images more efficiently. If cached data becomes outdated or corrupted, removing it can prompt the system to rebuild it. The first launch afterward may take longer while shaders are prepared again.
There is not necessarily one folder labeled “KCD2 shader cache” on every PC. The cache may be managed by Windows or your graphics driver, and its location depends on your hardware and settings. The safest approach is to close the game, clear the relevant cache using Windows or your GPU software, and then let KCD2 rebuild what it needs. These steps are for PC; console players generally cannot clear shader caches manually.
What Is the KCD2 Shader Cache?
A shader is a small program that helps render effects such as lighting, shadows, and surface details. To avoid repeatedly preparing the same shader data, Windows and graphics drivers can save compiled versions in a cache. KCD2 may use that stored data when it starts or when you enter areas with particular visual effects.
Clearing the cache removes temporary shader data, not the game itself. It should not delete your save files, although you should always avoid removing folders unless you know what they contain. The game or driver can create replacement cache files as you play. Because of that rebuild, a brief increase in loading time or stuttering during the first session can be normal.
Before You Clear the Cache
Save your game and completely exit KCD2. Also close the game launcher and other graphics-intensive applications. If the game or driver is using a cache file, Windows may not let you remove it. Restarting the PC first can help release files that are still in use.
- Make sure you are troubleshooting a graphics-related issue, such as unusual stutter, visual glitches, or a problem that began after a driver update.
- Do not delete your KCD2 save folder or remove random files from the installation directory.
- If you recently installed a new graphics driver, restart Windows before testing the game.
- Consider noting your current graphics settings so you can restore them if you later reset the game’s configuration.
Method 1: Clear DirectX Shader Cache in Windows
Windows’ built-in cleanup tools are a good first option because they target the DirectX shader cache without requiring you to find files by hand. The wording and menu layout can vary slightly between Windows 10 and Windows 11, but the general process is similar.
- Open the Start menu and select Settings.
- Choose System, then open Storage.
- Select Temporary files and wait while Windows scans the system.
- Find and select DirectX Shader Cache.
- Check that you have not selected other categories you intend to keep, then choose Remove files.
- Restart your PC before opening KCD2 again.
If you do not see the DirectX Shader Cache option in Storage, use Disk Cleanup instead. Search for Disk Cleanup from the Start menu, choose your Windows drive (usually C:), and let the scan finish. Select DirectX Shader Cache in the list, then confirm the cleanup. Avoid selecting unrelated items unless you also want Windows to remove them.
Clearing the DirectX cache may affect more than KCD2. Other DirectX games can also rebuild shader data the next time they run. That is expected and does not mean those games have been uninstalled or had their saved progress removed.
Method 2: Clear the NVIDIA Shader Cache
If you use an NVIDIA graphics card and the Windows cleanup does not resolve the problem, you can try clearing NVIDIA’s temporary shader data. Close KCD2, the launcher, and other games first. The driver can recreate its cache when it is needed.
On many Windows systems, NVIDIA cache files are stored in folders under your local application data or the shared program data directory. Common locations include %LOCALAPPDATA%\NVIDIA\DXCache, %LOCALAPPDATA%\NVIDIA\GLCache, and %PROGRAMDATA%\NVIDIA Corporation\NV_Cache. Not every computer will have all of these folders, and folder names can differ by driver version.
- Press Windows key + R to open the Run dialog.
- Enter
%LOCALAPPDATA%\NVIDIAand press Enter. - If a
DXCacheorGLCachefolder exists, open it and remove its contents—not the parent NVIDIA folder. - To check the shared cache location, enter
%PROGRAMDATA%\NVIDIA Corporationin Run and look forNV_Cache. - Delete only temporary cache contents you can identify. If Windows says a file is in use or access is denied, skip it rather than forcing the deletion.
- Restart Windows, then launch KCD2 and allow time for the cache to rebuild.
Deleting cache files is different from changing NVIDIA Control Panel settings or reinstalling the driver. You generally do not need to adjust the shader cache size just to clear old data. If you are uncertain about a folder, use Windows’ DirectX Shader Cache cleanup instead of removing files manually.
Method 3: Clear the AMD Shader Cache
AMD graphics software may provide a direct option to reset shader cache. The setting’s location can change between AMD Software: Adrenalin Edition versions, so check the graphics or gaming settings for an option labeled Reset Shader Cache. Close KCD2 before using it, and restart the PC afterward if the software recommends doing so.
Some AMD cache files may also appear under %LOCALAPPDATA%\AMD, including folders such as DxCache or GLCache. These folders are not guaranteed to exist on every system. If you choose to clear them manually, exit games and AMD Software first, remove only the contents of a clearly identified cache folder, and do not delete the entire AMD directory. If you cannot confidently identify the cache, use the reset option in AMD Software or Windows cleanup instead.
AMD’s shader cache reset can affect other games as well as KCD2. Expect a possible pause or temporary stutter while a game compiles new shaders on a later launch. That usually settles once the relevant areas and effects have loaded.
Method 4: Verify KCD2’s Game Files
If clearing the system or driver cache does not help, check the game installation. A damaged or missing game file can cause symptoms that resemble a shader-cache problem. Use the launcher where you installed KCD2; verification checks the installation and replaces files that are missing or corrupted. It is not the same as deleting your save data.
- Steam: Open your Library, right-click Kingdom Come: Deliverance 2, choose Properties, select Installed Files, and choose Verify integrity of game files.
- Epic Games Launcher: Open your Library, select the options menu for the game, and choose Manage or Verify, depending on the launcher version.
- GOG Galaxy: Open the game’s settings or options menu and use the available Manage installation or Verify/Repair function.
Wait for the check or repair to finish before launching the game. If the launcher downloads replacement files, let the download complete. Do not manually remove the game’s installation folders as a substitute for verification.
What to Expect After Clearing KCD2’s Shader Cache
The first launch after a reset may take longer than usual. You might notice temporary hitching as the game encounters effects or locations for which it needs to prepare shader data. Give it time, avoid repeatedly closing and reopening the game during this process, and test the same area again after it has loaded.
Performance should not necessarily improve immediately. A shader cache is intended to help with rendering, and clearing it is a troubleshooting step—not a universal frame-rate boost. If the cache was not the source of the issue, you may see no change. In some cases, the first session can feel less smooth until the new cache has been rebuilt.
To reduce variables, test KCD2 with your usual graphics settings and without changing several options at once. If you also update drivers, alter graphics settings, and clear multiple caches in one go, it can be harder to tell which step affected the problem.
If KCD2 Still Stutters or Crashes
If the issue continues after the cache rebuilds and the game files are verified, check for updates to KCD2, Windows, and your graphics driver. Make sure your PC meets the game’s system requirements and that the game is using the intended graphics card, particularly on a laptop with both integrated and dedicated graphics.
Also consider whether the problem began after installing a mod, changing an overclock, or modifying a graphics setting. Temporarily disable mods and return unstable overclock settings to their defaults before testing again. If the game crashes, note any error message and when the crash occurs; that information is more useful than repeatedly clearing caches.
For persistent problems, consult the game’s official support resources or the support channel for your graphics-card manufacturer. Include your Windows version, GPU model, driver version, and a description of what you have already tried. Avoid sharing save files or system logs publicly if they contain personal information.
Conclusion
To clear the KCD2 shader cache, first close the game and use Windows Storage or Disk Cleanup to remove the DirectX Shader Cache. If needed, reset the cache through NVIDIA or AMD software, or carefully clear a clearly identified driver cache folder. Then restart your PC and let Kingdom Come: Deliverance 2 rebuild its shader data. If the problem remains, verify the game files and check for driver, game, or configuration issues. Never delete unidentified folders or save data when troubleshooting a shader cache.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.