keepcalculator

06 Numbers and Powers

Fix Apex Legends DXGI Error Device Hung Engine Error NVIDIA

Card No. 06·32237 · Updated · Standard formula, shown below

The “DXGI_ERROR_DEVICE_HUNG” error in Apex Legends is an NVIDIA-specific crash that occurs when the GPU driver stops responding or takes too long to complete a task, often triggered by unstable overclocks, outdated drivers, or corrupted shader caches. To fix it, you need to update or cleanly reinstall your NVIDIA driver, disable GPU overclocking, and clear the DirectX shader cache. Below is a step-by-step guide covering the most effective fixes, plus background on why this error happens.

What Causes the DXGI_ERROR_DEVICE_HUNG Error?

This error is part of Microsoft’s DirectX Graphics Infrastructure (DXGI) and indicates that the GPU driver was “hung” — meaning it failed to respond within a set timeout (usually 2 seconds). In Apex Legends, this is often triggered by:

  • Unstable GPU overclocks (core clock, memory clock, or voltage) that cause the driver to crash under load.
  • Outdated or corrupted NVIDIA drivers that have known bugs with the game’s engine.
  • Corrupted DirectX shader cache files that the game tries to load repeatedly.
  • Windows TDR (Timeout Detection and Recovery) kicking in when the GPU takes too long to render a frame.
  • Overheating or power delivery issues that cause the GPU to throttle or crash.

The error is more common on NVIDIA GPUs because of how the driver handles certain DirectX 11 workloads, but it can also occur on AMD cards (with a different error code).

Fix 1: Update or Cleanly Reinstall Your NVIDIA Driver

The first and most common fix is to ensure you have the latest stable NVIDIA driver. A clean install removes all traces of the old driver, which can fix corruption.

  1. Download the latest driver from NVIDIA’s website (or use GeForce Experience).
  2. Run the installer and choose Custom Installation.
  3. Check the box Perform a clean installation.
  4. Restart your PC after installation.

If you already have the latest driver, try rolling back to a previous version that was stable for Apex Legends. Sometimes new drivers introduce regressions.

Fix 2: Disable GPU Overclocks

If you use MSI Afterburner, EVGA Precision X1, or any overclocking tool, reset your GPU to stock clocks. Even a small memory overclock can cause the DXGI device hung error in Apex Legends, especially during intense fights.

  • Open your overclocking software and click Reset or set the core clock and memory clock to 0.
  • Also disable any “OC Scanner” or “Auto OC” features.
  • If you have an overclocked GPU from the factory (like a “Gaming OC” model), try underclocking slightly (e.g., -50 MHz on core) to see if stability returns.

Fix 3: Clear the DirectX Shader Cache

Corrupted shader caches are a frequent culprit. Clearing them forces the game to rebuild them from scratch.

  1. Press Win + R, type %localappdata%, and press Enter.
  2. Navigate to NVIDIA\DXCache and delete all files in that folder.
  3. Also go to %localappdata%\NVIDIA\GLCache and delete those files too.
  4. In Apex Legends, go to Settings → Video and set Texture Streaming Budget to a lower value (e.g., 4GB if you have 8GB VRAM).

After clearing, restart your PC and launch the game. The first few minutes may stutter as the cache rebuilds, but the error should be gone.

Fix 4: Adjust Windows Graphics Settings

Windows 10 and 11 have a few settings that can interfere with the game’s GPU usage.

  • Disable Hardware-accelerated GPU scheduling (Settings → System → Display → Graphics → Default graphics settings). This feature can cause DXGI errors in some games.
  • Set Apex Legends to High Performance in the same Graphics settings page, assigning your NVIDIA GPU if you have a hybrid laptop.
  • Disable Fullscreen Optimizations for the game’s executable: right-click on r5apex.exe in the game’s install folder → Properties → Compatibility → check “Disable fullscreen optimizations”.

Fix 5: Increase the TDR Delay (Advanced)

If the above steps fail, you can extend the time Windows waits before declaring the GPU hung. This is a registry tweak that gives the driver more time to recover.

  1. Press Win + R, type regedit, and press Enter.
  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers.
  3. Create a new DWORD (32-bit) value named TdrDelay and set its value to 10 (decimal). This increases the timeout from 2 seconds to 10.
  4. Also create TdrDdiDelay and set it to 10.
  5. Restart your PC.

This is a system-level change; only do it if you’re comfortable editing the registry. It won’t fix the root cause but can prevent the crash from appearing if the GPU is just slow.

Fix 6: Check for Overheating and Power Issues

If your GPU is overheating or not getting enough power, it can crash under load. Monitor your temperatures with a tool like GPU-Z or HWInfo during gameplay.

  • If your GPU exceeds 85°C (185°F), improve case airflow, clean dust filters, or consider repasting (if out of warranty).
  • Ensure your power supply has enough wattage and the GPU power cables are fully seated.
  • If you have a laptop, make sure it’s on a hard surface and the vents aren’t blocked.

Frequently Asked Questions

Will this error damage my GPU?

No, the DXGI device hung error is a software-level crash. It does not damage hardware. However, if it’s caused by overheating, that could shorten the GPU’s lifespan, so monitoring temperatures is still a good idea.

Why does it happen only in Apex Legends and not other games?

Apex Legends uses a modified Source engine with DirectX 11, which has specific shader compilation patterns that can expose driver instability. Other games may not stress the GPU the same way, especially in fast-paced scenes with many effects.

Should I disable VSync or limit FPS?

Yes, capping your frame rate can help. An uncapped frame rate can cause the GPU to run at 100% utilization and trigger the timeout. Set a frame cap in the game’s video settings or use NVIDIA Control Panel’s “Max Frame Rate” option (e.g., 144 or 165 depending on your monitor).

Does this error occur on AMD GPUs?

Yes, but the error message is different (often “DXGI_ERROR_DEVICE_HUNG” is NVIDIA-specific; AMD shows a similar timeout error). The fixes are similar: update drivers, disable overclocks, and clear shader caches.

Can a faulty GPU cause this error permanently?

In rare cases, yes. If the GPU has a hardware defect (e.g., failing VRAM), the error may persist even after all software fixes. If you’ve tried everything and the error continues across multiple games, test the GPU in another system or run a stress test like FurMark to check for artifacts.

Is it safe to use the TDR registry tweak?

It’s generally safe, but it masks the problem. If the GPU is genuinely unstable, increasing the timeout may just delay the crash or cause a system freeze instead. Use it as a last resort and revert it if you notice other issues.

Related

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

More cards in this drawer

The whole Numbers and Powers drawer →