Read-only copy of github.com/VGLALALA/ReVictory-RDNA3
  • Rust 98.7%
  • RenderScript 0.8%
  • PowerShell 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sting Zhang 9e02f5213f
Merge pull request #70 from Kal0s-design/port/single-launcher
launcher: one launcher at a time, a second start brings the first to the front (upstream 64f517d)
2026-12-05 17:31:54 -05:00
.cargo
.githooks
.github/workflows ci: remove the Claude issue workflow; Claude reviews pull requests only 2026-12-05 17:13:53 -05:00
apps/victory Merge pull request #70 from Kal0s-design/port/single-launcher 2026-12-05 17:31:54 -05:00
bin
crates Merge pull request #67 from Kal0s-design/port/window-haze 2026-12-05 17:29:16 -05:00
docs
scripts
tests/fixtures/hle-probe
xtask
.gitattributes
.gitignore
.victory-root
Cargo.lock prompts: draw PlayStation symbols in place of the Xbox button icons 2026-12-05 22:23:05 +01:00
Cargo.toml
CHANGELOG.md
LICENSE
README.md
README.zh-CN.md
rust-toolchain.toml
rustfmt.toml
THIRD_PARTY_NOTICES.md
victory.example.toml

ReVIctory for Radeon RX 7000

English | 简体中文

GitHub stars Discord QQ group

Community

Star history

Star History Chart

A version of ReVIctory tuned for AMD Radeon RX 7000 graphics cards (RDNA 3: RX 7600 up to RX 7900 XTX). It runs the Xbox Series version of the game on a Windows PC from your own copy of the game.

No game files are in this repository or its downloads. You need your own, legally obtained copy of the Xbox Series game, version 1.0.2.1, dumped by yourself from hardware you own, with its files readable on disk. Nothing here provides, links to or helps obtain game files, keys or decrypted data, and copies that were not obtained lawfully are not supported. This project is not affiliated with or endorsed by the game's developer, publisher or the console's maker; all trademarks belong to their owners. See Legal, asset policy and takedown requests.

What to expect

Measured on one PC: Radeon RX 7900 XTX, Ryzen 7 9800X3D, 32 GB RAM, Windows 11, 4K (3840×2160, AMD FSR 3.1 Balanced 2258×1270).

Verified Locked-Coordinate A/B Benchmark (Frame Gen OFF, Warmed Pipelines)

Measured 2026-12-04 (commits 7392721 and cd43b59) with scripts\bench.ps1. 2-run warmed averages at identical heavy-town coordinates (x=-2139.20, y=-5542.18, z=5.08, heading=8.8, locked noon clear weather, ~8,000–9,400 draws/frame, PipeMaking=0):

Metric Last-Gen ReVictory-RDNA3 (0dd5d54) Stock Upstream (74ff043) This Build (ReVictory-RDNA3) vs Last-Gen (0dd5d54) vs Upstream (74ff043)
DXIL Shader Cache (25,985 shaders) 935.63 MiB (loose) 765.99 MiB (packed) 763.65 MiB (packed) -172.0 MiB (-18.4%) -2.33 MiB (-0.30%)
Heavy Town Idle — Avg FPS 22.17 FPS 29.80 FPS 30.10 FPS +7.93 FPS (+35.8%) +0.30 FPS (+1.0%)
Heavy Town Idle — Frame Time 45.60 ms 34.70 ms 33.20 ms -12.40 ms (-27.2%) -1.50 ms (-4.3%)
Heavy Town Idle — CPU Prep 15.50 ms 10.40 ms 9.00 ms -6.50 ms (-41.9%) -1.40 ms (-13.5%)
Heavy Town Idle — Thin Stall 9.20 ms 4.60 ms 4.10 ms -5.10 ms (-55.4%) -0.50 ms (-10.9%)
Heavy Town Idle — Slot Lock Waits 20.05 ms ~0.0 ms ~0.0 ms -20.0 ms (-100%) ~0
67 mph Streaming Cruise — Avg FPS 19.93 FPS 23.40 FPS 23.95 FPS +4.02 FPS (+20.2%) +0.55 FPS (+2.4%)
67 mph Streaming Cruise — Frame Time 51.00 ms 45.55 ms 41.65 ms -9.35 ms (-18.3%) -3.90 ms (-8.6%)
67 mph Streaming Cruise — CPU Prep 21.60 ms 17.20 ms 15.00 ms -6.60 ms (-30.6%) -2.20 ms (-12.8%)
67 mph Streaming Cruise — Thin Stall 13.55 ms 8.55 ms 7.60 ms -5.95 ms (-43.9%) -0.95 ms (-11.1%)
67 mph Streaming Cruise — Slot Lock Waits 36.80 ms ~0.0 ms ~0.0 ms -36.8 ms (-100%) ~0
On-Screen with AMD FSR Frame Gen ON ~40–44 FPS ~47–60 FPS ~48–60+ FPS +8–16 FPS smoother -3.9 ms cleaner cruise

