Read-only copy of github.com/avatarmanz/VIctory-7900XTX · VIctory (Xbox Series compatibility layer) tuned for AMD RX 7900 XTX: faster preparing, texture read-back, findings. No game files.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-26 02:34:22 -06:00
.cargo Initial commit 2026-11-23 01:15:26 +01:00
.githooks Initial commit 2026-11-23 01:15:26 +01:00
.github/workflows Run default and diagnostics tests independently of Clippy 2026-11-26 13:32:36 +08:00
apps/victory Merge port/fps: frame rate unlock (VICTORY_FRAME_INTERVAL_MS, off by default): our pacing and the title's three reads of its 30 fps target, byte-checked; game clock stays 1.00x (reports/FPS-UNLOCK.md) 2026-11-26 02:34:22 -06:00
crates Merge port/fps: frame rate unlock (VICTORY_FRAME_INTERVAL_MS, off by default): our pacing and the title's three reads of its 30 fps target, byte-checked; game clock stays 1.00x (reports/FPS-UNLOCK.md) 2026-11-26 02:34:22 -06:00
docs Merge PR #90: Docs: switches as the code reads them, and an xtask check for dead names (#49) 2026-11-26 01:35:17 -06:00
scripts Merge PR #78: Drop the invalid play.ps1 skip default and fail on missing executables 2026-11-26 01:27:20 -06:00
tests/fixtures/hle-probe Run Grand Theft Auto VI from first boot into the world 2026-11-23 23:10:01 +01:00
xtask The switches the documents name are the ones the code reads, with their defaults; xtask checks every VICTORY_* name in the Markdown is read 2026-11-26 08:16:52 +05:30
.gitattributes Initial commit 2026-11-23 01:15:26 +01:00
.gitignore Run Grand Theft Auto VI from first boot into the world 2026-11-23 23:10:01 +01:00
.victory-root Initial commit 2026-11-23 01:15:26 +01:00
Cargo.lock Merge PR #117: Report file scan outcomes in shader-info and shaders 2026-11-26 01:35:15 -06:00
Cargo.toml Take the test/fx-prs branch of asdaasdsaddf's fork (as one commit) 2026-11-24 19:00:31 -05:00
LICENSE Initial commit 2026-11-23 01:15:26 +01:00
README.md Merge PR #147: Our threads prefer the big-cache cores on dual-CCD X3D Ryzens (VICTORY_CACHE_CORES) 2026-11-26 01:47:07 -06:00
rust-toolchain.toml Initial commit 2026-11-23 01:15:26 +01:00
rustfmt.toml Initial commit 2026-11-23 01:15:26 +01:00
victory.example.toml The game is no longer named in the tree 2026-11-24 15:45:05 -05: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

A stable 30 fps or more without ray tracing, then as high a frame rate and as low frame times as the PC allows, on an AMD RX 7900 XTX first and on PCs with 32 GB (later 16 GB) of RAM.

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. Ray tracing stays optional and off by default. The picture comes after the frame rate: texture pop-in and lighting that is too bright or too dark when walking indoors are next in line.

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, the Series X profile, ray tracing off.

City street, renderer patches 1+2 on about 53 ms a frame (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 35 GB of private memory: 64 GB of RAM recommended for now

It started at 280 ms a frame in the same scenes three days earlier.

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

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.