From a technical point of view, Kingdom Come: Deliverance II (KCD2) is a great game. Running on the CryEngine, it not only looks good but also runs and scales well on PC. However, no PC software is ever perfect, and the game is no exception. PC users are experiencing errors and issues with the game like the out of system memory error, the WHGame.dll error, or in-game crashes. I have compiled a list of fixes that will resolve the Kingdom Come Deliverance 2 in-game crash on your PC.
How Do I Fix Kingdom Come Deliverance 2 Crash on PC?
PC users report that Kingdom Come: Deliverance 2 keeps crashing randomly while playing. There are multiple reasons for this, like the overclocked PC hardware, unlocked FPS stressing the GPU and the CPU, in-game overlays interfering with the game, and more. The following fixes will help you resolve KCD2 in-game crashes on your PC.
Fix #1 – Disable XMP or Revert RAM Overclock
KCD2 is a CPU and RAM-intensive game. While it does not use much RAM, it does stresses CPU’s memory controller, which isn’t ideal if you have overclocked your RAM or have enabled the XMP profile because it is crashing Kingdom Come Deliverance 2 while playing. You can fix the crash by reverting RAM to its default or base clocks.
However, if you have not overclocked the RAM, it is likely the XMP profile in your BIOS is enabled. XMP is a BIOS feature that ensures that the installed RAM is used to its maximum potential. This is crashing the game, and you can fix the issue by disabling the XMP profile from the BIOS.
Fix #2 – Delete the “Shaders” Folder
For some PC users, KCD2 is crashing to the desktop due to shaders. Either they are corrupt or have compatibility issues. To fix the in-game crash issue, delete the “shaders” folder for the game. Go to “C:\Users\’your username’\Saved Games\kingdomcome2\” and delete the “shaders” folder. Play Kingdom Come Deliverance 2, and it won’t crash while playing.
Fix #3 – Increase the Size of the Shader Cache
As stated, Kingdom Come Deliverance II runs on CryEngine. While it does not compile shaders like Unreal Engine, it does make use of them. The reason the game is crashing while playing is the default shader cache size isn’t enough for it. You can fix the issue by increasing the shader cache size, and here is how you can do it:
- Open the Nvidia Control Panel.
- Go to the “Manage 3D settings” tab.
- Open the “Global settings” tab.
- Scroll through the option and find the “Shader cache size” option.
- Select the “10 GB” or higher option and apply the changes.
- Play Kingdom Come Deliverance 2 and it won’t crash while playing.

Fix #4- Disable All In-game Overlays
If you are using in-game overlays for Steam, Nvidia App, or Discord, this is the reason why Kingdom Come Deliverance 2 keeps crashing on your PC. While the overlays are useful, they sometimes interfere with games and cause them to crash. You can fix this issue in Kingdom Come Deliverance 2 by disabling all in-game overlys. Here is how you can do it:
Discord
- Go to User Settings and open the Game Overlay tab.
- Turn off the “Enable In-game overlay” options.
Steam
- Open Steam settings and go to the In-Game tab.
- Uncheck “Enable the Steam overlay while in-game” and press OK.

Nvidia
- Open the Nvidia App and open Settings.
- Go to the “Features” tab.
- Disable “Nvidia Overlay”.

Fix #5 – Update or Install a Different GPU Driver
KCD2 launched shortly after Nvidia rolled out driver version 572.16, and this particular driver is the cause of the game’s in-game crashes, at the time of writing. You can fix the issue by installing a different driver version. PC users report that Nvidia driver version 566.36 fixes the in-game crashes in Kingdom Come Deliverance 2. Ensure that you do a clean installation.
Fix #6 – Revert GPU Overclock or Enable the Debug Mode
One of the benefits of PC gaming is that the hardware can be overclocked to get more in-game performance. However, it often makes gaming an unstable experience as games crash while playing. If you have overclocked your graphics card or the CPU, revert it to its default clocks, and KCD2’s in-game crashes will be fixed.
However, if you have not overclocked your graphics card, it’s likely that it is factory-overclocked. Mose graphics cards from AIB partners, like Zotac, are either factory-overclocked or have higher GPU and Memory clocks than reference models. This is crashing Kingdom Come Deliverance 2 and can be fixed by enabling the Debug Mode. Here is how to enable it:
- Open the Nvidia Control Panel.
- Click the “Help” button in the top menu.
- Click the “Debug Mode” option.
- Play KCD2, and the in-game crashes are now fixed.

What Does Debug Mode Do?
Enabling the Debug Mode forces the graphics card to use Nvidia’s recommended GPU and Memory clocks for the particular model. This reduces the stress on the GPU, which leads to a more stable gaming experience.
Fix #7 – Limit Kingdom Come Deliverance 2’s Max Frame Rate
Playing games at a high FPS is a different experience, as the gameplay feels smooth and the input latency is reduced. However, it also stresses the CPU and GPU, which leads to games crashing while playing. If you are playing Kingdom Come Deliverance 2 at an unlocked or high frame rate, it is the reason for the in-game crash issue. You can fix it by limiting the game’s max frame rate.
If you playing at an unlocked FPS with vsync disabled, then enable it. This will cap the game’s frame rate to your display refresh-rate, and the game will stop crashing.
In case you are using a high refresh-rate monitor, then limit the game’s FPS through the Nvidia Control Panel or Nvidia App. Here is how you can do it:s
Nvidia Control Panel
- Open the Nvidia Control Panel.
- Click the “Manage 3D settings” option on the left menu.
- Open the “Program settings” tab and select “Kingdom Come Deliverance 2” from the drop-down menu.
- Enable the “Max Frame Rate” option and set a value for it.
- Play the game and the crashes are now fixed.

Nvidia App
- Open the Nvidia App and select the “Graphics” tab.
- Select Kingdom Come Deliverance 2 from the list of games.
- Scroll down the options and clock on “Max Frame Rate”.
- Turn it on and set a value for it.
- Play the game and the DXGI error is now fixed.
Helpful Tip: Unless you are playing the game on a Gsync or Freesync display, the frame rate value should be 1/2, 1/3, or 1/4th of your display refresh rate, otherwise, the game will feel jittery.
There you have it, our fixes for the Kingdom Come Deliverance 2 in-game crash issue on PC. If you are experiencing errors and crashes in games, also see our fixes hub for commonly occurring errors for PC and handhelds.
