Runs Grand Theft Auto VI (Xbox Series X|S) natively on Windows, from files the user supplies.
The title's x86-64 code runs unchanged inside our process; VIctory supplies the platform underneath it and converts the title's data, ahead of time where it can (shaders and pipelines too, see Getting started) and on first use otherwise. See docs/architecture.md.
This fork's main is upstream main plus a stack of open pull requests that we
test together on Linux (CachyOS, proton-cachyos 11.0 with Proton Experimental's
vkd3d-proton 3.2.0, RTX 5080 16 GB, 60 GB RAM). Upstream only takes pull
requests from collaborators now, so this branch keeps track of what we use.
Clone it and build as described below. The previous stack (built on #185) is
kept as the branch main-2026-11-24.
Upstream base: Marvisak/VIctory main at 940d32f.
Rendering work is on the renderer
branch (this main plus #439, the rendering pull requests and our fixes).
There the world is drawn on NVIDIA under Linux, without the GPU timeouts.
Its README has the settings that takes, including Microsoft's
d3dcompiler_47.dll: without it, Wine's compiler makes VIctory drop every
indirect draw.
| PR | Author | What it does |
|---|---|---|
| #2143 | desplmfao | A program's constant table starts after its instructions: NVIDIA kept whole-program tables in per-thread local memory (GBs of video memory); without it the world does not fit in 16 GB |
| #1849 | crashbashash | Guarded free memory; fixes the world freeze under Wine (#1921) |
| #259 | desplmfao | Query a descriptor's level count only when word 3 is read (NVIDIA pipeline crash) |
| #177 (one commit) | Ortomanic | Key heap handles by element type; without it NVIDIA crashes creating several compute pipelines |
| #491 | desplmfao | VICTORY_PIPELINE_JOURNAL=1: skip pipelines whose creation crashed an earlier run (the NVIDIA compiler ends the process on some; a fresh build can take a few runs to list them) |
| #2153 | SaymonMaster14 (#472), rebased by desplmfao | Caps the idle snapshot pool (2 GB less RAM in the world) and shares one texture staging buffer |
| #2099 | 0xkn0wh3r3 | The descriptor view table stops growing (about 200 MB more RAM every 30 s in the world without it) |
| #2071 | 0xkn0wh3r3 | Frees the executable's bytes once loaded (228 MB) |
| #2088 | kxiserino (#402), desplmfao | Reuses loose windows that hold a range; 256 KiB windows instead of 4 MiB |
| #2112 | desplmfao | Opt-in (VICTORY_IN_PLACE=1): title memory read in place instead of copied; on vkd3d-proton only allocations already 90% resident (opening one pins all of it) |
| #2162 | desplmfao | Depth twins share their scratch buffers (about 280 MB video memory) |
| #2218 | desplmfao (from youroot-code's fxceless/victory-fork#23) | GameInput keeps 256 readings per device, not 32 (input read through the history is not lost at low frame rates) |
Running under Proton is much faster with the wineserver patch from #340; see #2082 for how to build it (about 4 s to 1 s per world frame here).
State of this stack (2026-11-25): boots and reaches the world (about 2,000
draws per frame, 430–550 ms per frame). In the world the game process uses
about 14–16 GB of RAM (VIctory's own heap about 1.4 GB, flat) and about
12 GB of video memory, of which about 9 GB are textures and about 2 GB are
inside the NVIDIA driver. Known problems: most of the world is not drawn yet,
because NVIDIA refuses the title's wave64 compute shaders (r4tedx's
#233 stack works on it), and
in about one run in three the GPU hangs at the start of the first mission
(Unsignaled CrossQueueBarrier in the title's crash log, NVIDIA Xid 109;
see #1323).
Not playable yet. The title boots, runs its menus at its own 30 fps, loads the world and shows it: slowly, and with rendering defects.
| Stage | State |
|---|---|
| Boot, first-boot screens (accessibility, language, settings, legal) | works, 30 fps |
| Intro video with sound | works |
| Start screen, profile and saves | works |
| Loading into the world (about 50 s) | works |
| The world (first mission's intro) | drawn and shown: streets, buildings, vehicles, characters, the title card and credits; 1-2 s per frame. Surfaces are unlit, a band of distant geometry is missing, characters come out broken in some shots |
Tested on one machine: Windows 11, AMD RX 6700 XT.
Warning. Entering the world on a real GPU has hung it in earlier builds, and Windows then resets the display driver (every monitor goes black for a moment). The latest runs did not, but it is not ruled out; a run can also end on a GPU fault (
crashes.log). A diagnostics build withVICTORY_D3D12_WARP=1renders on the software adapter instead (too slow to reach the world in minutes).
What each part does today and what it still needs:
| Subsystem | Today | Needs |
|---|---|---|
| Loader | Runs the title's executable and its DLLs in our process; crash reports name the faulting code and are kept in crashes.log |
– |
| Runtime services | One signed-in offline user, licences, packages, saves that survive a kill at any step, text entry dialog | Speech is silent; the dialog and relaunch are untested live |
| Network | Offline by design: the title cannot reach the network | – |
| Files and streaming | Archives and streamed data read, zlib and BCPack decoded in parallel | Loading is limited by writes into title memory |
| Input | XInput pads, keyboard, keyboard stand-in pad | Trigger rumble |
| Audio | Menu, video and loading sound; XMA voices and Opus streams decode | Reverb is silent; Opus results unverified against the title |
| GPU: menus | Draws, compute and presentation on host D3D12; only changed title memory is copied | Frame pacing drifts on one screen in release builds |
| GPU: world | The scene is drawn and presented: mesh pipelines, indirect execution, views the shaders pick from the heap themselves, title memory read by address (ray-tracing structures), depth written from compute, pipelines pre-built or made by worker threads and kept on disk | Lighting (surfaces are unlit) and some missing geometry; frames take 1-2 s; draws of untranslated shaders are dropped; real queries, depth bounds, HDR and scaling are missing |
| Shaders | Console GPU code recompiled to DXIL, ahead of time (translate --cache) or at first use, cached on disk. Menus: all. World: mesh 8,765 of 8,765, vertex/pixel 12,550 of 12,592, compute 2,579 of 2,637 |
Merged geometry stages (195 programs) and about 100 others; fused multiply-adds follow the host GPU; some compute programs need a GPU with 64-lane waves |
| Textures | Console tiled layouts and detiling for the modes the title uses | Render-target metadata planes |
| Series S mode | Runs through the menus to the loading screen | The world, as above |
Requirements: Windows 10/11 x64, a CPU with AVX2, a Direct3D 12 GPU with
shader model 6.6 (and mesh shaders for the world), Rust (pinned in
rust-toolchain.toml).
To install Rust, use rustup (winget install --id Rustlang.Rustup -e, or
the installer from https://rustup.rs). The first cargo command in this
repository then fetches the pinned toolchain. Building needs the MSVC C++
build tools: Visual Studio or its Build Tools with the "Desktop development
with C++" workload.
The title also needs several GiB of available Windows commit at startup.
Check Committed under Task Manager → Performance → Memory. If
crashes.log reports Windows error 1455, close other applications or increase
the Windows paging file size, then retry.
cargo xtask install-hooks # asset-policy check on every commit
copy victory.example.toml victory.toml # then set your paths (outside the repo)
cargo test --workspace # needs no game data
cargo run -p victory -- config # check your pathsRun the title:
cargo build --release -p victory
target\release\victory.exe translate --cache --pipelines <game dir>\shaders.rpf <game dir>\<the title's exe> <game dir>\XboxBvhBuilder.dll <game dir>\amd_fidelityfx_upscaler_xbox.dll
target\release\victory.exe run <game dir>\<the title's exe> --executeThe translate --cache step (minutes; again after a change of the shader
translator) translates every shader the title can ask for into the cache
(about 1.3 GB), so a run does not translate them while it plays; without it
they are translated at first use, and their draws wait. With --pipelines
it then makes every pipeline in the title's shader pack (inside
shaders.rpf) into the host pipeline library (about 27,000 pipelines, 4 MB;
some 20 minutes on 16 threads, most of it the 2,700 compute ones), so a run
compiles none of those either; the library belongs to the GPU and driver it
was made on. Run again, it skips what is there in seconds; stopped
early, it keeps what it made.
Upscaling (Series S mode): the title upscales with AMD FidelityFX. To run
it with the PC build on your GPU instead of the console build, get the
FidelityFX SDK
and point VICTORY_FIDELITYFX_DIR (or [paths].fidelityfx_dir) at its
Kits/FidelityFX/signedbin folder, which holds
amd_fidelityfx_upscaler_dx12.dll. Without it, or if that DLL offers no
upscaler for your GPU (the log says so), the title's own DLLs run.
The window caption shows the framerate. Saves, settings and crashes.log
are kept under the data folder (default %LOCALAPPDATA%\victory\data), derived
data under the cache folder.
Set VICTORY_WINDOW_MAX=1920x1080 before launching to limit the title's
top-level window to that bounding box. Smaller windows keep their size,
larger windows keep their proportions, and the monitor's work area still
limits them. This scales the displayed image; it does not change the
console render resolution or the swap-chain buffers. With the variable
unset, window sizing is unchanged.
Set VICTORY_IN_PLACE=1 (experimental) to let the host GPU read title
memory in place instead of from host copies (title buffers and memory
outside them), which saves the copies' host memory and their refreshes.
Where the host opens part of an allocation as a heap
(OpenExistingHeapFromAddress1), only a buffer's own pages are opened.
Elsewhere (vkd3d-proton) the whole allocation is opened, which makes all of
it resident, so only allocations already mostly in memory go in place: 90%
by default, VICTORY_IN_PLACE_DENSITY sets the percentage. Sparse
allocations, and memory that is not one committed allocation (a buffer over
many separately mapped pages, say), are still copied. Unset, nothing
changes.
Input: XInput pads. With none connected the keyboard is a pad while the title's window has focus:
| Keys | Pad |
|---|---|
| W A S D / I J K L | left / right stick |
| arrows | D-pad |
| Enter, Backspace, X, Y | A, B, X, Y |
| Q / E, Z / C | shoulders, triggers |
| F / H | stick clicks |
| Esc, Tab | Menu, View |
victory inspect <exe|dll> [--imports] [--exports]
victory census [paths...] [--missing] [--strict]
victory lib-exports <import.lib> [--list]
victory shader-info [paths...] [--verbose] [--disasm] [--effects]
victory translate [paths...] [--validate] [--pipelines] [--list] [--jobs N]
victory translate [paths...] --cache [--pipelines] [--jobs N]
victory run <exe> [--execute] [--unimplemented trap|zero] [--strict]
[--console series-x|series-s] [-- <title arguments>]
victory config
Logging: VICTORY_LOG=victory_loader=trace,info (a release build logs
info and above).
Host drivers that crash compiling a shader: with VICTORY_PIPELINE_JOURNAL=1
a pipeline whose creation ends the process is refused from the next run on
(its draws dropped, as for any refused pipeline) and listed in
pipeline-journal\crashed.txt under the cache folder. Each such pipeline
costs one crash; delete its line to try it again. Pipelines are still created
in parallel; when a crash leaves several in creation, they are listed in
pipeline-journal\suspects.txt and each is created alone until it succeeds,
so a repeat crash names only the pipeline that caused it. Notes of a process
that is still running (a second instance) are left alone. Quitting while a
single pipeline is being created looks like a crash to the next run: delete
that pipeline's line from crashed.txt (the comment above it names its
stages) to have it tried again.
The shader tests use dxil.dll to validate Shader Model 6.6 containers.
An older Windows SDK validator can load successfully but reject them with
Unknown shader model 'ps_6_6'. If this happens, use a current x64 validator
from Microsoft's DirectX Shader Compiler releases
or a current Windows SDK. Set its path for the test session:
$env:VICTORY_DXIL = 'C:\tools\dxc\bin\x64\dxil.dll'
cargo test -p victory-shader --lib --locked -- --test-threads=1Without this override, the validator loader selects the newest installed
Windows SDK's bin/<version>/x64/dxil.dll, then falls back to the DLL search
path when no SDK copy is found. This is a test/offline-validation dependency;
the translated shaders do not require it at runtime.
A release build has no debugging aids. Build them in with
cargo build --profile diag -p victory --features diagnostics # target\diag\victory.exeThe on/off switches below (...=1) are off when unset or set to 0.
| Variable | Effect |
|---|---|
VICTORY_LOG=<target>=debug,... |
debug and trace output |
VICTORY_STACKS=20,60 |
every thread's stack at those seconds |
VICTORY_WATCH=<rva>,... |
logs a title u32 when it changes |
VICTORY_POKE=<rva>:<byte>,... |
writes a title byte twice a second (a hang watchdog's tick, say) |
VICTORY_KEYS=30:Enter,35:X |
presses keys at those seconds, focus or not |
VICTORY_CRASH_BREAKPOINTS=1 |
appends first-chance breakpoints to crashes.log, including ones a handler may recover from |
VICTORY_CRASH_SAVE=<rva>:<len>,... |
saves title memory to the cache folder on a crash |
VICTORY_CAPTURE=<dir> |
saves presented frames (powers of two, or VICTORY_CAPTURE_FRAMES=<list>) |
VICTORY_DUMP_TARGETS=1 |
with the two above, saves every render target of those frames |
VICTORY_CAPTURE_WORLD=<list> |
with VICTORY_CAPTURE, also saves (and with VICTORY_DUMP_TARGETS dumps) the frames at these offsets from the first frame that ran 500 draws (the world's first; its number depends on how fast the title loaded) |
VICTORY_DUMP_WRITERS=<hash>,... |
with the two above, also the textures a pipeline containing a listed shader hash writes, the first frame it runs, and for its buffers a log line (dwords changed, dwords not zero) |
VICTORY_PEEK=<hex address>[:<bytes>],... |
in listed frames, those bytes of title memory logged after each submission. Listed frames also log targets of 16 texels or fewer as values, each table view's view words and whether its host slot is null, the host copy of every buffer of 64 bytes or fewer a draw reads (at submission and after its list), and each 1D or 3D texture a dispatch writes, read back right after it |
VICTORY_D3D12_DEBUG=1 |
host debug layer |
VICTORY_D3D12_GBV=1 |
with the above, GPU-based validation (bad descriptor use reported, not faulted; slow) |
VICTORY_D3D12_DRED=1 |
on a GPU failure, the allocation hit and the commands in flight |
VICTORY_SKIP_PIPELINES=<hash>,... |
omit draws and dispatches, including indirect ones, whose pipeline contains a listed 16-digit shader hash |
VICTORY_GPU_TIMING=1 |
with the above, each list of a submission run and timed on its own; slow lists logged with their slowest commands; a device removal names the list it happened in and lists all its commands |
VICTORY_TRACE_SHADERS=<hash>,... |
with VICTORY_D3D12_DRED, every draw and dispatch of a listed shader logged with what it binds (user data, heap slots, root views and their first dwords; the first 500) |
VICTORY_D3D12_WARP=1 |
host device on the software adapter (slow; cannot reset the driver) |
VICTORY_PIPELINE_LOG=<file> |
a line per title pipeline created (key, shaders, state), first used, and made or loaded (library name); translate --cache --pipelines writes the last kind too |
VICTORY_PREBUILD_KEYS=<file> |
translate --cache --pipelines makes nothing and lists each pack record's key, shaders and state (or why it is skipped) |
VICTORY_SHADER_LOOP_LIMIT=<n> |
translated shader loops stop after n iterations per lane instead of 2^20 (own shader cache entries); if a lower n makes world frames much faster, loops hitting the limit are what makes them slow |
VICTORY_AUDIO_CAPTURE=<file.wav> |
records what the title plays (our process only) |
VICTORY_XMA_DUMP=<dir> |
saves the first 32 XMA voices' context and input |
Every build appends unhandled exceptions, panics, and host GPU failures to
crashes.log in the title's data folder.
For a startup breakpoint (0x80000003), run the diagnostics build with
VICTORY_CRASH_BREAKPOINTS=1. Keep the console output along with the new
crashes.log entries. A host DLL refusal includes the caller stack in the
console output. The refusal is expected for DLLs outside the host policy,
including rpcrt4.dll.
On Series 1.0.2.1, a missing appdata0.rpf reproduced the breakpoint at
+0x2237178 before the first window. Restore the archive from the same
package beside the title executable. run --execute checks that it can
read the RPF9 header before starting this build.
To compare hardware and software rendering, repeat with
VICTORY_D3D12_WARP=1 and check the console for
host device on the software adapter (WARP) to confirm the WARP device was
created. Compare the exception's module and offset, stack frames, and
preceding messages across the two runs.
GPL-3.0-or-later. See LICENSE.