Add optional Vulkan rendering via DXVK (Settings -> Video) - #5342
Open
iManGaaX wants to merge 13 commits into
Open
Add optional Vulkan rendering via DXVK (Settings -> Video)#5342iManGaaX wants to merge 13 commits into
iManGaaX wants to merge 13 commits into
Conversation
Added support for DXVK (D3D9 to Vulkan) including functions to manage DXVK files, verify their integrity, and handle Vulkan support checks.
Added user prompt for disabling Vulkan if problems are detected.
Added checkbox for enabling Vulkan support and related functionality.
Added comments to clarify handling of incompatible d3d9.dll versions.
Contributor
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an optional "Enable Vulkan" toggle that runs the D3D9 renderer through DXVK; translating every Direct3D 9 draw call into Vulkan before it reaches the GPUs
The feature is disabled by default. It is engineered so it can never brick the game on unsupported hardware; every failure path (missing/corrupted files, GPU without Vulkan support) silently reverts to native D3D9 and the game boots normally, with the toggle automatically switched off
What's included
1. Settings -> Video
coreconfig.xml(dxvk_enabled)2. Loader
d3d9.dllis loaded in isolation (LOAD_WITH_ALTERED_SEARCH_PATH) and aDirect3DCreate9smoke test is executed inside a__try/__excepthandler; the result is cached viavulkan_supported+ file-hash application settings3. Safe fallback (no dialogs, no crashes)
dxvk_enabled=0, removes the placed DLLs, and the game boots normally on native D3D94. GTA San Andreas folder stays 100% pristine
5. Build pipeline
utils/dxvk-1.10.3/build-mta.bat:d3d9.dll/dxgi.dllsit next to it, they're copied straight toBin/mta/dxvk6. Installer
d3d9.dll+dxgi.dllinto$INSTDIR\MTA\dxvk7. Video (Before & After)
2026-09-08.04-58-04.mp4
8. Why dxvk-1.10.3 version?
Because it is the most stable release for MTA/GTA and runs without any issues, and it works on most low-spec devices
Checklist