Full historical notes are in docs/my-pc/README.md. A slower RX 7000 card gives fewer frames; lower Upscaler to FSR Performance if yours struggles.

What is different in this version

Maintained by VGLALALA — built on ReVIctory v0.5.0 with original RDNA 3 (RX 7000) and Ryzen X3D (Zen 5 AVX-512 / BMI2) optimizations beyond upstream:

  • Original Reverse-Engineered AVX-512 Kernels (victory-recomp, 33 functions total):
    • NEW vic_SpatialSegmentCullAvx2 (+0x2987e60): reverse-engineered from game_scarlett_master.exe (twin sister of vic_SpatialRadiusCullAvx2, sharing the 8 KiB AVX2 compress LUT at +0x65f23a0) and recompiled to full 16-wide AVX-512 with hardware _mm512_mask_compressstoreu_* (zero LUT loads, zero VPERMPS, zero stores on culled chunks).
    • Upgraded vic_ClearBoundDescriptorSlots (+0x4da9ec0): upgraded from 256-bit AVX2 to 512-bit AVX-512 (vptestmq + bit-scan) scanning 64 bytes (8 pointers) per cycle with zero branches on empty cache lines.
    • Full upstream surgical recompilation (VICTORY_RECOMP=2: descriptor table fillers, constant ring, Heap 0/2 explicit GPU-only readback classification, draw vertex stream binding, sync/MPMC/hash/LOD/radius cull).
  • RDNA 3 Shader Compiler Optimizations (victory-shader + victory-dxil):
    • Fixed VICTORY_WAVE32_RELAX=1 for RDNA 3 (gfx1100): previously, enabling Wave32 relaxation on AMD GPUs accidentally entered NVIDIA's two-wave split-LDS emulation branch (injecting extra GroupMemoryBarrierWithGroupSync barriers and LDS exchange!). Now on native Wave64 GPUs (RDNA 2/3/4), it relaxes only zero-overhead intra-half shaders to Wave32 — unlocking RDNA 3 2× dual-issue VALU — while keeping cross-half/LDS shaders on native hardware Wave64.
    • New Exact DXIL Optimizer Passes (victory-dxil/src/bitcode/opt.rs): Sub(x,x)/Xor(x,x) -> 0, redundant shift-mask elimination ((x >> 16) & 0xFFFF -> x >> 16), shift & Xor/Sub reassociation, negated-guard select canonicalization (Select(Xor(c,1), t, f) -> Select(c, f, t)), v_cndmask compare collapse (Cmp(NE, Select(c,1,0), 0) -> c), generalized Bitcast(Select(c, Bitcast(f), const)) elimination, lossless FpTrunc(FpExt(h)) -> h, IMax/IMin/UMax + Saturate/FAbs constant folds, and bounded FpTrunc/FpExt finiteness proofs for VICTORY_LEGACY_MUL=data + VICTORY_NATIVE_FP16=1.
    • Ships with VICTORY_SHADER_OPT=255, VICTORY_NATIVE_FP16=1, VICTORY_FAST_MATH=1 (nsz|arcp), VICTORY_F32_DENORM=ftz, VICTORY_WAVE32_RELAX=1, and VICTORY_LEGACY_MUL=data enabled in Extra GPU optimizations.
  • Parallel CPU & Memory Upgrades:
    • PR #55 (VICTORY_BCPACK_FAST_BC7=1): BMI2 pext packed BC7 texture decoder (enabled by default in Extra GPU optimizations).
    • PR #51 (VICTORY_THIN_SPLIT=1) & VICTORY_LANE_CORE=1: included as opt-in switches for 12–16+ core CPUs (left off by default after locked A/B testing on an 8-core Ryzen 7 9800X3D showed they reduced ThinStallMs but increased game-thread CPU contention).
    • PR #48 (BAR windows stay under VRAM residency line — fixes vanishing textures), PR #41 (4 MiB root-view boundary fix — fixes black vehicle bodywork), and PR #50 (FSR Native AA 100% preset).
  • Benchmark tools: scripts\bench.ps1 (saved spots, automated idle + streaming-cruise runs, log summaries) and a Benchmark tools section in the F1 menu's Cheats tab.

