GTA V Legacy ERR_GFX_D3D_INIT and 188 FPS Engine Crash on PC
Fix GTA V Legacy ERR_GFX_D3D_INIT, ERR_GFX_STATE crashes and the 188 FPS engine cap bug. Frame rate limiting, shader cache, and DirectX fixes for PC.
What is ERR_GFX_D3D_INIT in GTA V Legacy?
GTA V Legacy (Steam App ID 271590) can crash with a dialog reading "ERR_GFX_D3D_INIT — Failed Initialization. Please reboot and restart the game. Try reinstalling the game if this persists." A related crash displays "ERR_GFX_STATE: Game error. Please reboot and restart the game." Both indicate a fatal failure in the DirectX graphics pipeline. Unlike the generic "exited unexpectedly" startup crash, these ERR_GFX errors typically occur during gameplay or in menus when the GPU pipeline enters an unrecoverable state.
A lesser-known cause is the RAGE engine 188 FPS cap bug: the audio frame limiter hard-crashes the engine when framerates exceed 140 FPS, with total instability above 188 FPS. On modern GPUs, menus can trivially exceed this threshold, causing crashes that appear random but are entirely reproducible.
When does it occur?
- During gameplay after 5-30 minutes, especially at high framerates on 144Hz+ monitors
- In GTA Online lobbies within 10 minutes when FPS exceeds 100, even when Story Mode runs stable
- Immediately after a GPU driver update that changes DirectX compatibility
- When GPU overclocking is enabled via MSI Afterburner, EVGA Precision, or similar tools
- After switching graphics settings in the pause menu (particularly DirectX version changes)
- When overlay software (GeForce Experience, Discord, Steam Overlay) hooks into the render pipeline
Common causes
- 188 FPS engine cap — The RAGE engine audio frame limiter (
rage::g_audUseFrameLimiter) causes synchronization failures between the audio and render threads above ~140 FPS, hard-crashing at 188 FPS - GPU overclocking — Even stable overclocks in other games can trigger ERR_GFX_STATE due to RAGE engine sensitivity to clock instability
- Corrupted shader cache —
.sgafiles inDocuments\Rockstar Games\GTA V\become invalid after driver updates - Corrupted DLL files —
d3dcsx_46.dllandd3dcompiler_46.dllin the game install folder can become corrupted - Overlay conflicts — GeForce Experience, Steam Overlay, Discord Overlay, and Xbox Game Bar inject into the render pipeline and can destabilize DirectX
- Wrong DirectX version in settings.xml — The
DX_Versionvalue may be set to a mode incompatible with your GPU - BattlEye anti-cheat conflicts — The kernel-level BattlEye service in GTA Online can trigger
ATTEMPTED_WRITE_TO_READONLY_MEMORYcrashes with certain background software
Step-by-step fixes
- Cap your framerate to 120 FPS — This is the #1 fix most guides miss entirely. Open NVIDIA Control Panel > Manage 3D Settings > Program Settings > add
GTA5.exe. Set Max Frame Rate to 120 and Vertical Sync to Adaptive. For AMD: open Radeon Software > Gaming > GTA V profile > enable Frame Rate Target Control (FRTC) and set to 120. Alternatively, createcommandline.txtin your GTA V install folder and add-frameLimit 120.
- Delete the shader cache (.sga files) — Navigate to
C:\Users\<username>\Documents\Rockstar Games\GTA V\and delete all files ending in.sga. Also delete theshader_cachefolder in the game installation directory. The game will rebuild both on next launch.
- Reset the DirectX version in settings.xml — Open
C:\Users\<username>\Documents\Rockstar Games\GTA V\settings.xmlin Notepad. Find<DX_Version value="X" />and change it to2(DirectX 11). Values:0= DX10,1= DX10.1,2= DX11. Save and relaunch.
- Reinstall DirectX runtime — Navigate to
<GTA V install>\_ CommonRedist\DirectX\Jun2010\and runDXSETUP.exe. This restores the June 2010 DirectX End-User Runtime that GTA V requires. Deleted3dcsx_46.dllandd3dcompiler_46.dllfrom the game root folder first to force fresh copies.
- Reset GPU overclock — If using MSI Afterburner, EVGA Precision, or any GPU tuning software, reset all clock offsets and power limits to default. Even a +50 MHz core overclock stable in stress tests can trigger ERR_GFX_STATE in RAGE engine.
- Disable all overlays — Turn off GeForce Experience overlay (Settings > General > In-Game Overlay > Off), Steam overlay (Steam > Settings > In-Game > uncheck), Discord overlay (User Settings > Game Activity > toggle off), and Xbox Game Bar (Settings > Gaming > Xbox Game Bar > Off). Re-enable one at a time after confirming stability.
- Verify game files — On Steam: right-click GTA V Legacy > Properties > Local Files > Verify integrity of game files. On Epic: click the three dots on GTA V > Manage > Verify. This replaces any corrupted game DLLs without a full reinstall.
- Reinstall BattlEye (GTA Online only) — If crashes occur exclusively in GTA Online, delete the folder
C:\Program Files (x86)\Common Files\BattlEye, then relaunch the game to trigger a fresh BattlEye installation. For single-player troubleshooting, add-nobattleyeto your Steam launch options orcommandline.txtto rule out anti-cheat conflicts.
If it still doesn't work
If ERR_GFX errors persist, perform a clean GPU driver installation: download [DDU (Display Driver Uninstaller)](https://www.wagnardsoft.com/), boot into Safe Mode, run DDU to fully remove all GPU driver traces, then install the latest stable driver from NVIDIA or AMD. Avoid beta/hotfix drivers. For GTA Online-specific crashes above 100 FPS that the framerate cap doesn't resolve, the community-developed [GTAV.AudioFixes](https://github.com/Gogsi/GTAV.AudioFixes) ASI mod patches the engine's audio frame limiter directly — note this is a third-party mod and may trigger BattlEye in Online sessions. Check the Rockstar support articles on [ERR_GFX_STATE](https://support.rockstargames.com/articles/2vEOZW3tzshakakcwRvakg/) and [ERR_GFX_D3D_INIT](https://support.rockstargames.com/articles/5fg5vxrA5m2KA5WJmDpIZv/) for additional platform-specific guidance.
Related errors
Fix GTA V Legacy 'exited unexpectedly' error and startup crashes on PC. Platform-specific fixes for Steam, Epic Games, and Rockstar Launcher.
Fix DXGI_ERROR_DEVICE_HUNG (0x887A0006) crashing all games on Windows 10 and 11. TDR registry fix, GPU underclocking, DirectX 11 fallback, and driver solutions.
Fix NVIDIA RTX 5090 and 5080 driver crashes with VIDEO_ENGINE_TIMEOUT_DETECTED error. Resolve black screens, game crashes, and DLSS instability on RTX 50 series GPUs.