Local integration: this branch incorporates Belobug AMD 01aadd1 (changes
since 4cbe9d7) with our runtime/memory optimizations, overlay and performance
audit. See integration notes. The measurements
below describe Belobug's reference machine, not a benchmark of this build.
This is a fork of VIctory by Marvisak
and its contributors. It follows upstream main up to 8e79c80 (2026-11-24),
carries a number of upstream pull requests, and adds fixes found while running
the game's world on one AMD card.
This repository contains no game files, code or assets. You need your own copy of the game. It is not affiliated with or endorsed by the game's developer or publisher.
Not playable yet: 3 to 5 frames per second. Tested on one machine only: Windows 11, AMD Radeon RX 9070 XT 16 GB, Ryzen 7 9800X3D, 64 GB RAM, Series X profile. Nothing here has been run on an NVIDIA or Intel card.
| What | State on that machine |
|---|---|
| Boot, menus | work, 30 fps (as upstream) |
| The world | renders lit, with textures, people, vehicles, vegetation, water and sky |
| Saves | load and store |
| Frame rate in the world | 3 to 5 fps (4.4 to 4.9 standing still in a heavy scene, about 3 while driving) |
| Light in shadow | a constant, less of it in creases and under objects: the game's ray-traced indirect light does not run. One level does not suit every hour (see the known problems) |
| Shadows of the sun and of lamps | the game's own, and they work; too much of the constant light drowns them |
| Distant trees | drawn |
| Vehicles in motion | whole (they lost and stretched parts until the copies of title memory saw writes through every view of a page) |
| In-game phone | broken: with the phone out the world is unlit (black) and the phone is an empty outline |
| Memory | about 22 GB of RAM and more video memory than a 16 GB card has |
A driver timeout (Windows resets the display driver, every monitor goes black for a moment) happened once in the session this was written in. Expect it.
Picture:
- The world's indirect diffuse light is replaced by a constant while the ray
passes do not run. What the game's resolve pass left instead was bright
magenta on leaves, cloth and paper, and blocks of colours indoors
(
VICTORY_AMBIENT=<level>, 0.6 by default;offkeeps the game's output). Its colour can be set (VICTORY_AMBIENT_TINT=r,g,b), and less of it reaches creases, corners and the underside of things, worked out from the scene's depth alone (VICTORY_AMBIENT_SHADE=strength,radius; grainy, it is not blurred yet). In diagnostics builds all of it can be tuned in a running game from a file (VICTORY_AMBIENT_FILE). - Blending is off on integer render targets in host pipelines: the console ignores it there, D3D12 refuses the pipeline. One world pipeline the driver refused at every launch is made now (pull request #45, pgm1207 and Arvi23).
- In pixel shaders every read of another pixel of the same 2x2 quad goes through quad reads, helper pixels included. Wave reads return 0 from helper pixels on AMD, which showed as lines along every triangle on car paint, glass and skin. Upstream does this after discards only.
- A helper pixel's
v_readfirstlanereads its own value (upstream0601955). - Twice the dynamic descriptor slots, so the tables of heavy frames fit.
- Depth and stencil twins for depth textures written by compute, screen passes with pipeline workers of their own, textures told apart by the mips their memory really holds, and other fixes listed in the history.
Speed:
- The clamps of a run of indirect draws are recorded in a list before the
list that draws, and run one after another (
VICTORY_HOIST_CLAMPS, 7 by default, 0 for each before its draw): 225 to about 80 ms of GPU time per frame in a scene of 9,000 draws. - The snapshots and the copy-back of the tiles shaders write are taken on several threads (pull request #18, PikPakPik): copying back went from about 43 to about 33 ms a frame here. The frame rate did not move.
- The title's submissions can return before the host GPU is done, with what
they owe finished at the next wait (
VICTORY_ASYNC_SUBMIT=1, off by default): stable here, and no faster, because the frame is bound by the processor's work, not by the wait. - Shader cache entries of another build can be reused
(
VICTORY_SHADER_BUILD_OF=<executable>, diagnostics).
Memory the title shows at several addresses:
- Every view of a guarded physical page is guarded with it, so a write of the title's through another address is seen (the idea of victory-fork #115 and victory-amd, written anew here); blocks the kernel is about to write stay writable for two seconds. Before this, parts of moving vehicles were left behind; the distant trees' quads that crossed the screen have not come back since either (cause not proven).
AMD:
- Shaders that crash or never leave the AMD driver's compiler cost only their pipeline, not the run.
- Buffer element counts come from the host's own table, not a size query the driver's compiler crashes on.
Diagnostics (diagnostics builds): VICTORY_SHADER_PATCH changes one word of a
shader's machine code before translation, VICTORY_SHADER_SWAP replaces
shader containers by files, VICTORY_ALWAYS_COPY=1 refreshes every copy of
title memory each frame, VICTORY_GPU_TIMING=1 logs GPU time per pipeline.
Each is described in a comment where it is read.
A diagnostics build (cargo build --profile diag -p victory --features diagnostics), with:
VICTORY_PRESENT_TARGET=1x1:1
VICTORY_HAIR=1
victory run <game_scarlett_master.exe> --execute --console series-x
The first launch after a build translates every shader and builds about 2,500 pipelines; the loading screen can stay frozen, with sound, for minutes.
- With the in-game phone out the world is unlit (see the table).
- The per-draw descriptor slots are few for the heaviest places: when they run out, some draws of a frame are dropped.
- Memory: the process commits about 33 GB after a quarter of an hour's drive (the title's own 7 GB, 8 GB of textures on the card, copies of its buffers, and the system's backing of video memory).
- No ray-traced light; the constant that stands in for it is the same everywhere and at every hour. The default of 0.6 is too much at night (it fills the shadows the game's lamps cast and the picture goes flat) and too little at noon (what the sun does not reach is nearly black). Levels that looked right on this machine: 0.07 bluish at night, 0.3 warm at dusk and dawn, 1.4 sky blue at noon. Making it follow the game's sky is being worked on.
- Some compute programs do not translate (ray-tracing structure builders,
wind volumes, a few others) and their passes are dropped. With
VICTORY_RAYS=1the builders translate and run, and the GPU stops answering about 25 seconds later (device removed): do not expect light from it. - About 380 draws of a frame are dropped in the world for want of a host pipeline: programs that do not translate, and six pipelines the AMD driver refuses (two compute, four mesh). Which of the two costs most is not measured.
- Windows 10 is reported not to get past start-up without a newer D3D12 runtime (issue #9, pull request #44, not merged or tried here yet); this fork has only been run on Windows 11.
- One test fails on this machine, before and after this update:
list::tests::lists_are_cut_at_waits_that_follow_work. crates/victory-shader/src/emit/lower.rsis larger than the size limit ofcargo xtask policy; it is source code, not an asset.- Many changes are specific to this title and this GPU, and some are marked
shortcut:in the code where they approximate what the console does.
- VIctory by Marvisak and its contributors is the base of everything here. Licensed GPL-3.0-or-later; so is this fork. Upstream's history and the authors of the pull requests carried here are kept in the commit history.
- Pull requests merged into this fork, read line by line and run in the world before merging: #45 (pgm1207, sent by Arvi23) and #18 (PikPakPik). The others are still to be read; thank you for them and for the test reports.
- fxceless/victory-fork and myokex/victory-amd were read for comparison; no code of theirs is in this fork.
- XCL by ivall: its README was read; no code of it is here.
- This fork's changes were developed with Claude Code and Gemini (Antigravity).
What follows is taken from upstream VIctory's own README: what the project is, how to build it, its commands and its debugging switches. They apply to this fork too. Upstream's status section is left out, because it describes upstream's state and upstream's test machine (an RX 6700 XT), not this fork or the machine above: read it in upstream's repository.
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 and on first use where it must (shaders). See docs/architecture.md.
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).
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 run <game dir>\<the title's exe> --executeThe 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.
Input: XInput pads. A DualSense or DualSense Edge (USB or Bluetooth) is read over HID as well and plays as the first pad when no XInput pad answers. With no pad 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, O | A, B |
| Backspace, X, Y | 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]
victory translate [paths...] [--validate] [--pipelines] [--list] [--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).
For an opt-in persistent performance report, see Performance audit. Set VICTORY_AUDIT=1 before launching the game; use a diagnostics build for detailed drop/copy counters.
A release build has no debugging aids. Build them in with
cargo build --profile diag -p victory --features diagnostics # target\diag\victory.exe| 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_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_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 |
VICTORY_D3D12_WARP=1 |
host device on the software adapter (slow; cannot reset the driver) |
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.