Upscaling and frame generation on AMD cards are AMD FSR only (FSR 3.1 / FSR 4 and FSR frame generation). NVIDIA DLSS (through NVIDIA Streamline) is for NVIDIA RTX cards, as in upstream (docs/README-upstream.md). Earlier builds of this fork had an experimental "DLSS 5 on AMD" bridge over ZLUDA; it has been removed because it hurt frame times, and its VICTORY_DLSS5*, VICTORY_DLSS_SR* and VICTORY_DLSSG* switches no longer exist.

What you need

  • A Radeon RX 7000 card with a recent AMD Software: Adrenalin driver. Other cards may work, but this version is tuned and tested for RX 7000 only.
  • Windows 11 (Windows 10 needs Microsoft's newer Direct3D 12, see docs/README-upstream.md).
  • 32 GB of RAM or more.
  • About 15 GB free on drive C: for caches.
  • Your own copy of the game, dumped by you from your own console and copy (the folder that holds game_scarlett_master.exe). This project does not provide it.
  • Recommended: Smart Access Memory / Resizable BAR turned on in your PC's BIOS.

Setup, step by step

You do steps 1-4 once. It takes about an hour the first time, most of it waiting.

1. Make Windows' page file bigger (once)

The game needs about 30 GB of memory. With 32 GB of RAM, Windows also needs a large page file, or the game runs out of memory and stutters or crashes.

  1. Press the Windows key, type advanced system settings and open View advanced system settings.
  2. Under Performance, click Settings..., then the Advanced tab, then Change...
  3. Untick Automatically manage paging file size for all drives.
  4. Click drive C:, choose Custom size, type 32768 as the initial size and 49152 as the maximum.
  5. Click Set, then OK in every window, and restart the PC.

2. Download and unpack

  1. Go to the Releases page and download the newest .zip.
  2. Right-click the zip, choose Extract All..., and extract it anywhere.
  3. Copy victory.exe from the extracted folder into your game folder, next to game_scarlett_master.exe.

3. Prepare the shaders (once, and after each update of this version or of your graphics driver)

  1. Close your browser, Discord and other big programs.
  2. Double-click victory.exe in your game folder. The ReVIctory launcher opens.
  3. Click Translate and wait until it finishes (several minutes).
  4. Click Warm used and wait until it finishes.

4. Play once, then apply the RX 7000 draw distance

  1. Click Play. The first start is slow, and the picture can look broken for a minute while the graphics driver builds what it needs. That is normal.

  2. Once you are walking around in the game, quit the game and close the launcher.

  3. In the folder you extracted in step 2, click the address bar, type powershell and press Enter. In the blue window, type this and press Enter:

    powershell -ExecutionPolicy Bypass -File .\rx7000-settings.ps1
    

    It says "RX 7000 settings written". (To undo it later, run the same line with -Undo at the end.)

5. Play

Double-click victory.exe and press Play. That's it. Next time, just this step.

FSR 3, FSR 4 Lite or FSR 4?

Measured on the RX 7900 XTX, standing at the same spot (about 5,400 draws a frame), FSR Balanced with frame generation:

Upscaler Frames rendered Frame time Graphics card busy
FSR 3 (3.1, the default) 31.7 fps 31.5 ms 96 %
FSR 4 Lite (a third-party beta, not included) 31.3 fps 31.9 ms 97 %
FSR 4 (AMD's own) 28.3 fps 35.3 ms 99 %
  • FSR 4 costs about 11 % of your frames on RX 7000: these cards have no FP8 units, which AMD's FSR 4 is built around. It looks better than FSR 3, but it is slower.
  • FSR 4 Lite looks like FSR 4 and costs about what FSR 3 does. It is a beta by someone else (fsr4-shader-performance-overrides, file fsr4.1.2-lossy-beta1), unsigned, and its picture is not exactly AMD's (thin lines can look dimmer while the camera turns, fast cars can leave ghosts). To use it: make a folder named fidelityfx in your game folder, copy into it the files of %LOCALAPPDATA%\revictory\fidelityfx-2.4.0, replace amd_fidelityfx_upscaler_dx12.dll with the beta's files, and choose FSR version: FSR 4 in the launcher. Delete the folder to go back.
  • FSR 3 is the default because it is fast and needs nothing extra.

Benchmarking

scripts\bench.ps1 runs the game through scripts\play.ps1 (same settings) and measures fixed places, so runs can be compared:

# Walk or drive to heavy places and press F9 to save each one
.\scripts\bench.ps1 -Exe C:\path\to\your\title.exe -Bookmark
# Measure every saved place: standing still, then a 67 mph streaming cruise; prints a table
.\scripts\bench.ps1 -Exe C:\path\to\your\title.exe
# Summarise an existing log without starting the game
.\scripts\bench.ps1 -ParseLog

Saved places are in %LOCALAPPDATA%\ReVIctory\bench_bookmarks.toml ([[spot]] entries; -Config <file> uses another file). Other options: -Build diag|release, -Recomp, -Gpu <name or index> / -ListGpus, -GpuTiming, -Safe, -RayTracing, -More @{ ... }. The switches behind it are VICTORY_BENCH=<file> and VICTORY_BENCH_COORDS=1.

The F1 menu's Cheats tab (turn it on in the F1 menu under Overlay → Interface & Extra Tabs, or VICTORY_CHEATS=1) has a Benchmark tools section for the same job by hand: the live position with Save spot, the saved spots with Go, typed teleport, speed and fly multipliers, an "AFK test mode" (no damage, never wanted), and Set cash / Reset test state. Every game function it calls is byte-checked against this game version first; a check that fails turns that tool off.

In the game

Key Does
F1 ReVIctory's menu: frame generation, frame limit, FSR, lighting, cheats and benchmark tools, and more
F3 The numbers panel: frames per second, how busy the graphics card is
F6 / F7 Darker / brighter indirect light (the stand-in for ray-traced lighting)
F9 Resets the lighting adjustments; with -Bookmark (VICTORY_BENCH_COORDS=1) it also saves the current place as a benchmark spot

The launcher's settings, explained

The launcher starts from upstream's defaults on a first start; the "RX 7000" column is what was measured best on the RX 7900 XTX above. Change them on the launcher's settings pages.

Setting Default RX 7000 setting Why
Upscaler Game's own upscaler FSR Balanced (1270p to 4K) the graphics card is what limits frames; FSR Performance if yours struggles
FSR version FSR 4 FSR 3 RX 7000 has no FP8 units for FSR 4; AMD's FSR 4 runs, but costs more
Frame generation Off On about twice the frames on screen
Frame cap 30 fps 60 fps
Console Xbox Series X Xbox Series X
Ray-traced lighting Off Off halves the frame rate
Fast renderer, Larger streaming limits, Software page table, Extra GPU optimizations On On
Worker threads Auto Auto never Max on an 8-core processor: it stutters
Launch overrides (empty) (empty) VICTORY_CARD_AWAKE is now off unless set to 1, so run 10's VICTORY_CARD_AWAKE=0 is no longer needed

If something goes wrong

Problem Fix
Missing bodies, spiky shapes, "Pipelines ... compiling" on F3 Wait a minute, or close the game and click Warm used in the launcher
Drops to 5-10 fps for many seconds Worker threads back to Auto
The game closes or stutters badly after a while Check the page file (step 1); close other big programs
Too bright or too reflective indoors F6, or the Lighting page of F1; or add ;VICTORY_REFLECT_STANDIN=0 to Launch overrides
Everything wrong after changing settings Click RESTORE DEFAULTS in the launcher
Something else Click Logs in the launcher and look at launcher-output.txt

Building it yourself (advanced)

Install Rust and Visual Studio Build Tools (Desktop development with C++), then in this folder:

cargo build --locked --release -p victory

The result is target\release\victory.exe. Everything else about the project (scripts, switches, how it works, ray tracing, tools) is in the original README, docs/README-upstream.md.

Credits

This version builds on ReVIctory by ReTerryDavis, which builds on VIctory by Marvisak and the forks and people its README credits (docs/README-upstream.md). The RX 7000 tuning and benchmark tools are maintained by VGLALALA; the title watchdog switch is from Leonida Continued (GPL-3.0). Code ported from other projects, and the third-party files the build carries, are listed with their licences in THIRD_PARTY_NOTICES.md.

  • Bring your own game. You must own the game and dump it yourself from your own console. No game files (executables, archives, shaders, textures, audio, text), keys, decrypted data or screenshots of the game belong in this repository or its release downloads, and none will be provided on request. Requests or links for game files are closed without reply.
  • What the repository may hold is set out in docs/asset-policy.md and enforced by cargo xtask policy (run by the pre-commit hook and CI).
  • Third-party material (AMD FidelityFX and NVIDIA Streamline/DLSS runtime files, format tables, ported code) stays under its own terms: THIRD_PARTY_NOTICES.md.
  • Takedown and copyright concerns. If you hold rights in something in this repository and believe it should not be here, open an issue at github.com/VGLALALA/ReVictory-RDNA3/issues titled "Copyright / takedown request", naming the file(s) and commit(s). It will be looked at promptly and, where justified, removed, including from history. You can also use GitHub's own DMCA process.

License

GPL-3.0-or-later, as VIctory. See LICENSE. Bundled third-party files and code ported from other projects keep their own licences, listed in THIRD_PARTY_NOTICES.md; the GPL does not cover the AMD and NVIDIA binaries in bin/ or the BCPack tables.