Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix Company of Heroes 3 DirectX Error

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If you're seeing a DirectX error in Company of Heroes 3, the fastest fix is usually updating your GPU drivers and installing the latest DirectX runtime. Most DirectX errors in this game stem from outdated graphics drivers, missing DirectX components, or Windows graphics settings that conflict with the game. Below is a step-by-step guide to resolve the issue, covering driver updates, DirectX installation, and game-specific settings.

What You'll Need

  • A Windows PC (the steps apply to Windows 10 and Windows 11)
  • Administrator access to install drivers and software
  • An internet connection for downloading drivers and DirectX
  • Your GPU brand (NVIDIA, AMD, or Intel) for driver updates

Step-by-Step

  1. Update your graphics card drivers. This is the most common fix. Go to your GPU manufacturer's official website (NVIDIA, AMD, or Intel) and download the latest driver for your specific model. You can also use the manufacturer's auto-detect tool (e.g., NVIDIA GeForce Experience, AMD Software Adrenalin) to find the right driver. Install the driver, then restart your PC.
  2. Install the latest DirectX runtime. DirectX is a collection of APIs used by games. Microsoft provides a web installer that adds missing DirectX components. Go to Microsoft's official DirectX End-User Runtime Web Installer page and download it. Run the installer and follow the prompts. This will not overwrite your existing DirectX version but fills in any missing legacy files.
  3. Verify DirectX version. Press Win + R, type dxdiag, and press Enter. In the DirectX Diagnostic Tool, check the "DirectX Version" field on the System tab. It should show DirectX 12 (or higher) on Windows 10/11. If it shows an older version, you may need to update Windows.
  4. Run Windows Update. Open Settings > Windows Update and check for updates. Install any pending updates, especially optional driver updates, and restart your PC. Windows Update often includes DirectX and graphics driver fixes.
  5. Set the game to use DirectX 11 (if available). Company of Heroes 3 may have a graphics setting to switch between DirectX 11 and DirectX 12. In the game's main menu, go to Settings > Graphics, and look for a "Graphics API" or "DirectX Version" option. If it's set to DirectX 12, try switching to DirectX 11, which is often more stable. If you can't access the game, you can edit the configuration file: navigate to Documents/My Games/Company of Heroes 3 and open the configuration.lua file with Notepad. Look for a line containing dx12 or graphics_api and change it to dx11. Save the file and relaunch the game.
  6. Run the game as an administrator. Right-click the Company of Heroes 3 shortcut and select "Run as administrator." Also, ensure the game is not blocked by User Account Control (UAC). You can also set the game to always run as admin: right-click the shortcut, go to Properties > Compatibility, and check "Run this program as an administrator."
  7. Disable fullscreen optimizations. Right-click the game's executable (usually in Steam's steamapps folder) and go to Properties > Compatibility. Check "Disable fullscreen optimizations" and also "Override high DPI scaling behavior" and set it to "Application." Apply and restart the game.
  8. Repair the game files. If the issue persists, the game installation may be corrupted. In Steam, right-click Company of Heroes 3 in your library, select Properties > Local Files, and click "Verify integrity of game files." This will re-download any missing or damaged files.
  9. Reinstall the game. As a last resort, uninstall Company of Heroes 3 and reinstall it. This ensures all files are fresh and removes any corrupted configuration. Note that this will delete your local settings, but your save games are usually stored in the cloud (if enabled) or in Documents.

Common Mistakes

  • Using outdated driver installers: Make sure you download the latest driver, not just the first one that appears in a search. Check the release date on the manufacturer's page.
  • Skipping the DirectX runtime installer: Many users assume Windows has all DirectX files, but the game may need legacy components. Always run the official installer.
  • Ignoring Windows updates: Windows updates often include DirectX and driver fixes. Skipping them can leave your system vulnerable to errors.
  • Editing the wrong config file: If you're editing the configuration file, make sure you're in the correct folder. The game may also have a separate file for graphics settings in the same directory.
  • Not restarting after driver updates: Always restart your PC after installing drivers or DirectX to ensure changes take effect.

Tips

  • Check the game's system requirements: Ensure your GPU supports DirectX 12 (or 11 if you switch). If your GPU is older, it may not support the required feature level.
  • Close background applications: Programs like Discord overlays, MSI Afterburner, or RivaTuner can interfere with DirectX. Close them before launching the game.
  • Set graphics settings to lower presets: Sometimes high settings trigger DirectX errors due to memory issues. Try lowering the graphics quality in the game settings.
  • Use the game's official support: If the error persists, check the Company of Heroes 3 official forums or support page for known issues and patches.

Troubleshooting

If the error still appears after following all steps:

  • Check for overheating: Overheating can cause DirectX crashes. Monitor your GPU temperature with a tool like HWiNFO or MSI Afterburner. If it's above 90°C, clean your PC's fans or improve airflow.
  • Test with other DirectX games: Run another demanding game to see if the error is specific to Company of Heroes 3. If other games also crash, the issue is likely with your system, not the game.
  • Reinstall GPU drivers with a clean installation: Use Display Driver Uninstaller (DDU) to completely remove your current GPU drivers, then reinstall the latest ones. This removes any leftover files that might cause conflicts.
  • Check for Windows event logs: Press Win + R, type eventvwr, and press Enter. Look under Windows Logs > Application for errors related to Company of Heroes 3 or DirectX. The error details may give clues about the specific cause.
  • Contact the game's support: If nothing works, reach out to Sega/Relic Entertainment support with your dxdiag report and the error message. They may have a specific fix.

Frequently Asked Questions

Why does Company of Heroes 3 show a DirectX error even though I have DirectX 12?

Having DirectX 12 installed doesn't guarantee that all necessary runtime components are present. The game may require older DirectX versions (like 11) or specific feature levels. Running the DirectX End-User Runtime installer adds these missing components.

Can I fix the DirectX error by updating Windows?

Yes, Windows updates often include DirectX improvements and driver updates. Go to Settings > Windows Update and install all pending updates, then restart your PC.

Is it safe to edit the game's configuration file to switch to DirectX 11?

Yes, it's safe as long as you make a backup of the file first. The game will still run, and you can always revert the change by editing the file again or verifying the game files.

What should I do if the DirectX error only happens in multiplayer?

Multiplayer errors may be due to network issues or server-side problems. Check your internet connection, disable any VPN, and ensure your firewall allows the game. Also, verify the game files, as corrupted files can cause multiplayer-specific crashes.

Will reinstalling the game delete my save data?

Usually no, if you have cloud saves enabled on Steam. Your local save files are stored in Documents/My Games/Company of Heroes 3, which is not removed during uninstallation. However, to be safe, back up that folder before reinstalling.

Can a DirectX error be caused by overclocking?

Yes, an unstable overclock on your GPU or CPU can cause DirectX crashes. Try resetting your GPU to stock clocks and see if the error disappears. If it does, your overclock is unstable and needs adjustment.