Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

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)

The measurements below come from one Windows 11 PC with an Intel i9-12900K, 64 GB of system RAM and a Radeon RX 7900 XTX (24 GB of dedicated video memory). Ray tracing was off for these runs.

City street, Series S profile, renderer patches 1, 2, 5, 6 and 7 onabout 45 ms a frame (about 22 fps, 44.9 ms in run merge-5)
Same, patches 1, 2, 5 and 645.6 ms, p95 47 ms
Same, patches 1, 2 and 547.3 ms (about 21 fps), p95 49 ms
Series X profile, patches 1+2about 53 ms (about 19 fps)
Same scene before the patches57-75 ms (13-17 fps)
Shaders the title uses that translateall of them (25,790 of 25,985; the rest are unused geometry shaders)
Memoryabout 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.

Reports from other GPUs

GPU and buildWhat the contributor observed
Radeon RX 9060 XT (16 GB), cd8dfc0 with local changesIn the same Series X interior at 1080p, the game averaged 19.8 fps with ray tracing off and 15.6 fps with it on. Indirect lighting showed white patches and dark smears. Run settings and results
GeForce RTX 3090 (24 GB), a-publier@cd8dfc0The prison rendered. Two warm Series S runs averaged 545 and 532 ms per frame. The contributor reported 10.0 and 10.2 GB of VRAM in those runs. Run settings and results
Intel Arc B580 (12 GB), revision unreportedStartup and initial menu navigation worked. Further menu interaction slowed to about 0.7 fps before D3D12 device removal. Crash report

The 10.5 GB of VRAM in the RX 7900 XTX table is the usage reported for that run. Memory use and frame time depend on the scene and settings. The ray-tracing notes describe which lighting paths run and the remaining rendering issues.

Renderer patches (off by default while they are tested)

SwitchWhat it does
VICTORY_PORT_CONSTANTS=1The title's 174 MB constants heap is read by the card where the title writes it: no uploads, no fills
VICTORY_PORT_DESCRIPTORS=1The 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=1Translated shaders read constant buffers in place as raw bytes (~22,000 fills a frame to none; -4.7 ms)
VICTORY_PORT_GUARD=1The 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=1The 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

SwitchWhat it does
--console series-sThe Series S profile: 1080p output, about 5 ms faster, a softer picture
VICTORY_OUTPUT=1920x1080The title renders to that output size itself (Series X profile; about 16 ms less card time)
VICTORY_FRAME_INTERVAL_MS=16.667Lets the title go above 30 fps (menus and videos reach 60; the game's clock stays right)
VICTORY_AMBIENT_SETTLEHow fast light settles after walking indoors (on by default, 250,3; 0 turns it off)
VICTORY_TEXTURE_STORE=1Converted textures kept between runs (about 8 ms a frame for now: off)
VICTORY_KBM_GTA=1Optional GTA V PC-style keyboard and mouse mapping on the stand-in pad: F2 or ` (~) toggles mouse-look and auto-hides the cursor while locked (Esc/P/focus loss unlocks and restores it), LMB/RMB = RT/LT, MMB/C = R3, Shift = A, Space = X, R = B, F = Y, Tab = LB, Q = RB, Ctrl = L3, E = D-pad Right, V = View. Tune with VICTORY_MOUSE_SENS (default 1.0) and VICTORY_MOUSE_INVERT_Y=1 (or pass via scripts\play.ps1 -More @{VICTORY_KBM_GTA='1'})

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>

The launcher requests light device removal diagnostics (DRED) by default with -Build diag. DRED requires --features diagnostics. For a release binary built with that feature, request DRED with -Build release -More @{VICTORY_D3D12_DRED='light'}.

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.

For PC FSR 4.1.2, set [paths].fidelityfx_dir in victory.toml or VICTORY_FIDELITYFX_DIR to the folder containing AMD's signed amd_fidelityfx_upscaler_dx12.dll. Use the DirectX 12 upscaler in Kits/FidelityFX/signedbin. AMD FSR SDK 2.4.0

scripts\play.ps1 -Exe <path> -Fsr4K quality selects 2560×1440 input for the retail 1.0.2.1 Series X 4K SDR profile. balanced selects 2258×1270 and performance selects 1920×1080. All three output 3840×2160. With victory run directly, set VICTORY_FSR_4K to the preset name. AMD's SDK offers FSR 4.1.2 for some cards only. Where it does not, the newest FSR 3.1 it offers is used in its place and the log says so; its picture differs from FSR 4's. Where it offers neither, the run stops before the title starts and names the versions that were offered. The log reports the provider at context creation and the actual input and output sizes at the first successful temporal dispatch. The title profile and PC FidelityFX bridge were ported from DexNom/VIctory.

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.

关于 About

No description, website, or topics provided.

语言 Languages

Rust100.0%
PowerShell0.0%
Shell0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
839
Total Commits
峰值: 839次/周
Less
More

核心贡献者 Contributors