A work-in-progress integration fork of fxceless/victory-fork and Marvisak/VIctory, a compatibility layer that runs an Xbox Series title natively on Windows from files the user supplies.
This branch focuses on visual parity first (console-accurate lighting, geometry, and textures) and stability on constrained hardware (8 GB VRAM, 16 GB RAM, Intel Broadwell CPU without clzero), followed by frame-rate optimization.
This repository contains no game files, code, assets, or screenshots. See docs/asset-policy.md. You need your own copy of the title.
- VIctory by Marvisak and contributors (GPL-3.0-or-later): base loader, HLE services, D3D12 back end, and RDNA2-to-DXIL recompiler.
- fxceless/victory-fork (GPL-3.0-or-later): meshlet culling, bindless texture queue, relay/late-wait, shader optimization passes, and ray-tracing foundation.
- mpDom/VIctory (
43fcdf3): batched Intelclzeroloop emulation (cuts ~196k#UDexceptions/frame on Intel CPUs). - Community PR authors on
fxceless/victory-fork(#9,#23,#24,#25,#32,#49,#51,#52,#61,#63,#67,#77,#78,#80,#81,#82,#83,#87,#90,#92,#95,#119,#122,#124,#134,#137,#141,#144,#150,#156,#158,#167,#185,#194,#203,#205,#206,#207,#209,#213,#214,#218,#220). - XCL by ivall and contributors (GPL-2.0-only), referenced for console device behavior.
All runs and measurements below were captured on a single constrained Windows machine using the Xbox Series X profile (1920x1080, native Windows D3D12, default TDR):
- OS: Windows 11
- CPU: Intel Xeon E5-2680 v4 (14 cores / 28 threads, Broadwell — lacks AMD
clzero) - GPU: NVIDIA GeForce RTX 5060 (8 GB VRAM, Blackwell, 32-lane waves)
- RAM: 16 GB DDR4 (+ 64 GB Windows page file)
| Milestone / Branch | Build & Key Changes | Duration / Exit | Untranslated Shaders | World FPS (Preparing / GPU / Copy Back) | Host RAM | Key Outcome |
|---|---|---|---|---|---|---|
578d459 baseline |
fxceless stable base, 4K, RELAY=2, BUDGET=4500 |
9m30s / title int3 (+0x5149aec) |
17 | 0.3–1.4 fps (1865–2659 / 10–205 / 98–889 ms) |
22.7 GB private (0.9 GB free) | Full lit opening cutscene rendered; hit title BUILDING/INSTANCE_LIST pool limit (45000/45000) |
578d459 hot cache + menu |
Hot pipeline library + scripted Esc (MENU) |
9m59s / clean cap | 20 | 1.2–2.8 fps (14 fps in pause menu) | ~21 GB private | Pause menu + full settings UI rendered and responsive with XInput pad; zero GPU errors |
1684989 hot cache |
e9765a7 wave64 fix + d279e69 prewarm, 4K, BUDGET=4000 |
11m20s / E_OUTOFMEMORY |
14 | 0.5–2.0 fps (1171 / 62 / 447 ms) |
24.0 GB private (0.68 GB free) | Cleared +0x5149aec; reached pre-gameplay character close-up cutscene; stopped by host RAM OOM at 4K |
gta6/90228a7-intel-mega |
90228a7 + Intel clzero (43fcdf3) + #23/#24/#25/#32, 1080p, BUDGET=2500 |
14m34s / clean exit 0 |
11 | 2.2–2.7 fps (343 / 19 / 217 ms, 6,882 draws) |
20.7 GB private (1.6–3.5 GB free) | First playable prologue + HUD + controller movement + autosave checkpoint written; zero OOM, zero GPU errors |
gta6/90228a7-perf-release |
Pure --release + #49/#51/#52/#61/#67 + LATE_WAIT=3, WIDE_BACK=1, CARD_BUFFERS=512 |
8m42s / clean exit 0 |
9 | 2.3–2.9 fps heavy / 15.4–16.5 fps menu (261 / 47–99 / 275 ms) |
— | Confirmed --release cuts preparing (-82 ms); interior walls still intermittently missing (#168) |
gta6/visual-xbox |
+10 visual/texture PRs (#77/#78/#80/#81/#82/#83/#87/#90/#92/#95), dropped b83629b9 skip |
5m59s / clean cap | 6 | 0.7–1.9 fps (777 / 112 / 562 ms without CARD_BUFFERS) |
19.1 GB private (2.0 GB free) | Meshlet culling (b83629b9) runs cleanly without hangs; sunlit yard + watchtower + concrete walls rendered |
gta6/visual-xbox2 + xbox3 (rt156) |
Original s_round_mode (+inf/-inf/zero) f16 fix + #156 (32-lane RT shadows & 52/52 BVH) + #9/#63/#119/#122/#124/#134/#137/#141/#144/#150/#158 |
7m00s / clean cap | ~6 (dropped draws cut 900–4200 → 377) | 2.0 fps steady (217 / 257 / 149 ms, 5,069 draws, diag + PNG capture) |
20.8 GB private (2.1 GB free) | Cell cinderblock walls + bunk bed + sunlit yard shadows + HUD rendered cleanly; preparing cut 3–5x, copy back cut 3.5x; now GPU-bound |
gta6/visual-xbox4 |
+12 PRs: #203 (+46 shaders), #213 (BVH miss), #205 (memory::ready), #214, #209, #206/#207, #194 (VRAM eviction), #220, #218, #185, #167 |
6m00s / clean cap | 2 | 1.6–1.8 fps (220 / 335 / 147 ms, 5,020 draws) |
21.3 GB private (0.96 GB free) | shader does not translate cut to 2; dropping LATE_WAIT=3 restored solid walls + frosted wired glass window; orange jumpsuit text visible; VICTORY_BVH_BUILDER=1 opened 53/53 (hit title teardown AV +0x4f38ba5) |
gta6/visual-xbox5 |
+12 visual PRs (#362, #344 SampleCmp key, #349 v_div_fixup NaN/Inf, #353 3D MIMG/cubemap, #241 OOM texture retry, #215 POPS/ROV, #350-#352/#355/#303/#304; #340 reverted after 30-compute regression) |
5m59s / clean cap | 2 | 1.4–1.7 fps (219–257 / 339–350 / 148–158 ms) |
21.3 GB private (0.59 GB free) | Cleared sky color halos and NaN/Inf blowouts (245/0 shader, 146/0 GPU) |
gta6/visual-xbox6 (current) |
+3 PRs: #400 (merged ES+GS geometry stage, +2.6k lines), #407 (ClzeroLoop Intel hardening), #408 (Staging::detile OOB fix), BUDGET=2800 |
5m58s / clean cap | 2 | 1.9–2.0 fps (216–238 / 281–303 / 147–156 ms, 5,096 draws) |
20.3 GB private (0.56 GB free) | Cleanest prologue frame so far: two-tone cinderblock walls (left + right), bunk bed, crisp sunlit yard, HUD, zero dither/halos (284/0 shader, 148/0 GPU) |
- Conservative
f16rounding vias_round_mode(crates/victory-shader/src/emit/lower/numeric.rs,lower.rs): tracksMODE[3:2](RNE,+inf,-inf,RTZ) and emits exact directedf32 -> f16conversions forv_cvt_f16_f32(preventing negative BVHminbounds from rounding upward and breaking parent-box containment on 32-lane NVIDIA hosts). Verified on hardware GPU (wave64_tests::s_round_mode_rounds_a_16_bit_conversion_outward). - Release-build env switches: unlocked
VICTORY_SKIP_PIPELINESandVICTORY_SHADER_LOOP_LIMITin pure--releasebuilds (without--features diagnosticsoverhead). - Submodule splits (
lower/numeric.rs,lower/descriptors.rs): keptlower.rsunder the repository's 512 KiBxtask policylimit without relaxing policy rules.
$env:VICTORY_GAME_DIR = "F:/path/to/game"
$env:VICTORY_DISPLAY_MODE = "1920x1080"
$env:VICTORY_RELAY = "2"
$env:VICTORY_LATE_WAIT = "3"
$env:VICTORY_WIDE_BACK = "1"
$env:VICTORY_CARD_BUFFERS_MIN_MB = "1"
$env:VICTORY_CARD_BUFFERS_MB = "512"
$env:VICTORY_CARD_REHASH_RUNS = "1"
$env:VICTORY_JOIN_COPIES = "1"
$env:VICTORY_SHADER_LOOP_LIMIT = "256"
$env:VICTORY_SKIP_PIPELINES = "eeed82b877b44b5f"
$env:VICTORY_TEXTURE_BUDGET_MB = "3200"
$env:VICTORY_LAZY_TEXTURES = "1"
$env:VICTORY_REAL_OCCLUSION = "1"- Boot, menus, saves/checkpoint reload, XInput pad (
#23256-entry history) - Opening cutscene & playable prologue without
device removed, OOM, or+0x5149aec - Static ray-traced shadows & 52/52 BVH builder translation on 32-lane NVIDIA (
#156,s_round_mode) - Missing interior walls under
RELAY/LATE_WAIT(#206,#207) and 8 GB VRAM eviction (#194) - Indirect lighting / GI (irradiance cache) on 32-lane GPUs: close the remaining 2 irradiance-cache shading programs (partial-lane wave reductions) so shadowed faces, clothing, and interiors receive bounce & lamp light
- Dynamic BVH builder (
VICTORY_BVH_BUILDER=1): validate full 52/52 builder with conservativef16rounding and#205/#213without washed-out exposure or crashes - Remaining material / edge artifacts: evaluate
#215(POPS / rasterizer-ordered UAVs), high-LOD texture residency under 8 GB VRAM, and console PSO deserialization (0x1c8/0x218) if material passes remain missing
- Hardware DXR
RayQueryacceleration (fxceless#17) replacing software DXIL BVH traversal - Mature
VICTORY_INPLACEzero-copy title memory to cut CPUpreparingandcopying back - Upscaling (
#86FSR) and occlusion culling tuning (#167) for 8 GB VRAM cards
Everything below this line is upstream VIctory's own README, unchanged; its status section describes upstream, not this fork.
Runs the title (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.
Not playable yet. The title boots, runs its menus at its own 30 fps and loads the world, where rendering fails.
| 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) | reached and runs with indirect draws; its title card renders, the scene after it is still dark; 0.5-1.8 s per frame |
Tested on one machine: Windows 11, AMD RX 6700 XT.
Warning. Entering the world on a real GPU can currently hang it, and Windows then resets the display driver (every monitor goes black for a moment). To look further, use a diagnostics build with
VICTORY_D3D12_WARP=1, which renders on the software adapter.
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 | Mesh pipelines, shader-written buffers, descriptor lifetimes, indirect execution (arguments clamped), pipelines made by worker threads and kept on disk | Most of the scene is still missing (untranslated shaders drop draws); frames take seconds; real queries, depth bounds, HDR and scaling are missing |
| Shaders | Console GPU code recompiled to DXIL at first use, cached on disk. Menus: all. World: mesh 8,191 of 8,506, vertex/pixel 10,617 of 12,346, compute 1,643 of 2,539 | 64-bit image atomics, merged geometry stages, the ray-tracing builder's shaders; 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).
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. 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]
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).
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_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_PIPELINE_WAIT_MS=24 |
reduce the per-frame wait for background pipeline creation from the default of 500 ms. A draw can be omitted until its pipeline is ready |
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 crashes and host GPU failures to crashes.log in the
title's data folder.
Work on this fork, measured with VICTORY_GPU_TIMING=1 and a frame grabber,
same scene each time (the title's opening world, a city street):
| change | before | after |
|---|---|---|
texture refresh without waiting on the remap lock (VICTORY_TEXTURE_NO_WAIT=1) |
312–545 ms a frame in texture work | 12–23 ms |
card-buffer copies kept on the card (VICTORY_CARD_BUFFERS_MIN_MB=8, VICTORY_CARD_BUFFERS_MB=1536) |
heap pass 262 ms, 1 906 draws | heap pass 15–24 ms, 4 833 draws |
| both together | 1.3–1.8 frames a second | 2.5–4 frames a second |
The menu runs at a locked 30. Saves persist across restarts. Cutscenes render with light and subtitles.
Wave64 → wave32: a console wave64 program runs on a 32-lane host as two host
waves when its cross-lane code stays inside each half and its shared memory
is ordered. This fork adds an analysis that also halves programs whose every
shared-memory access names only the lane's own words (the address derives
from the thread id), which needs no ordering at all: of 1 163 dumped compute
programs, 37 more now run in waves of 32 than did before. The probe lives in
crates/victory-shader/examples (wave_why, lds_dump, validate_dump).
GPL-3.0-or-later. See LICENSE.