The VIctory Xbox Series runtime on Linux, tuned for NVIDIA RTX cards.
A fork of cool_fox (the CGBJ runtime continuation) that runs under Wine with vkd3d-proton. It carries the Linux fixes the runtime needs and the best measured changes from across the VIctory forks, each one tested on the same machine and the same scene before it was kept.
No game files are included or distributed. You need your own legal dump of the game. Never download a prebuilt "GTA VI PC" package: build from source.
Development runs on paid AI tokens and long test sessions. If you'd like to help cover those costs, you can support the work on Ko-fi. Everything here is and stays free: donations buy nothing but time spent on the next fix.
Measured in the opening prison scenes (Series X profile, 1080p output) on the test machine below. Every number is from a scripted run: launch, wait for the scene, measure 150 s.
| Start of the tuning (run 56) | Runs 85–90 | Runs 113–120 | Runs 138–157 (v0.1.2) | Now (runs 191–197) | |
|---|---|---|---|---|---|
| Steady gameplay | ~128 ms a frame (7.8 fps) | ~51 ms (~19 fps) | ~43 ms (~23 fps) | ~41.5 ms (~24 fps) | ~33.6 ms (~29.7 fps) |
| GPU busy | ~87–92 % | ~68 % | ~74–76 % | ~80 % | |
| Draws a frame | ~3,700 | ~4,000–4,800 | ~4,800 | ~4,100 | ~4,000–4,200 |
| VRAM in use (of 12 GB) | ~10.8–11.3 GB, peaks ~11.6 GB | ~11.1 GB, peak ~11.6 GB |
"Steady" is the mean of a run's last ten frame-rate lines; the first lines of a run include the heavy start of the cutscene. Runs since 153 start from the same prologue save every time.
Past the prologue a tester drove the boat in the open water at 18–23 fps.
Working: boot, menus, cutscenes, gameplay in the first areas, lit interiors, faces with moving mouths, NPC heads and clothing, audio.
Known issues: some interiors a little darker than on console (much better since the reflection fix); coloured speckles ("confetti") on the diner waitress's face in most runs (under investigation); graphical issues in the city after the prologue; controller vibration only in the main menu; some texture and lighting pop-in after camera cuts; no heat haze (left out for speed, see below). The frame is now limited by the thread that prepares and submits GPU work (~38 ms of work a frame); the GPU has headroom. 30 fps needs that thread ~8.5 ms faster.
Test machine: Arch Linux, KDE Plasma (Wayland), AMD Ryzen 5 7600X (12 threads), NVIDIA GeForce RTX 5070 12 GB, Wine-staging 11.22 with a patched wineserver, vkd3d-proton (master), DXVK's dxgi.
Measured one at a time against the run before (frame times are steady gameplay unless noted).
| Change | Source | Effect |
|---|---|---|
Small fills the title wrote itself go on without draining every flight (VICTORY_FILL_TITLE=1) |
upstream switch, turned on | waits for the card ~65 ms → ~0 a frame |
Memory profile for 10–14 GB NVIDIA cards: more title buffers in VRAM (VICTORY_CARD_BUFFERS_MB=1536, VICTORY_CARD_WINDOWS_MB=1024) |
Vice-Tay #339 | 110–120 → 58 ms; copy-back 38 → 15 ms |
Structure builder off with the frame-estimated ambient light (VICTORY_BVH_BUILDER=0, VICTORY_AMBIENT=1) |
upstream switches | 58 → 51–55 ms, and lit interiors |
Six helper threads for refreshes and copies (VICTORY_WIDE_WORKERS=6) |
this fork | ~1–2 ms |
Ray walks end at the root while the builder is off (VICTORY_BVH_MISS=1) |
VIctory-NVIDIA 24a479d32, via Victory-United | card time not spent walking empty structures |
A wineserver that keeps a process's views in a tree (linux/wine/) |
this fork | server CPU 40 % → 3–11 % (the title maps ~1,000 views a second) |
| Wave64 programs on 32-lane NVIDIA cards: pair meetings, alternating exchange slots | this fork | a defrag shader 32 → 11.6 ms of card time |
| The submitting thread looks only at card-side buffer copies touched since its last submission, not all ~4,000 | this fork | 51.3 → 49.1 ms (it was 10 % of that thread's time) |
Textures guarded instead of hashed whole at every check (VICTORY_TEXTURE_GUARD=1) |
upstream switch, turned back on | 153 → 15 MB hashed a frame; preparing 46 → 36 ms |
Decal-heap defrag, heat haze and the water's tiled light left out (VICTORY_LEAVE_OUT; set it empty to run them) |
VIctory-NVIDIA | the defrag alone was 13.7 ms of card time a frame: GPU 92 → 68 % busy, 48 → 45.5 ms |
The descriptor-heap thread makes a round after 1 ms without a submission (VICTORY_HEAP_SYNC_EARLY=1) |
upstream switch, tuned | 44.6 → 43.3 ms |
16-byte SSE2 memcmp under Wine (Wine's compares 8 bytes a step) |
cool_fox d78b9eb5 | no measurable change here; kept |
| Release builds with fat LTO and one codegen unit | TRIDENT's release profile | ~45 → 43.4 ms |
Three list-translating threads on CPUs of up to 12 threads, six above (VICTORY_THIN_THREADS) |
TRIDENT's CPU advice | 43.4 → 42.7 ms on a 6-core CPU |
| Descriptor records without a placed texture skip the heap-wide lock six threads queued on | this fork | 42.7 → 41.8 ms |
Shader writes in copies of write-combined title memory stay on the card (VICTORY_WC_NO_BACK, on; 0 turns it off) |
claude-enjoyer-6205-victory | copy-back 32 → 0.6 MB a frame; ~46 → ~41 ms in back-to-back runs |
Windows of title memory outside buffers read by the card in place (VICTORY_INPLACE=1, on) |
upstream switch, turned on | ~39 → ~36.8 ms; buffers in place were measured too and lose (the card reads them over PCIe) |
Holes in title memory remembered per 64 KiB block for 1 s instead of asking Wine every time (VICTORY_HOLE_CACHE_MS, 1000; 0 turns it off) |
this fork, from a community member's measurements | ~11,500 VirtualQuery calls a frame, each a page walk under Wine's memory lock: 37.1 → 33.6 ms |
| 19 fixes from VIctory-NVIDIA (translator: division with zero operands, wave64 lane bits in halves mode, scalar bounds; GPU: descriptor slots of split submissions, timestamp fences, alias pinning, texture formats 189–191; XMem page numbers) | VIctory-NVIDIA and its contributors | 41.2 → 39.9 ms with a fresh shader cache (run 170) |
| Change | Source | Effect |
|---|---|---|
The UI laid out at the 4K it is authored for and scaled to the output, as Series S does (VICTORY_UI_SCALE, on for outputs other than 4K) |
VIctory-NVIDIA 01e35e48 (Walking Sim Game) | menus and HUD no longer oversized at 1080p and 1440p |
| NaN, Inf and negative channels scrubbed in the ambient raise; translator fixes (SCC on signed scalar add/sub, byte and halfword CBV loads, one interpolation mode per row, array LOD); small textures no longer stale each other | VIctory-NVIDIA (3e803d88, 9790ba0c, b8a10fc9, 5ed7ae5c, a30a2281, 71add4c9) | |
Probe colours left in memory the title never wrote are dropped (VICTORY_AMBIENT_FILTER=2, on; 0 turns it off) |
coastingVI's is_garbage_probe |
red, blue and purple foliage is green again |
| One select for the first lane of a wave64 program on 32-lane cards | pull request #2 by faycalbaklouti | 24-pixel amber bars on NVIDIA 595.x drivers |
Textures without levels on demand (VICTORY_LEVELS_ON_DEMAND=0) |
upstream switch, turned off | unbacked tiled levels read zero under vkd3d-proton/NVIDIA: black rooms, walls, clothes and NPC heads fixed |
| Ray programs' fault pages raised from 2,048 to 16,384 for the run | this fork | pages read as zero after a few minutes: dark, speckled indirect light fixed |
16-bit values moved bit-exactly through typed views (HostShader::half_views) |
VIctory fork 58de9bf, pull request #927 | mouths move (the face network's indices) |
| Console threads from a group counter in groups of several host waves | VIctory-NVIDIA 854f57f (Vice-Tay c125c0c) | NVIDIA's 2-D group layout no longer runs some threads twice |
| Placed views ignore padding words | VIctory-NVIDIA PR #58 (project-flamingo) | confetti on faces, leaked views |
Reflections that miss take the ambient estimate, not the sky (VICTORY_AMBIENT_SPECULAR=1) |
VIctory-NVIDIA 2db59d48; the miss program's depth found at its slot in this fork's translation (1, 96) | glowing blue-white eyes fixed |
A slot keeps showing its old texture until the new one has uploaded (VICTORY_KEEP_SHOWN=2) |
upstream switch, raised | far less confetti on faces in the diner cutscene |
| Decal defrag and the water's tiled light left out (above) | VIctory-NVIDIA | no decal smears; no dark blocks on open water (the water is a little darker and bluer instead) |
The water light's tile lists take a slot a lane on 32-lane cards (VICTORY_WATER_TILE_SLOTS=0 turns it off) |
victory-fork cd935520 (idea by xss3009) | the tiles that lost their light to the second host wave are lit: the cause of the dark blocks on open water, fixed in the translator |
| Change | Source |
|---|---|
The title's hang handler logs and returns instead of faulting at +0x23cf683 (VICTORY_TITLE_WATCHDOG=1 keeps it) |
this fork |
The title's 30-second frame watchdog (a thread that stores to address 0 after 30 s without a frame, +0x2215c35) waits on instead (VICTORY_TITLE_WATCHDOG=1 keeps it) |
this fork, from a tester's log |
The command queue's suspend and resume (0xb8/0xc0, called when the game is suspended, e.g. on losing focus) answered |
this fork, from a tester's log |
| A command list's write into a fence's value wakes the events waiting for it | VIctory-NVIDIA 85c425a9 |
| No arena storm when the low address range is full; upload room reserved at start | VIctory-NVIDIA PR #88, e69e39c5 |
| Mono convolutions in the audio DSP (phone calls, TVs, reverb; not yet verified here) | VIctory-NVIDIA PR #77 |
| Copy range checks and late-write learning for card steps | SlaktarnVI |
| A card-side buffer copy goes up at most once per submission (it could be listed twice, with conflicting barriers); write watches asked in pieces no longer drop the pages earlier pieces reset | this fork, found by a code review of the submitting-thread changes |
Tried and left off by default because they measured neutral or worse here: Kelvaroq's mesh launch
(VICTORY_MESH_LAUNCH=1), renderer ports 6 and 7 (VICTORY_PORT_GUARD, VICTORY_PORT_JOURNAL),
VICTORY_PLACED_ORDER, VICTORY_ASK_EARLY, VICTORY_PAGE_WRITES=all, VICTORY_CARD_RESERVE_BUDGETS,
VICTORY_WIDE_MERGE=1, write watches asked in pieces (VICTORY_WATCH_CHUNK_MB, upstream PR #71),
more worker threads (VICTORY_WIDE_WORKERS=8, VICTORY_VIEW_THREADS=8). The code stays, for other
machines. VICTORY_ASK_NORESET=1 froze the game here. Also tried and not kept: mimalloc in place of
Wine's heap (no change) and retiring descriptor resources in batches (glitches). Since v0.1.1, also measured
and left opt-in: the card-memory send inside the submission's own ExecuteCommandLists
(VICTORY_CARD_SEND_ONE_EXECUTE=1, from Project Neptune VI via
claude-enjoyer-6205-victory: ~1 ms
slower on NVIDIA), refused write-watch ranges remembered (VICTORY_REFUSED_CACHE=1, neutral), a
lock-free look at descriptor slots (VICTORY_KEEP_QUICK=1, neutral, one frozen run), and decoration
bakes checking their sources first (VICTORY_BAKE_SOURCES=1, from foxhound via the same fork: the
confetti stayed).
Full setup (Wine prefix, vkd3d-proton, DXVK's dxgi, d3dcompiler_47, the patched wineserver) is in
linux/README.md.
Prebuilt download (easiest): grab victory-linux-nvidia-<version>.tar.gz from the
releases, unpack it, and run
./start.sh /path/to/your/dump. It sets up Wine, the bundled vkd3d-proton/DXVK and d3dcompiler_47
by itself; README-FIRST.txt inside walks through it. You need your own dump. Linux only.
Building from source, in short:
# 1. Build (cross-compiled to Windows with cargo-xwin)
rustup toolchain install
cargo install --locked cargo-xwin
cargo xwin build --release --locked -p victory --target x86_64-pc-windows-msvc
# 2. Translate the shaders and build every pipeline ahead (once; ~30 min the first time)
DUMP=/path/to/your/dump linux/play.sh shaders
DUMP=/path/to/your/dump linux/play.sh warm --again
# 3. Play
DUMP=/path/to/your/dump linux/play.shEverything a run writes (prefix, caches, saves, logs) goes outside the repository: its parent folder by
default, or VICTORY_LINUX_WORK. Every setting in linux/play.sh can be overridden by exporting it
first. CONSOLE=series-s selects the Series S profile.
Resolution: the Series X profile's native output is 4K; linux/play.sh sets 1080p by default
(VICTORY_OUTPUT=1920x1080) and the game renders at 2/3 of it (1280x720) and upscales. Pick another
output with RESOLUTION=720p|1080p|1440p|4k, and RENDER=native to render at the full output size
(VICTORY_RENDER_SCALE=1.0). FPS=60|unlimited lifts the game's 30 fps cap (VICTORY_FRAME_INTERVAL_MS; game time
follows real time). The launcher prints all three at start. If the game still runs at 4K, the
terminal shows resolution: ... Differs: the dump is another build than 1.0.2.1 and the size patch is
not applied.
Tips
- Close the browser and other GPU-heavy programs: the game only gets the VRAM the desktop leaves it (~8 GB of 12 here), and VRAM residency was the biggest single speed lever.
- After a change to the translator, vkd3d-proton or the shader cache key, run
warm --againin full and measure on the second run: the pipeline library is rebuilt by the first. linux/tools/ab-run.sh <name> [VAR=value ...]runs one scripted measurement (frame time, GPU load, two screenshots, RAM and VRAM), for comparing one switch at a time.
This fork stands on the work of many people. Imported changes keep their original authorship and commit references in the history.
- cool_fox (CGBJ runtime continuation), the base, and the upstream VIctory work it carries: avatarmanz, codec-d, DexNom, Belobug and contributors (its README).
- Vice-Tay (TaynanGT and contributors): the NVIDIA memory profiles.
- VIctory-NVIDIA (trustno1-coder): face, reflection, arena and audio fixes.
- VIctory fork (fxceless) and tippythetaidum (#927): the mouth fix.
- Kelvaroq (stellarr-studio): the mesh launch, measurements of the memory wall.
- SlaktarnVI (Slaktarn700): card-step learning.
- Victory-United (Fayberr): the BVH-miss switch's port.
- TRIDENT (ECHOZwei): the release profile and thread advice.
- claude-enjoyer-6205-victory: the ported (opt-in) card send and bake-source check, and its measured dead ends.
- The community testers and writers whose measurements and write-ups pointed at the drains, the memory profile and the watchdog.
GPL-3.0-or-later, as upstream (LICENSE). This project contains no game code or assets and is not affiliated with or endorsed by Rockstar Games, Take-Two Interactive or Microsoft.