VIctory xmem
VIctory on Linux with an AMD card. A patched RADV maps the title's memory straight into the GPU, the way the console shares it, so nothing is copied back and forth every frame.
No game files in here. Bring your own dump.
Status (2026-11-27)
About 44 fps at 1080p (Series X profile, ray tracing off) on the one machine tested: Ryzen 9 5950X, 32 GB, RX 9070 XT, Arch, Wine 11.22.
Run
./setup.sh
echo 'GAME=/path/to/your/dump' > run.conf
./run.sh shaders
./run.sh play
setup.sh fetches and builds Mesa, vkd3d-proton, a wineserver for your Wine,
the Windows SDK and VIctory itself. It names any tool it misses.
Saves, caches and logs stay in local/.
The first play prepares every pipeline from your dump before the game opens:
several minutes and about 6 GiB of cache. If you interrupt it, run play again
and it resumes. With VICTORY_WARM=0 the game opens at once
instead and each pipeline is made the first time it is drawn: missing
geometry and stutter at first, less each run as the cache fills.
Settings go after the mode, or in run.conf:
| Setting | Effect |
|---|---|
CONSOLE=series-s |
Series S profile |
VICTORY_OUTPUT=2560x1440 |
Output size: 1280x720, 1664x936, 1920x1080, 2560x1440 or 3840x2160. 2560x1440 by default; with FSR 4, 3840x2160 unless set |
VICTORY_FULLSCREEN=1 |
Borderless full screen |
VICTORY_FULLSCREEN_RES=2560x1440 |
Its size, if not the screen's |
VICTORY_BVH_BUILDER=0 |
No ray tracing |
VICTORY_BVH_HARDWARE=0 |
Ray tracing without the card's own node test |
VICTORY_PAGES=0 |
Title memory stays where it starts, RAM or card |
VICTORY_PAGE_PASS_MS, VICTORY_PAGE_MOVE_MB |
Paging interval and pass budget, default 400 ms and 32 MiB |
VICTORY_PAGE_ADAPTIVE=1 |
Adjust the discretionary page budget using migration time and render-thread present intervals |
VICTORY_PAGE_SAMPLE=1, VICTORY_LOOP_PROBE=<shader hash prefix> |
Sample pages visited by a selected BVH traversal shader in a diagnostics build |
VICTORY_POOL_MOVE=1 |
Drain occupied texture blocks under VRAM pressure |
VICTORY_CARD_PULL=0 |
The CPU reads title memory on the card itself (about 100 MB/s) instead of by the card's copies |
VICTORY_PAGES_SEEN=1 |
Also move to the card title pages it was only shown, never read hot (off: they filled VRAM at 8 MB/s) |
KEEP_FREE=4096 |
MiB of RAM left to the rest of the system (default 8192); the game gets what is available less this, and stutters under 12 GiB |
VICTORY_FSR_4K=performance |
FSR 4 (quality, balanced or performance) to VICTORY_OUTPUT, 4K unless set, after ./setup.sh fsr4 |
VICTORY_FIDELITYFX_FRAMEGEN=1 |
AMD frame generation (FSR 3.1) on top of VICTORY_FSR_4K. An interface the title presents on a plane of its own stays sharp; otherwise it is interpolated with the scene |
VICTORY_UI_PLANE=3840x2160 |
Separate 4K HUD plane, including with host FSR |
VICTORY_FSR_HOST=1 |
FSR 4 for the title's own upscaling at its own sizes, any profile (Series S: 720p to 1080p), after ./setup.sh fsr4 |
VICTORY_PRESENT_TIMING=1 |
Log time spent in Present, successful render presents, SDK-generated frames and DXGI display timestamps where available |
VICTORY_SKIP_BINK=1 |
Skip the title's movies that play once (logos, intro); all skips the looping menu backgrounds too (they stay dark). Off by default |
VICTORY_WARM=0 |
Open the game without preparing pipelines first; they are made at first use |
VICTORY_PLACED_COPIED=1 |
Share GPU-written mips with compatible placed views, including views made after a copy. Off by default |
VICTORY_KEEP_GPU_WRITTEN=1 |
Preserve individual GPU-written mips through deferred title uploads. Enabled by VICTORY_PLACED_COPIED=1 unless explicitly set to 0 |
MUTE=1 |
No sound |
The residency log includes the duration of the last pass and the number of
pages demoted after a CPU access within two seconds of promotion. Use
VICTORY_RT_STAMPS=1 in a diagnostics build to compare GPU dispatch timings
between runs. The BVH page samples locate shader accesses and report residency
at readback time. Compare runs with fixed paging settings to measure benefit.
Present timing reports successful render-thread calls and the SDK's generated count for the current generator. DXGI timestamps are optional and one sample can cover several display presents. Compare at the same save, output size and refresh rate. At 60 Hz with one generated frame per rendered frame, the target render interval is about 33.3 ms.
With VICTORY_NATIVE_GRAPHICS=1, native 0x1c8 pipelines cache variants by
bound target formats, depth, sample count and topology. The NGG translator
accepts fixed, directly drawn procedural triangles with a three-vertex,
one-primitive allocation and literal connectivity (0, 1, 2).
To compare raw SRV load reuse across branches, use VICTORY_SHADER_OPT=63
for the default passes and VICTORY_SHADER_OPT=191 to add the experimental
pass. The shader cache keys include this setting. Compare the same capture
with warm pipelines and check both the resulting image and GPU frame time.
Compare an Xbox frame with a Victory recording
The diagnostics build can compare the images in a completed VICTORY_RECORD
capture with SDR PNGs from the console. Match the game build, scene, camera,
output dimensions, SDR color space and frame order before comparing. For one
present, pass one opaque 8-bit RGB PNG. For a sequence captured with
VICTORY_RECORD_FRAMES=N, pass a directory containing frame-1.png through
frame-N.png, one Xbox reference per recorded present.
victory replay compare-xbox capture-1 xbox-frames --out comparison
Open comparison/index.html to see the Xbox reference, recorded Victory
image and difference mask for each present. By default any RGB difference
counts. --threshold 3 highlights a pixel when any channel differs by more
than three 8-bit values. The report directory must be new.
The replay traces up to six regional peak differences per frame. Click an
image for coordinates, or select exact output pixels on a new run with
--pixel 640,360 --pixel 900,500. The table shows the last observed change
at each probe. The command log records list and command indices, pipeline
names where available, and raw texel values before and after each change.
These probes observe the presented texture. A final copy can lead back to an
intermediate texture through the ordinary replay --pixel tool. Writes of
identical values have no observable change. Each traced present reports
whether its replay reproduced the recorded RGB image. Image comparison also
works when GPU replay is unavailable. The comparison uses the capture and
reference PNGs independently of a game installation.
Patches
patches/ holds what changes in Mesa, vkd3d-proton and Wine
(<name>.<submodule>.patch: in a submodule of it). Edit under
deps/<name>, rebuild with ./setup.sh <name>, save with
tools/patch.sh <name>.
Credits
VIctory by Marvisak and contributors, through avatarmanz, fxceless, DexNom, Belobug, FQY55kai, myokex, triippywhale, trustno1-coder, PastiiJay, Geckomacabre, cxy0072019-sketch and gassy for being a larper
License
GPL-3.0-or-later. See LICENSE.