VICTORY_SOFT_VIEWS=1 (pool: the title's XMemMapPhysicalPages views alone; copies: those of CopyPageMappingsBatchX alone): a view is noted in the runtime's books and told to the GPU side as mapped, its addresses are one placeholder of their own, and the host maps nothing. Each view of the host's was a MapViewOfFile3 (45 us) and later an UnmapViewOfFile2 (93 us), both behind a lock of the kernel's that the guards' protection changes take too: 445,503 maps (20.1 s) and 349,175 unmaps (32.6 s) in 143 s of run stream2, 359,969 mapping calls 23.8 s, 3,294 page-mapping copies 33.7 s, one of them 467 ms of a 608 ms frame (timeline tl.120). Who gets the bytes of such a view, and how: - DirectStorage writes pages by number through the section's own view, and page-mapping copies read the pool from the books: as before. - The GPU side's reads of title memory (host::read, read_sparse) take them from the pages through the section's view (xmem::soft_read); a texture with such views is read through a copy, not in place; texture::committed takes such views for committed. - The guards keep such a view in their books (watch::protect_here, protect_alias): no VirtualProtect, no question to the host. A write the runtime tells of, or one through another view of the page, opens it as before. - Any touch of the memory itself (the title's CPU, a direct read of ours) faults; the GPU side's handler has the runtime map the view and the access is made again; the guards then open it and every other view of its page (title_memory_made_real). Our writes through the kernel, announced kernel writes, and the title's XMemVirtualQuery, XMemVirtualAlloc, VirtualFree and (with the switch) VirtualQuery and VirtualProtect ask first. Why VICTORY_LAZY_VIEWS=1 ran at 2 fps (run xw-lazy, 2.4 to 3.4 GB of copies a frame): a view guarded together with a lazy view of the same page was never clean, because the host refuses to protect a placeholder (protect_alias), so it was copied again at every asking; and every guarded range made its lazy views real. Both are what the books replace here. Also for both switches: a view is known as lazy before the GPU side is told of it (a refresh in between noted the block absent), and its pages are committed when it is noted (the GPU side writes them through its own view of the section). Counted: the streaming log's M line gets twelve more fields with either switch (noted, let go untouched, made real; noted by mapping calls, by copies; made real by a fault of the title's code, of other code, asked for by the GPU side, by a call of the title's; reads served from the pages, their KiB; such views now), and with VICTORY_SOFT_VIEWS the log has a line of the same every 10 s, with the last faulting address and code. Tests: xmem and host views_in_the_books_alone_are_read_from_their_pages, watch a_view_in_the_books_alone_is_guarded_there. Not run in the game yet. Co-Authored-By: Claude Opus 5.5 <[email protected]>
VIctory on an RX 7900 XTX
Run the codec_d Windows build
Download and extract the Windows x64 ZIP from the private releases. Open PowerShell in the extracted folder and point the launcher at your own complete Xbox dump.
$env:VICTORY_GAME_DIR = 'D:\Games\MyDump'
.\Play-VIctory.cmd pareto-residency
The launcher selects Series S and the RTX-tested residency settings. It builds its shader cache locally under %LOCALAPPDATA%\VIctory\cache-pareto. Set VICTORY_CACHE_DIR to reuse an existing cache outside the checkout. Windows x64, an AVX2 CPU, and a Direct3D 12 GPU with shader model 6.6 and mesh shader support are required.
To build from this checkout, install the pinned Rust toolchain and the MSVC C++ build tools with a Windows SDK, then run cargo build --release --locked -p victory. The same launcher finds target\release\victory.exe. The sections below describe the upstream AMD fork and its separate launcher.
A fork of VIctory, a compatibility layer that runs an Xbox Series title natively on Windows from files the user supplies. This one is about speed on AMD RDNA 3: the world at 30 frames a second on one PC, without giving up the picture. It is not there yet.
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.
Where it stands (2026-11-25)
Tested on one machine only: Windows 11, Intel i9-12900K, 64 GB RAM, Radeon RX 7900 XTX, 1440p, the Series X profile.
| Menus, videos, loading screens | 30 fps |
| Prologue, indoors | 50-75 ms a frame (13-20 fps) |
| First mission with the boat | 46-53 ms (19-22 fps) |
| Street chase with many cars and people | 100-165 ms (6-10 fps), single frames far longer |
| Outdoors on foot, the camp | 60-90 ms |
| Flying | 42-57 ms |
| Longest session so far | 41 minutes, no crash |
| Memory | 40-46 GB of private memory: 64 GB of RAM recommended |
It started at 280 ms a frame in the same scenes two days earlier.
What is known to be wrong:
- Trees, plants and far buildings flicker outdoors in some places.
- Rooms with little direct light are too dark without
-RayTracing. - Textures of what just came into view appear late while the title streams.
- The first run with a new driver or a new build stutters while the driver makes
pipelines (
victory warmmakes them ahead). - Recording a frame in the world makes the title's own watchdog end it.
How to run it
You need Windows 10/11 x64, a CPU with AVX2, a Direct3D 12 GPU with shader model 6.6 and mesh shaders, Rust (the toolchain is pinned), the MSVC build tools, and your own dump of the title.
git clone https://github.com/avatarmanz/VIctory-7900XTX
cd VIctory-7900XTX
copy victory.example.toml victory.toml # then set your paths, outside this folder
cargo build --locked --profile diag -p victory --features diagnostics
scripts\play.ps1 -Exe <path of your copy's executable>
scripts\play.ps1 -Safe leaves out the newest, faster ways; try it first when
something is wrong. -RayTracing turns the title's ray-traced indirect light on.
Before the first run, ahead of time (both can be stopped and go on later):
target\diag\victory.exe shaders <the shader archives> # every shader translated, minutes
target\diag\victory.exe warm --used # pipelines earlier runs drew with, for a new driver or build
Commands, debugging switches and upstream's own description:
docs/README-fxceless.md. Every VICTORY_... switch is
described in a comment where it is read.
What is different here
In short; the reasons and the measurements are in docs/findings.md.
- List calls are written down, not carried out, on the title's threads
(
VICTORY_THIN): eight threads of ours translate them. - Submissions are prepared by a thread of ours and joined
(
VICTORY_ASYNC_SUBMIT,VICTORY_JOIN_PARTS), with what can be spread over threads spread: refreshes, compares (AVX2), descriptor records, landings. - What shaders wrote comes back beside the write guards, by the dwords that
changed, on a thread of its own (
VICTORY_RELAY,VICTORY_LAND). - Buffer fills that need bytes still on the card are done on the card
(
VICTORY_CARD_STEPS) instead of waiting for it. - The title's writes are caught more cheaply: one view opened at a fault, blocks that rest, places in the title's code that look before they write.
- Textures go up on a copy queue of their own and a slot shows one only after its upload ran, which also ended a device loss that came every 15 minutes or so.
- Boats float: textures that shaders write and the title's CPU reads go back to title memory (from fxceless and Geckomacabre, on by default here).
- Frame record and replay with per-pass times and shader variants compared turn by turn (docs/replay.md).
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 one started from, and the people whose pull requests it carries.
- DexNom/VIctory: ray tracing fixes, cube gradients, sparse textures.
- 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.
- 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.