ThisCalculator

Everyday

Fixed Dev Error 6164 in Modern Warfare Warzone?

Updated · Standard formula, shown below

Dev Error 6164 is a crash that occurs in Call of Duty: Modern Warfare and Warzone, typically on PC, and it usually points to a problem with the game’s shader cache or a conflict with your graphics driver. The fix that works for most players is to clear the game’s shader cache and then update or cleanly reinstall your GPU drivers. Below is a step-by-step guide to resolve the error, along with the background on why it happens and how to prevent it from returning.

What Causes Dev Error 6164?

Dev Error 6164 is a generic crash code that the game throws when it fails to load or process a shader file. Shaders are small programs that tell your GPU how to render lighting, textures, and effects. When the game updates, or when your graphics driver changes, the cached shader files can become corrupted or incompatible. This mismatch causes the game to crash, often during a match or while loading a map.

Common triggers include:

  • A game update that changes the shader format without fully clearing the old cache.
  • A graphics driver update that was installed while the game was running.
  • Overclocking your GPU or CPU, which can cause unstable shader compilation.
  • Third-party tools that modify game files (like reshade or custom configs).

Before You Start: Basic Checks

Before diving into the more specific fixes, rule out the simplest causes. Restart your PC and your router, and make sure no other heavy programs (like a browser with many tabs or a streaming app) are running in the background. Also, verify that your Windows installation is up to date, as a pending update can interfere with the game’s ability to write temporary files.

If the error only happens in Warzone but not in Modern Warfare multiplayer, the issue is likely with the Warzone-specific map data, which you can repair separately (see step 4).

Fix 1: Clear the Shader Cache

This is the most common fix. The game stores compiled shaders in a folder under your Documents directory. Deleting it forces the game to rebuild the shaders from scratch on the next launch.

  1. Close the game and Battle.net (or Steam) completely.
  2. Press Windows + R, type %LOCALAPPDATA%, and press Enter.
  3. Navigate to Activision > Call of Duty Modern Warfare > players.
  4. Look for a folder named config.cache or a file called config.cache. Delete it. (If you don’t see it, look for a folder named shadercache in the same directory.)
  5. Also go to Documents > Call of Duty Modern Warfare > players and delete the config.cache file there if it exists.
  6. Restart the game. It will recompile shaders, which may take a few minutes. Do not interrupt this process.

If you are on Steam, you can also verify the game files (right-click the game in your library, select Properties, Local Files, Verify Integrity of Game Files). This will re-download any missing or corrupted files, including shader files.

Fix 2: Update or Reinstall Graphics Drivers

An outdated or partially installed GPU driver is a prime suspect. Use the official tool for your GPU brand (NVIDIA GeForce Experience or AMD Adrenalin) to check for updates. If you already have the latest driver, do a clean reinstall:

  1. Download the latest driver for your GPU model from the manufacturer’s website.
  2. Run the installer, but choose Custom Installation (NVIDIA) or Factory Reset (AMD) when prompted.
  3. Check the box that says Perform a clean installation (NVIDIA) or Reset Shader Cache (AMD).
  4. Complete the installation and restart your PC.

If the error persists after a clean driver install, try rolling back to a previous driver version that you know worked. Sometimes the latest driver has a bug that affects the game.

Fix 3: Disable Overlays and Third-Party Tools

Overlays from Discord, GeForce Experience, MSI Afterburner, and even the Windows Game Bar can interfere with the game’s shader compilation process. Disable them temporarily to see if the crash stops.

  • Discord: Settings > Overlay > disable.
  • GeForce Experience: Settings > General > In-Game Overlay > toggle off.
  • MSI Afterburner / RivaTuner: Close the programs entirely.
  • Windows Game Bar: Settings > Gaming > Game Bar > turn off.

Also, if you use any reshade or custom shader mods, remove them. The error is often caused by these tools injecting code into the rendering pipeline.

Fix 4: Repair the Game Files

If the shader cache is fine, the game’s installation might have a corrupted file. Use the Battle.net launcher’s repair feature:

  1. Open Battle.net and go to your Game Library.
  2. Select Call of Duty: Modern Warfare / Warzone.
  3. Click the gear icon next to the Play button and select Scan and Repair.
  4. Wait for the process to complete (it can take 10-20 minutes).
  5. Restart the game.

On Steam, the equivalent is Verify Integrity of Game Files as mentioned earlier. This will re-download any missing or corrupted files, including shader files.

Fix 5: Increase Virtual Memory (Pagefile)

Dev Error 6164 can also appear if your system runs out of RAM or virtual memory while the game is compiling shaders. The game needs a lot of memory during that process. Set a larger pagefile:

  1. Press Windows + R, type sysdm.cpl, and press Enter.
  2. Go to the Advanced tab, click Settings under Performance.
  3. Go to the Advanced tab again, and click Change under Virtual Memory.
  4. Uncheck Automatically manage paging file size for all drives.
  5. Select your system drive (usually C:), choose Custom size, and set Initial size and Maximum size to 16384 MB (16 GB).
  6. Click Set, then OK, and restart your PC.

This gives the game more headroom to store temporary shader data.

Frequently Asked Questions

Does Dev Error 6164 happen on consoles?

No, this error is almost exclusively a PC issue. Console versions have a fixed hardware configuration, so the shader cache is managed automatically and rarely gets corrupted. If you see a similar error on PlayStation or Xbox, it’s usually a different code.

Will I lose my settings if I delete the config.cache file?

Yes, deleting that file resets your graphics and control settings to default. You will need to reapply your preferred settings (like field of view, sensitivity, and graphics quality) after the game rebuilds the cache.

How long should the shader recompile take?

It depends on your CPU and storage speed. On a modern SSD with a mid-range CPU, it usually takes 2-5 minutes. On an older HDD, it can take up to 15 minutes. Do not close the game during this process, or you may corrupt the cache again.

Can overclocking cause Dev Error 6164?

Yes. An unstable GPU or CPU overclock can cause shader compilation to fail, leading to this error. Try resetting your GPU and CPU to stock clocks (disable any auto-overclock in BIOS or MSI Afterburner) and test the game again.

Is there a permanent fix for this error?

There is no single permanent fix because the error is triggered by updates and driver changes. However, following the steps above—especially clearing the shader cache and keeping your drivers clean—will reduce the frequency significantly. Many players report that doing a clean driver install after each game update prevents the error for months.

Should I reinstall the entire game?

Only as a last resort. The game is over 100 GB, and a full reinstall takes time. Try the repair option first, as it re-downloads only the corrupted files. If the error persists after trying all the fixes above, a fresh install is the next step, but it is rarely necessary.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.