local b0ba5faa56 Title memory by address: the bound on pages taken from faults as a switch (VICTORY_BVH_FAULTS_ALL), and what it leaves out in the log
With ray tracing the bound of 2,048 pages taken from faults in all is met in
the first minute (run play-1126-0921: at 63 s); from then on 130-500 pages a
frame that the walking programs touch have no copy for the rest of the run.
The ten-second line now says how many different pages faulted and how many a
frame the bounds left without a copy; the first three frames that leave some
log all of them. Unset, the bound is as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 14:23:00 -06:00
2026-11-23 01:15:26 +01:00
2026-11-23 01:15:26 +01:00
2026-11-23 01:15:26 +01:00
2026-11-23 01:15:26 +01:00
2026-11-23 01:15:26 +01:00
2026-11-23 01:15:26 +01:00
2026-11-23 01:15:26 +01:00

VIctory on an RX 7900 XTX

A fork of VIctory, a compatibility layer that runs an Xbox Series title natively on Windows from files the user supplies.

The goal

The Series X version at 4K output (drawn at 1440p) with ray tracing on, looking the way it does on the Xbox, on an AMD RX 7900 XTX first.

In this order:

  1. A correct picture. Textures and models reach full detail and stay there (no pop-in or pop-out, no flickering trees), and ray-traced lighting is right: not too dark, not too bright, no flicker.
  2. Then the frame rate: 30 fps or more with ray tracing on, then as high a frame rate and as low frame times as the PC allows.
  3. Then smaller PCs: 32 GB (later 16 GB) of RAM and smaller cards.

The way there is porting, not emulating: patching the title's renderer so it behaves the way a PC renderer does, rather than having the layer watch and copy the console's shared memory every frame. Shaders are translated ahead of time into a versioned store that is kept between builds. The Series S profile and ray tracing off stay available.

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-26)

Tested on one machine only: Windows 11, Intel i9-12900K, 64 GB RAM, Radeon RX 7900 XTX, renderer patches 1, 2, 5, 6 and 7 on. Runs of 270 s in a city street: standing still, then walking and turning the camera.

Version Standing Walking RAM
Series X, 4K drawn at 1440p, ray tracing on (the goal) 99 ms (10 fps) ~110 ms (9 fps) 45 GB
Series X, 4K drawn at 1440p, ray tracing off 49 ms (20 fps) ~62 ms (16 fps) 45 GB
Series X, 1080p output, ray tracing off 40 ms (25 fps) ~43 ms (23 fps) 42 GB
Series S, ray tracing off 43 ms (23 fps) ~64 ms (16 fps) 37 GB

Known problems with ray tracing on, being worked on now: lighting flickers and swings between too dark and too bright even when nothing moves; dark rooms and backgrounds; models and textures stay at their lowest detail for a long time while the title streams (worst in the intro); trees flicker.

Earlier measurements with ray tracing off:

City street, Series S profile, renderer patches 1, 2, 5, 6 and 7 on about 45 ms a frame (about 22 fps, 44.9 ms in run merge-5)
Same, patches 1, 2, 5 and 6 45.6 ms, p95 47 ms
Same, patches 1, 2 and 5 47.3 ms (about 21 fps), p95 49 ms
Series X profile, patches 1+2 about 53 ms (about 19 fps)
Same scene before the patches 57-75 ms (13-17 fps)
Shaders the title uses that translate all of them (25,790 of 25,985; the rest are unused geometry shaders)
Memory about 30 GB of private memory, 10.5 GB of VRAM: 64 GB of RAM recommended for now

It started at 280 ms a frame in the same scenes three days earlier. What sets the frame now is the one thread that submits the title's work to the card (about 40 ms); the card itself needs about 36 ms and now waits about 7 ms a frame with nothing queued.

Renderer patches (off by default while they are tested)

Switch What it does
VICTORY_PORT_CONSTANTS=1 The title's 174 MB constants heap is read by the card where the title writes it: no uploads, no fills
VICTORY_PORT_DESCRIPTORS=1 The title's descriptor-table stores are patched (byte-checked) to report the slots they write, instead of a scan of ~600,000 slots a frame
VICTORY_PORT_CBV=1 Translated shaders read constant buffers in place as raw bytes (~22,000 fills a frame to none; -4.7 ms)
VICTORY_PORT_GUARD=1 The write guards' lock is shared by faults and refreshes, with a claim per 64 KiB block; the submission's planning runs beside it (title threads' waits 29 ms to ~2 ms a frame; -2 ms)
VICTORY_PORT_JOURNAL=1 The heaps' records are asked for at the title's submit, and the journal's notes are split into 64 parts with locks of their own (the submit thread's waits ~5 ms + 1 ms to ~0.3 ms; -1 to -3 ms)

Other switches

Switch What it does
--console series-s The Series S profile: 1080p output, about 5 ms faster, a softer picture
VICTORY_OUTPUT=1920x1080 The title renders to that output size itself (Series X profile; about 16 ms less card time)
VICTORY_FRAME_INTERVAL_MS=16.667 Lets the title go above 30 fps (menus and videos reach 60; the game's clock stays right)
VICTORY_AMBIENT_SETTLE How fast light settles after walking indoors (on by default, 250,3; 0 turns it off)
VICTORY_TEXTURE_STORE=1 Converted textures kept between runs (about 8 ms a frame for now: off)

What is known to be wrong:

  • Trees, signs and far objects flicker in the distance in some places.
  • Lighting is too bright or too dark after walking indoors, until the title has run for a while; 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 of a new build stutters while the driver makes pipelines (victory warm makes 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.

On a hybrid-graphics PC, the runtime and offline pipeline checks prefer a high-performance adapter with Shader Model 6.6. The runtime logs its adapter name, PCI vendor and device IDs, and dedicated VRAM. Set VICTORY_D3D12_ADAPTER to a zero-based DXGI index or part of the adapter's name to select it explicitly. With the launcher, pass -More @{VICTORY_D3D12_ADAPTER='NVIDIA'}.

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.

Description
VIctory (Xbox Series compatibility layer) tuned for AMD RX 7900 XTX: faster preparing, texture read-back, findings. No game files.
Readme GPL-3.0 19 MiB
Languages
Rust 100%