ReVIctory
A fork of VIctory, a compatibility layer that runs an Xbox Series title natively on Windows from files you supply yourself. This fork primarily targets AMD RDNA 4 (Radeon RX 9070 XT) and aims for a steady 30+ fps and a correct picture, with work-in-progress NVIDIA RTX (Wave32) support enabled automatically when an NVIDIA GPU is detected.
This repository contains no game files, code or assets. You need your own copy of the game. The project is not affiliated with or endorsed by the game's developer or publisher.
- Status
- Requirements
- Quick start
- The launcher
- Script options
- The portable scripts
- The in-game overlay
- Upscaling and frame generation (AMD FSR & NVIDIA DLSS)
- Streaming
- Graphics memory
- Ray tracing
- Logs, profiles, captures and troubleshooting
- How it works
- Documentation
- Credits · License
Status
As of 2026-12-02.
AMD (Primary target)
Measured on Ryzen 9 9950X3D, 64 GB RAM, Radeon RX 9070 XT (16 GB), internal NVMe SSD,
Series X profile (2560×1440 rendered, 3840×2160 output), default presets (-Fast,
-Stream, -SoftPages, -GpuOpt, -PcQuality):
Unlocked frame rate (VICTORY_FRAME_INTERVAL_MS=0) | ~47 fps average (median 47.2 fps, 33–66 fps across multi-spot idle + cruise benchmarks; up to 68 fps in lighter scenes) |
| Locked frame rate (default 30 fps cap) | Steady 30 fps across gameplay and driving |
| Frame time | Submit-thread prep averages ~8.6 ms (down from 25–35 ms); GPU is now the main limit when uncapped |
| Streaming | No freezes; textures and models keep up at normal speeds and catch up quickly at high speed |
| Graphics memory | ~80–90% of the budget Windows gives, with headroom kept on purpose |
Ray tracing (-RayTracing) | Works, ~15 fps; being optimised |
| Upscaling & Frame Gen | AMD FSR 4 or FSR 3.1 upscaling and frame generation with the HUD kept out of interpolation |
| Shaders | Every shader the title uses translates natively (Wave64) |
| Audio | Music, effects, TV and phone-call speakers, reverb |
NVIDIA (Work in Progress)
Warning: NVIDIA GPU support is work in progress and may have visual bugs, instability, or lower performance than AMD. All NVIDIA-specific workarounds are automatically enabled when an NVIDIA GPU is detected (
VICTORY_NVIDIA=1) and remain completely off on AMD GPUs.
Measured on NVIDIA GeForce RTX 4070 SUPER (12 GB VRAM), Series X profile, diag build:
| Frame rate | ~20 fps across gameplay right now (full GPU-timed benchmark pass pending) |
| Shader compatibility | Wave32 lowering with deadlock-safe 64-lane compute widening (SafeSingleWave), Wave32 water volumetric tile rewrite, D3D12-compliant mesh splitting, and an isolated NVIDIA shader cache key (VICTORY_NVIDIA=4) |
| Graphics memory | ~82–84% of Windows' VRAM budget on 12 GB cards (~7.8 / 9.5 GB) via 1536 MiB card buffer cap, ReBAR-backed windows (VICTORY_CARD_WINDOWS_MB=0), and zero pre-allocated empty texture blocks (VICTORY_RIPE_BLOCKS=0) |
| Descriptor & readback stability | 256-byte direct CBVs (VICTORY_TITLE_CBV_ALIGN=all, 96 ring pages) on 1M-capped descriptor heaps, dedicated dynamic-slot release worker, in-order direct-queue readbacks (VICTORY_RELAY_COPY=0), and GPU-read-only / write-combined / non-coherent write-back skipping (VICTORY_WC_NO_BACK=1, VICTORY_NONCOHERENT_NO_BACK=1) |
| Upscaling & Frame Gen | Bundled NVIDIA Streamline 2.14.1 for DLSS Super Resolution, DLSS Frame Generation (2x on RTX 40+, 3x/4x Multi Frame Gen on RTX 50+) + NVIDIA Reflex, plus FSR 3.1 fallback |
Working well: streaming without freezes, TV and phone audio, car lamps, lit
interiors and outdoor lighting without ray tracing (a stand-in for the title's
traced indirect light), water/shoreline rendering on Wave32, the intro movie (or
skipping just the startup intro with -SkipIntro).
Known issues:
- NVIDIA is work in progress: frame rate is ~20 fps on RTX 4070 SUPER and NVIDIA-specific rendering/stability edge cases are still being resolved.
- Ray tracing costs about half the frame rate.
- A surface can still turn gray for a moment while its texture is swapped.
- Some cars and trucks lose their painted body at certain angles and look black.
- Frame generation can leave faint ghosts of moving things at low frame rates.
- Interiors lit mainly by visible lamps can look slightly dimmer than intended
(raise the lighting stand-in with
F7or in the menu). - Shaders must be pre-translated and used pipelines warmed before playing (the launcher enforces this automatically).
- Mouths don't move with speech in cutscenes and conversations (blinks, brows and bodies do); being investigated.
Requirements
- Windows 10 or 11, x64, a CPU with AVX2. On Windows 10 the in-box D3D12 runtime
stops at shader model 6.5 and refuses every pipeline (log:
the D3D12 runtime refuses directly indexed descriptor heaps). Get the D3D12 Agility SDK 1.621.0 (a.nupkgis a zip), and copybuild\native\bin\x64\D3D12Core.dllandd3d12SDKLayers.dllinto aD3D12folder next tovictory.exe;victory.exeexportsD3D12SDKVersion/D3D12SDKPathso the system loads it from there. - A Direct3D 12 GPU with Shader Model 6.6 and Mesh Shaders:
- AMD (Primary): Radeon RX 9070 XT (16 GB) / RDNA 3 & 4
- NVIDIA (Work in Progress): RTX 20+ (12 GB+ VRAM recommended; DLSS requires RTX 20+, DLSS Frame Generation requires RTX 40+ with Windows Hardware-Accelerated GPU Scheduling enabled)
- 32 GB of RAM minimum (64 GB recommended)
- 32 GB+ Windows pagefile recommended to avoid streaming stutter spikes and out-of-memory crashes (the launcher checks pagefile size and includes a guided/automatic helper)
- Rust (the toolchain version is pinned in
rust-toolchain.toml) and the MSVC build tools (Visual Studio Build Tools, "Desktop development with C++") - Your own dump of the game
Quick start
Before you start. By following these steps you agree to use only copies of the program that you obtained lawfully, and you confirm that you own or are otherwise authorised to use the copy you point this build at. The project does not help you obtain it and does not support unlawfully obtained copies. If that is not the case, do not continue.
-
Get the code.
git clone https://github.com/ReTerryDavis/ReVIctory cd ReVIctory copy victory.example.toml victory.tomlEdit
victory.tomland set[paths].game_dirto your game folder (the folder that holdsgame_scarlett_master.exe); steps 3 and 4 read the game's shaders from there. Everything the runtime writes goes to%LOCALAPPDATA%\revictoryunless you setcache_dirordata_dir(keep them outside this folder). -
Build (several minutes the first time, two or three after):
cargo build --locked --release -p victory -
Put
target\release\victory.exeinto the game's folder and start it. Without arguments it opens the launcher, which needs nothing else next to it: the game is found there, and both AMD FidelityFX 2.4.0 and NVIDIA Streamline 2.14.1 DLLs are embedded inside the executable. -
Open Game & Tools and press Translate (minutes; can be stopped and resumed), then Warm Used. The launcher requires shaders to be pre-translated and used pipelines warmed before Play unlocks (
WARM FIRST). "Warm all" compiles every pipeline ever recorded (about an hour the first time). -
Press Play. Your GPU vendor (AMD or NVIDIA) is detected automatically and vendor defaults are applied.
From the script instead, with a diag build, which logs in detail and is what all
measurements are made with:
cargo build --locked --profile diag -p victory --features diagnostics
.\scripts\play.ps1 -Shaders
.\scripts\play.ps1 -WarmAll
.\scripts\play.ps1 -Exe "C:\Games\GTA6\game_scarlett_master.exe" -LogUse your own executable's path; -Build release plays the release build. The script
auto-detects NVIDIA GPUs and enables -Nvidia automatically (use -NoNvidia to force
off). The first line printed names the victory.exe it runs.
Run either from a normal account window, not as administrator: the driver then keeps its shader cache in the usual place.
Translate again only when the shader translator changes (the release notes or a commit will say so). Warm again after a new build or a new GPU driver.
Before playing, close what holds the graphics card or a lot of memory (browsers
with many tabs, Discord or its hardware acceleration, AMD Chat, screen recorders):
Windows gives the game less video memory while they run. Each copy of the game commits
about 30 GB of memory, so make sure no earlier copy of victory.exe is still running.
The launcher
victory.exe started without arguments opens a frameless launcher window that mirrors
scripts\play.ps1 with the exact same settings (a unit test keeps the two in sync).
Hovering any setting explains it in the right-hand inspector; Q/E switch tabs,
Enter plays (once cache is warm), Esc returns Home or closes.
- Auto GPU detection: The top-right GPU pill shows your detected AMD/NVIDIA adapter
(click it on multi-GPU PCs to switch
VICTORY_D3D12_ADAPTER). NVIDIA compatibility settings are enabled automatically for NVIDIA GPUs—no manual toggle is needed—and a work-in-progress warning banner is shown while an NVIDIA GPU is selected. - Warm cache gate: Before shaders are translated and recorded used pipelines are warmed, the hero button shows WARM FIRST—clicking it automatically runs Translate and/or Warm Used as needed and unlocks PLAY once complete.
| Tab | What is in it |
|---|---|
| Home | Current launch profile summary, NVIDIA work-in-progress notice (on NVIDIA GPUs), and low-pagefile warning pill when Windows pagefile is below 32 GB |
| Graphics | Upscaler profile, upscaler engine (NVIDIA DLSS, AMD FSR 4, AMD FSR 3.1), frame generation + generator (DLSS FG 2x/3x/4x + Reflex, FSR 4, FSR 3.1), frame cap, Xbox Series X/S profile, borderless full screen, ray-traced lighting, and PC High quality preset |
| Performance | Fast renderer, larger streaming limits, software page table, logging, Extra GPU optimizations, In-place memory (ID3D12Device13), Worker threads, Safe settings, Restore defaults, and semicolon-separated VICTORY_* launch overrides |
| Game & Tools | Game executable browser, Translate and warm before playing, Skip starting intro, Translate / Warm Used / Warm All (with live embedded progress bar and Cancel), Open logs folder, and Pagefile setup helper |
The window hides while the game runs and comes back with its exit code. The upscaler
profile/version, frame generation, and frame cap are shared with the in-game F1 menu
(%LOCALAPPDATA%\revictory\overlay.txt); the rest is saved in
%LOCALAPPDATA%\revictory\launcher.txt. All CLI commands (victory run, shaders,
warm, replay, ...) work as before. Inherited VICTORY_* environment variables are
cleared before launching, matching play.ps1.
Script options
scripts\play.ps1 sets everything the fork is played with. By default it turns on
-Fast, -Stream, -SoftPages, -GpuOpt, -PcQuality, auto-detects -Nvidia on
NVIDIA adapters, and caps the title at 30 fps (or whatever the in-game F1 menu last
saved).
| Option | What it does |
|---|---|
-Exe <path> | The game's executable (needed to play) |
-Log | Writes the log to %LOCALAPPDATA%\revictory\logs\play-<time>….log |
-Safe | Without the newer, faster ways: the first thing to try when something is wrong |
-NoSoftPages | The 2026-11-27 11:55 streaming path instead of the software page table (Streaming) |
-NoFast, -NoStream, -NoGpuOpt, -NoPcQuality | Turn off individual optimization/quality presets |
-Nvidia, -NoNvidia | Force NVIDIA Wave32 compatibility overrides on/off (auto-detected by default) |
-RayTracing | The title's own ray-traced lighting (Ray tracing) |
-Fsr3 quality|balanced|performance | AMD's PC FSR 3.1 upscaler |
-Fsr4K <profile> -FsrVersion 4 | AMD FSR 4 where the card supports it |
-FrameGen | With -Fsr3/-Fsr4K: AMD FSR frame generation |
-Dlss quality|balanced|performance | NVIDIA DLSS Super Resolution via Streamline (RTX 20+) |
-DlssFrameGen (-DlssFgMult 2|3|4) | NVIDIA DLSS Frame Generation + Reflex (2x on RTX 40+, 3x/4x Multi Frame Gen on RTX 50+) |
-SkipIntro | Skips only the 4K startup intro movie (keeps in-game cutscenes, TVs, and menus) |
-Console series-x|series-s | Console model reported to the game (controls render resolution and budgets) |
-Borderless | Full-screen window without a frame |
-Build release | Runs target\release\victory.exe instead of target\diag |
-Victory <path> | Runs another victory.exe with the same settings (to compare builds) |
-Shaders, -Warm, -WarmAll | Prepare shaders and pipelines instead of playing (Quick start) |
-StreamLog | Also logs every streaming request |
-More @{ NAME = 'value' } | Any other setting. Settings left over in the terminal are cleared, so use this for them. |
Useful settings for -More:
| Setting | What it does |
|---|---|
VICTORY_FRAME_INTERVAL_MS = '0' | Uncapped ('16.667' caps at 60); also live in the menu, which keeps it for later runs |
VICTORY_FRAMEGEN_VERSION = '3' | Frame generation by FSR 3.1 instead of FSR 4 |
VICTORY_AMBIENT = '0' | Turns off the lighting stand-in (the title's own indirect light only) |
VICTORY_REFLECT_STANDIN = '0' | Turns off the reflection stand-in |
VICTORY_STARTUP_CARD = '1' | Shows the startup progress card (off by default) |
VICTORY_KBM_GTA = '1' | PC-style keyboard and mouse on the stand-in pad: F2 or ` toggles mouse look. Sensitivity: VICTORY_MOUSE_SENS; invert: VICTORY_MOUSE_INVERT_Y = '1' |
VICTORY_D3D12_ADAPTER = 'NVIDIA' | Picks a GPU by index or part of its name (multi-GPU PCs) |
VICTORY_SAFE_SINGLE_WAVE = '0' | Disables NVIDIA Wave32 single-wave64 forward-branch widening (A/B debug) |
VICTORY_GPU_RO_SKIP = '0' | Disables NVIDIA GPU-read-only UAV write-range clipping (A/B debug) |
VICTORY_WATER_LIGHT = '1' | Re-enables NVIDIA-skipped water volumetric lighting compute shaders (A/B debug) |
Every VICTORY_… setting is described in a comment where the code reads it.
The portable scripts
scripts\portable is the older way without the source code (the launcher in
victory.exe does all of it): put victory.exe and the three victory-*.cmd files next to the game's executable.
| File | Use |
|---|---|
victory-play.cmd | Starts the game with the same defaults as play.ps1. Add words in any order: fsr3 (or fsr4), balanced/performance, framegen, borderless, raytracing, nosoftpages |
victory-shaders.cmd | Translates the shaders and makes the pipelines ahead |
victory-settings.cmd | The settings both use; also where the FSR DLL folder is set |
Logs go to victory-logs\ next to the game.
The in-game overlay
F3 shows the HUD: frame rate, frame time (with the p90 and the longest), GPU busy,
the submit thread's time, graphics memory (amber past the point where new textures stop, so above 93%
by default), late command lists and, while there are any, pipelines being compiled.
F1 opens the menu; F1 or Esc closes it. While it is open the game gets no input
and the cursor shows. Q and E change tabs. The panel at the right describes the
setting in focus.
| Tab | What is in it |
|---|---|
| Performance | Frame rate and its history, the frame's steps, command translators, CPU, video memory and RAM, the texture queue, pipelines and caches |
| Game Settings | Upscaling and frame generation, then the game's own quality levels |
| Lighting | The indirect light stand-in, crease shading and indoor reflections. F6/F7 lower or raise the light, F8 turns crease shading on or off, F9 goes back to the run's start |
| Runtime | Frame pacing (with 30, 40, 60 fps and uncapped buttons), texture, pipeline and overlay switches, and the run's VICTORY_… variables |
| Tools | Write the counters or the video memory breakdown to the log, save the pipeline library and, in a diag build started with VICTORY_RECORD, capture a frame |
| Cheats | Only once turned on, see below |
Game Settings. Change one or more quality levels, then press Apply; Revert drops changes not applied yet and Restore all goes back to the run's start. The game takes them when its own settings update runs, which in play it may not do for a long time: Force apply shows while a change waits.
Cheats (story mode). Turn the tab on under Runtime → Overlay & Interface → "Cheats
tab", or with VICTORY_CHEATS=1: heal, god mode, about $100,000, the wanted level,
vehicle repair, weather, time of day and eight of the game's dormant cheat vehicles
(numbered: their names are not in its code). Each calls the game's own function, whose
code is compared first; one that differs is shown as unavailable. God mode refills
health, so a hit that kills at once still kills. Armour and infinite ammo are not
offered. No cheat has been confirmed to work in a logged run yet (2026-11-28).
Menu choices are saved in %LOCALAPPDATA%\revictory\overlay.txt.
Upscaling and frame generation (AMD FSR & NVIDIA DLSS)
The game's own upscaler is used by default. Both AMD FidelityFX (FSR 4 / FSR 3.1) and NVIDIA Streamline (DLSS Super Resolution + DLSS Frame Generation + Reflex) can replace it and generate interpolated frames with the HUD kept out of interpolation.
Bundled DLLs:
- AMD FidelityFX SDK 2.4.0 (
bin\fidelityfx-2.4.0, MIT licence):amd_fidelityfx_loader_dx12.dll,amd_fidelityfx_upscaler_dx12.dll, andamd_fidelityfx_framegeneration_dx12.dll. Embedded insidevictory.exeand extracted to%LOCALAPPDATA%\revictory\fidelityfx-2.4.0(override viaVICTORY_FIDELITYFX_DIR,fidelityfx_dirinvictory.toml, or afidelityfx\folder next tovictory.exe). - NVIDIA Streamline SDK 2.14.1 (
bin\streamline):sl.interposer.dll,sl.common.dll,sl.dlss.dll,sl.dlss_g.dll,sl.pcl.dll,sl.reflex.dll,nvngx_dlss.dll,nvngx_dlssg.dll. Embedded insidevictory.exeand extracted to%LOCALAPPDATA%\revictory\streamline(override viaVICTORY_STREAMLINE_DIR,streamline_dirinvictory.toml, or astreamline\folder next tovictory.exe).
Choose a profile in the launcher, or with the script:
# AMD FSR 3.1 / FSR 4
.\scripts\play.ps1 -Exe <exe> -Log -Fsr3 quality -FrameGen
# NVIDIA DLSS Super Resolution + DLSS Frame Generation (2x / 3x / 4x)
.\scripts\play.ps1 -Exe <exe> -Log -Dlss quality -DlssFrameGen -DlssFgMult 2| Profile | The game renders | Output |
|---|---|---|
quality | 2560×1440 | 3840×2160 |
balanced | 2258×1270 | 3840×2160 |
performance | 1920×1080 | 3840×2160 |
AMD FSR version: -Fsr3 uses FSR 3.1 even on an FSR 4 card; -Fsr4K <profile> -FsrVersion 4
uses FSR 4.1.2 where supported and falls back to FSR 3.1 otherwise.
NVIDIA DLSS & Reflex: DLSS Super Resolution requires an NVIDIA RTX 20+ GPU. DLSS
Frame Generation (-DlssFrameGen) requires an RTX 40+ GPU (2x) or RTX 50+ GPU (3x/4x
Multi Frame Generation via -DlssFgMult) with Windows Hardware-Accelerated GPU
Scheduling (HAGS) enabled, and automatically pairs with NVIDIA Reflex.
What changes while playing (F1 → Game Settings, and Runtime for the cap), in a run
started with the PC upscaler:
| Setting | Changes |
|---|---|
| Frame generation on or off | At once |
| FSR 3.1 or 4 | At once, with a short hitch; about 350 MB more while both exist |
| Frame cap | At once, the game's own limiter and time step with it; kept for later runs |
| Profile, or the upscaler on or off | At the next start: the game sizes its textures by it when it starts |
What the menu saves applies to the next start unless the script names something else
(-Fsr3, -Fsr4K). To go back to the game's own upscaler, choose it in the launcher or
delete the fsr_ lines in %LOCALAPPDATA%\revictory\overlay.txt. The live FSR version
and cap are new (2026-11-29) and little tested.
Graphics memory: about 0.65 GB more was measured with quality and frame generation.
It is counted in the budget by itself. On a 16 GB card, watch the overlay's memory line;
Windows' budget shrinks while other programs hold the card.
Frame rate: a lower profile frees up the card. Where the processor is the limit, as it is in most busy places now, the frame rate stays the same.
Frame generation:
- Needs
-Fsr3or-Fsr4K(it takes the PC upscaler's depth and motion vectors) and the frame-generation DLL; without the DLL the log names the file and the run only upscales. - Made by FSR 4 where the card has it, otherwise by 3.1 (
VICTORY_FRAMEGEN_VERSION=3: always).VICTORY_FRAMEGEN_DEBUG=1shows AMD's debug view. - The game's HUD is kept out of interpolation (
VICTORY_FRAMEGEN_HUDLESS, on), so text and the minimap don't smear. - It adds about one frame of latency.
- For even pacing, cap the game at half the display's refresh, e.g.
-More @{ VICTORY_FRAME_INTERVAL_MS = '16.667' }on 120 Hz (the default cap is 30). - The overlay shows presented frames and, below them, the game's real frames.
Streaming
Two streaming implementations are built in, chosen once at start (docs/streaming-paths.md):
- Software page table (default). On the console the title remaps 64 KiB memory pages while it streams. Doing that with Windows calls cost up to 2 ms per page and caused the freezes. This path keeps the remaps in a table of its own and maps a page only when it is touched. One rule keeps every GPU copy and texture in step with what the pages hold; it is written down in docs/xbox-api-notes.md ("The soft page table's invariant"). Streaming requests are also served oldest batch first, which matches the order the title retires them in.
- 11:55 path (
-NoSoftPages). The streaming code of the 2026-11-27 11:55 build, which also streamed well without the table. It is kept as a fallback.
Graphics memory
The layer keeps a GPU copy of what the title streams in, so the card can fill up. The policy (docs/xbox-api-notes.md, residency section):
- Evict above 85% of the budget Windows reports, load up to 93%, and react when that budget changes. The gap is what lets textures load while others are let go.
- Fewer detail levels for new textures above 89%. Full detail returns once there is room again.
- Small textures are still made when the card is full, in the gaps of existing texture blocks.
- Idle textures are evicted before anything is refused, and half-empty texture blocks are repacked so whole blocks can be released.
- A slot never shows another texture's data, nor black. It shows a neutral gray until its own texture is ready (textures of numbers rather than colors, such as depths and heights, read zero).
Other programs using the GPU (browsers, chat apps) take from the same budget. Closing them gives the game more room.
Ray tracing
-RayTracing turns on the title's own ray-traced lighting, reflections and global
illumination. The console's acceleration structures are rebuilt and traversed in the
layer (docs/fork-ray-tracing.md,
docs/ray-tracing-cost.md). It currently halves the frame
rate.
Without it, a stand-in fills in the indirect light and reflections the title would
trace (VICTORY_AMBIENT, VICTORY_REFLECT_STANDIN):
- it leaves light alone where the game already got it right, such as outdoor sky light;
- it fills in where the game's result is missing, such as dark interiors;
- a few bright lights cannot pump the whole scene.
Logs, profiles, captures and troubleshooting
| What | Where |
|---|---|
Run logs (-Log) | %LOCALAPPDATA%\revictory\logs\play-*.log |
| The runtime's crash records | %LOCALAPPDATA%\revictory\data\<title id>\crashes.log |
The runtime's minidumps (every thread; on a crash, and after 20 s without a frame: VICTORY_HANG_DUMP, VICTORY_DUMP=0|full) | %LOCALAPPDATA%\revictory\data\<title id>\dumps\ |
| Menu settings | %LOCALAPPDATA%\revictory\overlay.txt |
| Shader and pipeline caches | cache_dir in victory.toml (default %LOCALAPPDATA%\revictory\cache) |
Something is wrong:
- Try
-Safe. - Try
-NoSoftPages. - Delete
overlay.txtto drop saved menu choices. - Keep the log; it names the setting behind most lines.
To mark a glitch and log individual present gaps, start with
-Log -More @{ VICTORY_PANEL_LOG = '1'; VICTORY_LOG = 'warn,victory_gpu::perf=info' }.
Press F4 while the game is focused for a PLAYER_MARK. Gaps of at least
150 ms between successful presents produce a SLOW_PRESENT line. Both work
with the HUD hidden.
Run scripts\shader-diff.ps1 to find the installed GDK and Windows SDK shader
compilers, run the differential tests serially, and save the output under
target\diagnostics. Use -Warp for the software adapter or -List to
list tests without requiring either compiler.
Clearing the shader cache is not needed. Translations are stored per translator version and settings, so an old build never picks up a new build's shaders or the other way round.
Frame captures for the replayer (docs/replay.md):
- Delete any old
D:\victory-captures\go. Clear out oldcapture-<n>folders now, not while the game runs: each run makes its folder at launch and records shaders into it. - Launch with
-More @{ VICTORY_RECORD = 'D:\victory-captures'; VICTORY_RECORD_FRAMES = '1' }. - When the moment is on screen, run
New-Item D:\victory-captures\go(or press the button in the menu's Tools tab; either way deletegobefore the next launch). The game pauses a few seconds while it writes about 7 GB. In a cutscene it can take about 3 s longer to start (it waits up to 100 frames for one whose lists were all recorded).
victory replay <folder> --pixel x,y then traces any pixel back through every draw.
This found the car-lamp flicker and the black walls.
Frame recordings (diag builds), for what shows for a frame only: F11 starts one and
F11 again ends it. It is written to %LOCALAPPDATA%\revictory\captures with each frame's
picture, what ran in it and what happened meanwhile. VICTORY_REC_GB sets how much memory
it may hold (4).
Profiles: -More @{ VICTORY_PROFILE = '<from s>,<to s>,<ms>,<file>' } samples the
busiest threads' stacks. Keep target\diag\victory.pdb from the same build to read it.
How it works
The layer loads the title's executable, answers its system calls (Xbox OS, Xbox Live offline, DirectStorage, audio) and translates its graphics:
- Console D3D12.X becomes PC Direct3D 12 (
crates/victory-gpu). The title's command lists are written down on its own threads and translated by twelve threads of ours. A submit thread joins the title's submissions, copies what the CPU changed in shared memory to the card, and brings back what shaders wrote. - RDNA 2 shaders become DXIL (
crates/victory-shader), ahead of time and into a versioned cache. - Load-time patches (
crates/victory-loader), each byte-checked against the title's code and switchable: larger constant and streaming rings, the descriptor writes reported to us, the frame-rate setting, the settings menu. - Runtime services (
crates/victory-hle): memory and page mapping, DirectStorage, audio DSP, input, saves. - The Xbox GDK headers installed locally were used as the reference for the console's API. Every constant, structure and function slot was compared against it, and the results are recorded in docs/xbox-api-notes.md. Nothing from the GDK is in this repository.
Documentation
| File | About |
|---|---|
| docs/architecture.md | How the crates fit together |
| docs/streaming-paths.md | The two streaming paths |
| docs/xbox-api-notes.md | The GDK audits; the soft page table's invariant; residency |
| docs/replay.md | Recording and replaying a frame |
| docs/card-time.md | Where the GPU's time goes |
| docs/fork-ray-tracing.md, docs/ray-tracing-cost.md | Ray tracing and the lighting stand-in |
| docs/title-patch-candidates.md | Title-side patches: done, measured, candidates |
| docs/title-menus.md | The title's menus and settings |
| docs/shader-status.md | Shader translation census |
| docs/findings.md | What was learned on the RX 7900 XTX fork this one came from |
| docs/README-fxceless.md | Upstream commands and debugging switches |
| docs/asset-policy.md | What may and may not be in the repository |
Repacks and third-party distributions
This project does not collaborate with, endorse or support groups that repackage it with proprietary code, assets, keys or cracks. A package that bundles any of those is not this project, and problems caused by one are out of scope. Do not ask for, link to or distribute such packages here.
If you share a build, share this repository's source and let each user supply their own copy. Do not put proprietary files in a release archive.
Credits
This is a tree of other people's work with more on top. The history is kept, and commits taken from elsewhere name the commit and its author.
- VIctory by Marvisak and its contributors: the loader, the runtime services, the Direct3D 12 back end and the shader recompiler.
- fxceless/victory-fork: the fork this line started from, and the people whose pull requests it carries.
- VIctory on an RX 7900 XTX: the porting approach, renderer patches and much of the submit pipeline this fork builds on.
- DexNom/VIctory: ray tracing fixes, cube gradients, sparse textures, the title profile and the PC FidelityFX bridge.
- Belobug/VIctory-Belobug-AMD: the ambient light idea, pipeline workers, and work by romainhedouin.
- FQY55kai/ZJOU-VICTORY.
- myokex/victory-amd: the guard over every view of a page (with Spexivus, joroyt and tightfall), and Joshua Odom's reads into title memory.
- Geckomacabre and cxy0072019-sketch: the texture read-back.
- TrustNo1/Darner: NVIDIA Wave32
SafeSingleWavecompute widening, water volumetric tile rewrite, GPU-read-only UAV clipping, non-coherent/write-combined write-back skipping, and BCPack decoder optimizations adapted underVICTORY_NVIDIA. - XCL (GPL-2.0-only) was read for how the same title behaves under another layer; no code of it is here.
- This fork's changes were made with Claude Code.
License
GPL-3.0-or-later, as VIctory. See LICENSE; the one file that is not covered is named in docs/asset-policy.md.