VIctory xmem for RDNA 2 & 3
This runs VIctory on Linux with an AMD graphics card. VIctory lets a PC run a game made for the Xbox Series consoles. This fork changes the graphics driver so that the game's memory is shared with the card the way the console shares it, which saves copying it back and forth every frame.
It is a fork of VIctory-xmem. That project is developed on an RX 9070 XT (the RDNA 4 generation). This one is developed and measured on an RX 7900 XT (RDNA 3), so the two differ on purpose. It is also confirmed to work great on a 6900XT (RDNA 2). Changes from there and from other forks are picked in batches, each after a measured run on this card. See what changed from upstream.
There are no game files here. You need your own dump of the game.
What to expect
It is playable and it is not finished. On the one machine it is tested on, the open world runs at about 30 fps at 2560x1440. Textures arrive on time, and there are still short hitches while driving. Details are under How it runs here.
It has only been tested on that one machine. If you have a different AMD card, a report from you is worth a lot, whether it works or not. See Helping out.
What you need
| Graphics card | An AMD card. Tested only on an RX 7900 XT with 20 GB. Other RX 7000 cards may work and are untested. For an RX 9000 card, upstream is the better starting point. This fork does not run on NVIDIA or Intel cards: the driver patch is for AMD's RADV driver. |
| Resizable BAR | On, in the PC's firmware settings (often called "Resizable BAR" or "Above 4G decoding"). Without it the game's memory stays in RAM, which is slower. |
| RAM | 32 GB is what it is tested with. With 16 GB it will probably not have enough; that has not been tried here. |
| Disk | About 20 GB free: 9 GB for what gets built, and 8 GB for prepared shaders, on top of the game dump. |
| Linux | Any recent distribution. Tested on Bazzite 45 with kernel 7.3.5. |
| Steam with Proton | GE-Proton or Proton Experimental installed through Steam. The scripts find it by themselves. Tested with GE-Proton11-16. If no Proton is found, the system's Wine is used; that is untested here. |
| The game | Your own dump, in a folder on your disk. |
You do not need to install a special driver system-wide. The patched driver is built into this folder and only used for this game.
Getting it running
All of this happens in a terminal. Every command is run from inside the folder you download in the first step.
1. Get the code
git clone https://github.com/Tim-van-Oudheusden/VIctory-xmem-RDNA3.git
cd VIctory-xmem-RDNA3
2. Build everything
./setup.sh
This downloads and builds the graphics driver (Mesa), the Direct3D 12 layer (vkd3d-proton), a Windows toolkit and VIctory itself. Expect it to take a while the first time.
It will most likely stop early and print a line starting with install first:
followed by names of programs or libraries. That is normal. Install what it
lists with your distribution's package manager and run ./setup.sh again.
Repeat until it runs through. For the driver's own libraries it also prints
the package names for Fedora, Ubuntu and Arch.
On a distribution where you cannot install packages the usual way (Bazzite,
Silverblue, SteamOS), do the build inside a
distrobox container. Create one, install the listed
packages in it, and run ./setup.sh from inside it. Playing still happens
outside the container.
3. Tell it where the game is
cp run.conf.example run.conf
Open run.conf in a text editor and change the GAME= line to the folder of
your dump. The other lines are the test machine's settings, with FSR set to
performance (the measured figures below use quality). Change
VICTORY_OUTPUT and VICTORY_FULLSCREEN_RES to your screen's size.
If you want FSR 4 upscaling, which the example settings use, run this once:
./setup.sh fsr4
Or remove the VICTORY_FSR line from run.conf to play without it.
4. Translate the game's shaders and warm it up (should only be needed once)
./run.sh shaders
./run.sh warm
5. Play
./run.sh play
The first start does not open the game right away. It first prepares every
graphics pipeline from your dump: about 100,000 of them, which took ten
minutes and 8 GB of disk on the test machine. If you stop it, the next
./run.sh play continues where it left off. Later starts skip this step.
Where fewer than 20,000 pipelines are known at a start, the game opens once
to learn them: it presses Enter by itself, says so in a box at the bottom
left, closes, prepares them and opens again. Leave it alone until then.
Saves, caches and logs all stay in the local/ folder inside this one.
Desktop launcher (Xmemlauncher)
If you prefer a desktop UI over terminal commands, install Xmemlauncher (native GNOME / Libadwaita Flatpak, io.github.tim_van_oudheusden.Xmemlauncher):
./install-launcher.sh
Works for both fresh clones and existing checkouts after git pull. It downloads the prebuilt .flatpak bundle (~87 KB) from the xmemlauncher-latest release, verifies its SHA-256 checksum, installs the user Flatpak, records your checkout path in ~/.config/xmemlauncher/launcher.json, and never overwrites or alters an existing run.conf, saves, or caches. Launch it as Xmemlauncher from your desktop app menu, or run:
flatpak run --user io.github.tim_van_oudheusden.Xmemlauncher
Prerequisites: flatpak only (no flatpak-builder and no GNOME SDK — Flatpak fetches the org.gnome.Platform//51 runtime from Flathub automatically if needed; falls back to building from source if offline and flatpak-builder is present). Useful flags: --bundle <file>, --from-source, --check, --repo <path>, and --uninstall.
What Xmemlauncher does (delegating to ./run.sh, ./build.sh, and ./setup.sh in your checkout without bundling drivers):
- Play, Stop & Live Logs: start the game (
./run.sh play, with an optional stale-build fallback), stop it cleanly viasystemctl --user, detect runs started outside the launcher, and follow live output orlocal/run/last.log. - Prepare & Build: check every prerequisite (
GAME, drivers, FSR 4, build freshness, shaders, pipelines) and run./setup.sh,./setup.sh fsr4,./build.sh build,./run.sh shaders, and./run.sh warmon the host or inside a chosendistroboxcontainer (for Bazzite, Silverblue, and SteamOS). - Plain-English Settings Editor: browse and edit
run.confwith clear explanations and tradeoffs, preserving all comments, ordering, and custom lines verbatim and writing only when you click Save to run.conf. - Shader & Pipeline Cache Manager: inspect translated shaders and
native-*pipeline cache folders, and safely prune older unused caches (always protecting the active cache and refusing deletion while the game or warming is running). - Opt-In Hardware Recommendations: detects your GPU, VRAM, Resizable BAR, CPU (including X3D / 5800X3D), RAM, and display resolution and suggests tailored settings with explicit Apply Selected or Decline & Keep Current choices (declining is remembered so it never forces changes).
- Update Checker: checks at startup and once every hour (
git ls-remote, read-only) whether newer commits exist on your tracked branch, with an optional clean fast-forward pull (git pull --ff-only).
See launcher/README.md for full details and Flatpak permissions.
Updating
git pull
./setup.sh victory
If you use FSR, also run ./setup.sh fsr4 once: frame generation needs a
file it fetches. Your run.conf, saves and caches stay as they are. When an
update changes shader translation or the pipeline cache key (including the
2026-12-06 update), re-run ./run.sh shaders and ./run.sh warm once (or run
them from Xmemlauncher's Prepare & Build page) and optionally prune older
pipeline cache folders on Xmemlauncher's Shader & Pipeline Cache page.
Existing users who want the desktop launcher after git pull can run
./install-launcher.sh right from the repository root — it reads your existing
run.conf as-is and sets up Xmemlauncher in your app menu.
If you forget the build, ./run.sh does not start the old game: it stops with
the game is built from an older version and what to run, in the terminal
and as a desktop notification (KDE, GNOME, Hyprland), so that you also see it
when you start the game from Steam or a launcher.
What changes with the update of 2026-12-06 without you changing a setting:
- Xmemlauncher desktop Flatpak launcher (
./install-launcher.sh), with plain-Englishrun.confediting, build/warm status, safe pipeline cache pruning, opt-in hardware recommendations, and hourly update checks. - Anti-flicker & visual stability: quad-masked pixel shaders
(
VICTORY_QUAD_MASK), shader LDS bounds (VICTORY_LDS_BOUNDS), HDR export clamping (VICTORY_HDR_CLAMP), far-depth occlusion stand-ins (VICTORY_OCCLUSION_FAR), ReBAR UAV table snapshots (VICTORY_SNAPSHOT_UAV_TABLES), and colour-only neutral texture stand-ins. - Ray tracing improvements: decoupled Pool 15 BVH writes from texture
stalls and universal hardware BVH64 traversal fixes across RDNA 2/3/4
(re-run
./run.sh shadersand./run.sh warmonce). - Lower VRAM use & smoother streaming: demand-promoted VRAM pools
(
VICTORY_DEMAND_VRAM), sparse texture-pool compaction (VICTORY_POOL_MOVE), zero-copy alias casting (VICTORY_DIRECT_ALIAS), and automatic low-RAM staging reclaim (VICTORY_STAGING_LINGER_MB). - Audio stutter fix: off-thread Opus decoding (
VICTORY_APU_THREADS) and async DSP convolutions (VICTORY_DSP_ASYNC).
What changes with the update of 2026-12-03 without you changing a setting:
F1opens a settings menu. Saving in it writes torun.conf(VICTORY_MENU=0turns the menu off).- Without a
VICTORY_FRAME_INTERVAL_MSline the game now runs at its own pace, about 30 fps in the world, where it ran uncapped.run.conf.examplehas the line;VICTORY_FRAME_INTERVAL_MS=10is the old behaviour. - On the keyboard the arrow keys are the d-pad (
VICTORY_ARROWS_DPAD=0for before). - At
VICTORY_OUTPUT=1920x1080without FSR the interface is drawn on a 4K plane of its own (VICTORY_UI_PLANE=0for before). - Wine and vkd3d-proton no longer write to the log (
VERBOSE=1for before).
Saves
The game saves by itself as you play. You do not have to set anything up. Its saves land in this folder:
local/data/7952987A/saves/0009000000000001/00000000-0000-0000-0000-00007952987a/
Only local/data comes with the repository, empty. The game makes the
folders under it the first time it opens its saves, so after your first
./run.sh play the whole path is there.
To use a save you already have, copy it into that folder while the game is closed. After a first start the folder exists. Before a first start, make it yourself:
mkdir -p local/data/7952987A/saves/0009000000000001/00000000-0000-0000-0000-00007952987a
A save is several folders, each with a ~ in its name (Player~...,
SARC0000~... and so on), and inside each a folder per version. Copy all of
them, as they are, from the same place in the other installation. Folders
from an older VIctory, without the ~, are converted the next time the game
starts.
To back up your saves, run ./tools/backup-saves.sh: it writes the saves and
the game's settings to saves-backup/ in this checkout and keeps the newest
10 (--help for more). Or copy that folder somewhere else. git pull and
./setup.sh never touch it: git ignores everything under local/ except the
empty local/data itself.
Settings you will probably want
A setting goes in run.conf, one per line, or after the command for a single
start:
./run.sh play VICTORY_FSR=balanced VICTORY_FRAME_INTERVAL_MS=33
| Setting | What it does |
|---|---|
VICTORY_OUTPUT=1920x1080 |
The size the picture is shown at |
VICTORY_FULLSCREEN_RES=1920x1080 |
The full-screen size, if it should differ from your screen's |
VICTORY_FSR=quality |
FSR 4 upscaling: quality, balanced or performance. A lower setting renders fewer pixels and runs faster |
VICTORY_FRAME_INTERVAL_MS=33 |
33 holds the game at about 30 fps, which feels steadier. 10 lets it run as fast as it can |
CONSOLE=series-s |
Run the game with the Series S profile instead of Series X |
VICTORY_BVH_BUILDER=0 |
Ray tracing off. The example settings have it off |
VICTORY_SKIP_INTRO=1 |
Skip the intro movie |
MUTE=1 |
No sound |
Every other setting is listed under All settings.
F1 in the game opens a menu with these settings: it shows what is in
run.conf, writes a change there and leaves your other lines alone; most
changes apply at the next start, which the menu offers. F3 hides the
performance panel. Keyboard, mouse and Sony controllers:
docs/CONTROLS.md.
Frame generation
Warning
Frame generation needs three settings together, not one:
VICTORY_FIDELITYFX_FRAMEGEN=1 VICTORY_FIDELITYFX_FRAMEGEN_DIRECT=1 VICTORY_UI_PLANE=3840x2160Without
VICTORY_UI_PLANEthe interface is generated along with the picture and glitches badly. WithoutVICTORY_FIDELITYFX_FRAMEGEN_DIRECTthe game renders about a quarter fewer frames (22 fps where 29 were, on the test machine). It also needsVICTORY_FSRand./setup.sh fsr4.Fast moving objects ghost even with all three. It is off by default.
With direct generation the test machine showed about 58 frames a second from 29 rendered (measured without the interface plane).
When something goes wrong
| What you see | What to do |
|---|---|
install first: ... |
Install the listed programs or libraries, then run ./setup.sh again |
not built yet: run .../setup.sh |
The build did not finish. Run ./setup.sh and read its last lines |
no game: write GAME=... |
run.conf is missing or its GAME= line does not point at a folder |
the game is built from an older version: ... |
The code is newer than the build, as after git pull. Run ./setup.sh victory. RUN_STALE=1 starts the old build anyway |
frame generation is not installed: ... |
VICTORY_FIDELITYFX_FRAMEGEN=1 is set and its file is not there. Run ./setup.sh fsr4 |
| The game does not start from Steam or a launcher and nothing shows | These messages also come as a desktop notification. Run ./run.sh play in a terminal to read them |
| A build step fails | The last 30 lines of that step's log are printed. The full log is deps/<name>.log |
| The log says the CPU reaches too little of the card's memory | Resizable BAR is off. Turn it on in the firmware settings |
| The game is very slow or closes | Look at the newest file in local/run/. local/run/last.log always points at it |
| Poor frame rate on a Ryzen 5800X3D or an RDNA 4 (RX 9000) card | Set VICTORY_CROSS_QUEUE_JOIN=0 in run.conf — cross-queue submission joining is on by default (1) and can hurt frame rate badly on those setups |
If you are stuck, open an issue and attach that log file. See below for what else to include.
Helping out
Testing
The most useful thing you can do is run it on your machine and say what happened. Open an issue with:
- your graphics card, CPU and amount of RAM,
- your distribution, kernel version (
uname -r) and Proton version, - your
run.confwithout theGAME=line, - what you did and what you saw,
- the log of that session from
local/run/. It is large, so compress it first.
To get frame rates out of a log without sending all of it:
grep 'stats: frame' local/run/last.log | tail -20
Each line is an average over five seconds. fps and frame_ms are what you
would expect, and draws tells how busy the scene was. Frame time follows the
scene: about 1.2 ms more for every 1,000 draws on the test machine. Two
numbers from different places in the game therefore say little, so name the
place.
For a proper measurement there are two scripts. Start the sampler in a second terminal before the game; it waits for the game and records the card's load, power and clocks twice a second until the game closes:
./tools/sample.sh
Play, and note the time when you reach the place you want to measure
(date -u +%Y-%m-%dT%H:%M:%S). After you close the game, the sampler prints
the name of its file. Give that, the log and your noted time to the second
script:
python3 tools/analyze.py local/run/last.log local/perf/samples-<time>.csv <your noted time>
It prints the average frame rate and frame time from that moment on, how busy the card was, and one line for every five seconds. That output is short enough to paste into an issue. The runs in this project's record are a minute on foot and a minute driving, measured this way.
Benchmark routes
./run.sh play VICTORY_BENCH=nort VICTORY_BENCH_MINUTES=6 VICTORY_BENCH_ROUTE=downtown BENCH_NO_RESTART=1
./run.sh play VICTORY_BENCH=rt VICTORY_BENCH_MINUTES=6 VICTORY_BENCH_ROUTE=downtown BENCH_NO_RESTART=1
./run.sh play VICTORY_BENCH_ROUTE=downtown # watch the route without benchmark timing
VICTORY_BENCH_ROUTE moves the player along a fixed route built into VIctory
(no mods needed, game build 1.0.2.1; credit in THIRD-PARTY.md).
After a 15 s settle and streaming in the ground/car, it pauses the clock at
12:00, holds clear sunny weather, disables wanted level, and makes the player
invincible:
downtown: a noclip flight around a 2400 m square over the city (-2600, -1000), at 30 m/s, 40 m above smoothed ground in a Dinka Blista with camera sweep. One lap is about 5 min 20 s; the first 30 s are skipped from benchmark figures, so useVICTORY_BENCH_MINUTES=6for a full lap.drive: experimental, not comparable across runs. The game's AI drives a Blista with traffic between fixed road points and may pick different routes.
With VICTORY_BENCH=nort|rt, benchmark runs force VICTORY_FRAME_INTERVAL_MS=0
(uncapped), press Enter automatically from 5 to 65 s, save screenshot.png,
bench_stats.txt and bench_results.txt under local/benchmark/, and close
the game after VICTORY_BENCH_MINUTES. Add BENCH_NO_RESTART=1 for unattended
runs so run.sh exits immediately instead of restarting the game with your
normal settings. Standalone VICTORY_BENCH_ROUTE=... runs (without
VICTORY_BENCH) do not close automatically.
Working on the code
Open questions that someone could pick up are filed as
issues with the label investigate.
Each starts with a short explanation in plain words and continues with what is
known, which files to read and what result would settle it.
Three files describe how the work is done here:
AGENTS.md: how a change is built, tested and measured, and how commits are written. It is written for coding agents and is just as valid for people.docs/PLAN.md: one screen of what is done, what was tried and dropped, and what might be worth a look.docs/ARCHITECTURE-PERF.md: the full record. Every change made for frame rate and every measured run has a section, including the ones that failed.
The habit this project keeps: before a run, write down what it should show.
After it, report what it did show, also where the guess was wrong. A change
that does not improve anything is taken out and kept as a patch in
docs/tried/, so nobody builds it twice.
How it runs here (2026-12-02)
| CPU, GPU, RAM | Ryzen 7 7800X3D, RX 7900 XT 20 GB, 32 GB |
| System | Bazzite 45, kernel 7.3.5, GNOME on Wayland |
| Runtime | GE-Proton11-16, Mesa 26.3.1 with the RADV patch of this repository |
| Settings | Series X profile, 2560x1440 full screen, FSR 4 quality, ray tracing off, no frame cap |
The figure comes from one run of two minutes in the open world, a minute on foot and a minute driving: 29.3 fps on average, 34.5 ms a frame at about 9,840 draws a frame. Averages over five seconds ranged from 22.5 to 34.9 fps. The card was busy 98.6 % of the time, and about 2.2 GB of its 20 GB stayed free.
The run.conf behind that figure, besides GAME:
CONSOLE=series-x
VICTORY_OUTPUT=2560x1440
VICTORY_FULLSCREEN=1
VICTORY_FULLSCREEN_RES=2560x1440
VICTORY_FSR=quality
VICTORY_BVH_BUILDER=0
VICTORY_FRAME_INTERVAL_MS=10
What has been measured on this card
- A page of game memory that the card reads gets a copy on the card and keeps
its place in RAM (
docs/DESIGN-UM-COPIES.md). A thread that touched such a page used to wait 20 to 42 ms for it to move back. Now the longest such wait in five seconds is 3 to 14 ms on average, and in many stretches there is none. - Textures are brought up to date on a thread of their own
(
docs/DESIGN-TEXTURE-PASS.md). Averaged over a session they used to appear 1.6 s after the game wrote them. In the measured two minutes it is now 25 to 45 ms. Driving costs about 1.3 ms a frame more for it. - Game memory that the card reads has to be on the card. With one large pool kept in RAM as a trial, every frame took 6 to 7 ms longer.
- Twelve commits from RDNA-proton-line, aimed at the threads that record and submit a frame, took about 1 ms off a frame in the one run that compared them.
- Still open: textures arrive 60 to 300 ms late for a few seconds at a time while driving, when the card fills up and copies are thrown away to make room.
All settings
| Setting | Effect |
|---|---|
CONSOLE=series-s |
Series S profile. Its output is 1920x1080 unless set, and no larger; it uses the title's own upscaler unless VICTORY_UPSCALER is set |
VICTORY_TILE_HEAP_MB=3977 |
Series X with a smaller streaming heap (the title's own is 6236 MiB, Series S's 3977): that much less RAM, for PCs with 16 GB. Off by default: Series X may count on the larger heap (more reloading, late or blurry textures) |
VICTORY_STAGING_LINGER_MB=<MB> |
Emptied texture upload staging blocks kept in RAM for 2 min, in MiB (0 to 2560, rounded up to 16 MiB blocks). Unset: 0 on hosts with 18 GiB RAM or less (reclaims emptied blocks past 32 MiB after the 5 s rest), 2560 above that |
VICTORY_OUTPUT=2560x1440 |
Render size |
VICTORY_FULLSCREEN=1 |
Borderless full screen |
VICTORY_FULLSCREEN_RES=2560x1440 |
Its size, if not the screen's |
VICTORY_FSR=quality |
FSR 4 (quality, balanced, performance) to the VICTORY_OUTPUT size, after ./setup.sh fsr4 |
VICTORY_FSR_SHARPNESS=0.0 |
FSR RCAS sharpening strength (0.0 to 1.0, off at 0.0) |
VICTORY_MIP_DROP=0 |
Drop the finest 0, 1 or 2 streamed mip bands across all streamed textures (0: default full detail) |
VICTORY_FRAME_INTERVAL_MS=33 |
Frame pacing: 33 caps at about 30 fps for steadier frame times, 10 leaves the frame rate uncapped here |
VICTORY_BVH_BUILDER=0 |
No ray tracing |
VICTORY_BVH_HARDWARE=0 |
Ray tracing without the card's own node test |
VICTORY_BVH_LOOKAHEAD=1 |
Experimental, off by default. After serving shader faults, try to show up to four adjacent 4 MiB cells in existing in-place mirrors. Compare page faults, frame times and rendering against the same run with 0 |
VICTORY_AMBIENT_ALPHA=1 |
Dust and particles indoors: their light volume is held to this multiple of the light around, so the walls' sky light does not turn them into white specks and haze (0: the title's own) |
VICTORY_PAGES=0 |
Title memory stays where it starts, RAM or card |
VICTORY_STATIC_VRAM=0 |
Keep static write-combined pools (1w/5w) as 64 KiB paged pools instead of contiguous 2 MiB-aligned VRAM allocations when card room has at least 2 GiB headroom |
VICTORY_CROSS_QUEUE_JOIN=0 |
On by default (1): joins ready submissions across console queues (Direct and Compute) into one ExecuteCommandLists batch. Can hurt frame rate badly on Ryzen 5800X3D and RDNA 4 (RX 9000) setups — set to 0 there to restrict joining to one queue at a time |
VICTORY_CORES=fast |
CPU thread placement (fast, title, free). Default fast binds title threads to the highest-L3 / fastest core class on hybrid or dual-CCD CPUs (leaving background workers free) and passes title affinity through untouched on uniform single-CCD CPUs; free drops all title affinity masks; title maps Xbox cores 0–13 onto distinct physical cores on ≥14-core CPUs |
VICTORY_SSBO_VECTORIZE=0 |
Keep robustBufferAccess2 on SSBOs/UBOs instead of relaxing them to VK_EXT_pipeline_robustness ROBUST_BUFFER_ACCESS_EXT in vkd3d-proton (changes the pipeline cache key; off reuses the unvectorized cache) |
VICTORY_PAGES_SEEN=1 |
Title memory the card was shown and the processor never touched moves to the card too. Off by default |
VICTORY_PAGE_AUDIT=1 |
Measurement: a page that goes to the card is summed, and summed again from the card when the processor first reaches it or it comes down; the page touches: line counts the pages the card changed. Touch waits are longer with it, and pages move whole (as with VICTORY_PAGE_COPIES=0). Off by default |
VICTORY_PAGE_READS=1 |
Measurement: the page reads: line counts what asks the card to read title memory where it lies (geometry, descriptor tables, the buffers they name, ray-tracing structures, title buffers in place), by pool and by whether the pages were on the card or in RAM, and each pool's pages the card read lately by why they are where they are. Every such ask looks its pages up. Off by default |
VICTORY_PAGE_COPIES=0 |
A page that goes to the card moves there whole, and back at the processor's next touch, which waits for the move. By default it gets a copy on the card and keeps its own memory, and no touch waits |
VICTORY_TITLE_VRAM_MB=<MB> |
The card's room for title memory. By default what the processor reaches of the card minus 12 GiB (8 GiB on a 20 GB card), at least 1 GiB |
VICTORY_ONWARD_MB=<MB> |
How far past the address of a root buffer the card is shown the title's memory as it is mapped (64; 4 to 1024, and 1024 is what it was). Fewer pages are written into the card's page tables with less; 16 was tried and showed more flicker and wrong textures for no gain. Geometry or textures that are missing or wrong with the default and right with 1024 are read further on than that |
VICTORY_TEXTURE_ROOM_PERCENT, VICTORY_TEXTURE_ROOM_CAP_PERCENT |
Where new host textures stop (86, or 90 on >=16 GiB budgets) and the hard cap (92, or 94 on >=16 GiB budgets), in percent of the card's budget |
VICTORY_TEXTURE_KEEP=line |
Idle texture copies are let go by the room line instead of at a fixed 80/86/92 %. Needed with a room line under 80. Off by default |
VICTORY_LATE_MOST=<n> |
Host lists in flight before a submission waits for them (256; 64 to 1024) |
VICTORY_SKIP_BINK=1 |
Skip the title's movies that play once (logos, intro); all skips the looping menu backgrounds too (they stay dark). Off by default |
VICTORY_SKIP_INTRO=1 |
Skip only the intro movie, straight to the menu (the other movies play) |
VICTORY_WARM=0 |
Open the game without preparing pipelines first; they are made at first use |
VICTORY_MESH_ONE_DIM=0 |
Indirect mesh records with a zero second or third count run no group, as before (beaches shaded black). By default they run as their first count alone |
VICTORY_THIN_URGENT=0 |
Lists the title submitted wait behind lists still being recorded, as before. By default they are translated first |
VICTORY_DSTORAGE_ORDER=fair, VICTORY_DSTORAGE_WAKE=all |
DirectStorage shares its workers between queues and wakes them all for a read, as before. By default the oldest batch goes first and one worker wakes for each read |
VICTORY_DSTORAGE_LIBDEFLATE=1 |
Off by default. DirectStorage zlib streams are inflated by libdeflate (C, MIT; Rust bindings libdeflater, Apache-2.0; pinned 1.26.1) in one call instead of by zlib-rs. Same bytes (11,332 of 11,332 real streams); one thread inflates 882 instead of 688 MB/s. 30-s flights (route v3, two series: 6 runs against 9, 5 against 5): frame 24.8 instead of 28.1-28.3 ms (-12 %), 1% low 11.1-11.4 instead of 9.9-10.1 fps, 0.1% low 8.5-8.6 instead of 7.7-8.0 fps. These figures are its author's (kroeeee-eeee/RDNA-proton-line 560437d), not measured on this machine |
VICTORY_CARD_DIRTY_SCAN=1 |
Every copy in the card's memory is walked at each submission, as before. By default only the copies touched since the last one |
VICTORY_QUAD_GUARD=1 |
Pixel quad reads give 0 from lanes that did not run the block, for glass that flashes colored blocks. Changes the shader cache key. Off by default |
VICTORY_POOL_MOVE=0 |
On by default (1): relocate live textures out of sparse/draining 64 MiB texture blocks so fragmented heaps empty and return to the driver (VICTORY_POOL_MOVE_MB, default 128, sets the pressure budget). Set to 0 to disable |
VICTORY_PLACED_COPIED=1 |
A GPU copy into a texture also goes into the views the title placed over it before (baked prints, tattoos, make-up). Off by default |
VICTORY_DIRECT_ALIAS=0 |
Disable zero-copy R32_UINT / R32_TYPELESS → R9G9B9E5_SHAREDEXP relaxed format casting (CreateCommittedResource3) and fall back to duplicate host alias textures + copies. On by default when the driver supports it |
VICTORY_DEMAND_VRAM=0 |
Disable demand-promoted VRAM for large write-combined unified-memory pools (1w at 2 MiB huge-page chunks, 5w at 64 KiB physical pages — starting in system RAM and promoting only GPU-read pages to VRAM) and fall back to monolithic static VRAM (VICTORY_STATIC_VRAM). On by default |
NOSAM=1 |
RADV keeps its command buffers and uploads in system memory (RADV_PERFTEST=nosam). Off by default: the picture flickers less without it |
KEEP_FREE=<MiB> |
RAM left to the system when the game's memory cap is set (8192) |
MUTE=1 |
No sound |
LSFGVK_PROFILE=<profile> |
lsfg-vk 2.x frame generation with that profile of its conf.toml (LSFG_PROCESS=<entry> for lsfg-vk 1.0; run.sh then sets VICTORY_LSFG_V1_BRIDGE=1, which gives the game's Vulkan device the surface and swap chain extensions that version looks for). Off by default |
VICTORY_MENU=0 |
No settings menu on F1. Its rows, descriptions and defaults come from run.conf.default; it edits run.conf. In it, F10 saves and restarts the game |
VICTORY_PANEL=full |
The performance panel: full, compact, fps or off (F3 hides it, Shift+F3 steps through) |
VICTORY_LOG=info |
Log level: info, warn, error, off |
VERBOSE=1 |
Wine, vkd3d-proton and DXVK log lines back on (off by default) |
VICTORY_PRESET=<name> |
potato, low, medium, high or ultra: the settings of presets/<name>.conf under those of run.conf and the command line |
VICTORY_FIDELITYFX_FRAMEGEN=1 |
AMD frame generation on the frames FSR 4 upscales (needs VICTORY_FSR and ./setup.sh fsr4 once more for its DLL). Off by default. Set it together with VICTORY_FIDELITYFX_FRAMEGEN_DIRECT=1 and VICTORY_UI_PLANE=3840x2160: see Frame generation |
VICTORY_FIDELITYFX_FRAMEGEN_DIRECT=1 |
With frame generation: frames are generated on our own queue, without AMD's proxy swap chain; the real frame is shown half a frame after the generated one. Set it whenever frame generation is on: the proxy costs about a quarter of the rendered frames here |
VICTORY_FIDELITYFX_FRAMEGEN_DEBUG=<flags> |
Frame generation's debug flags; the log counts replaced and missing inputs |
VICTORY_PRESENT_TIMING=1 |
Logs each present: time in Present, generated frames, display timestamps |
VICTORY_FSR_HOST=1 |
Without VICTORY_FSR: PC FSR 4 serves the title's own upscaling at its own sizes, on any profile |
VICTORY_UI_PLANE=3840x2160 |
The interface on a 4K plane of its own over the scene, with FSR too. Set it whenever frame generation is on: without it the interface glitches. At VICTORY_OUTPUT=1920x1080 without FSR a split plane is on by default (VICTORY_UI_PLANE=0 for none) |
VICTORY_PILLARBOX=1 |
With VICTORY_FULLSCREEN=1: black bars on a screen that is not 16:9 |
VICTORY_HDR=1 |
HDR10 output: the game is told the display is HDR (VICTORY_HDR_NITS, 1000, is the peak brightness it is told) and presents PQ/BT.2020. Needs an HDR display and a surface that presents HDR (e.g. gamescope --hdr-enabled); without one the log says so and the frame goes out as SDR. Off by default; not tried on the test machine |
VICTORY_KBM_PC=1 |
PC-style keyboard and mouse layout (VICTORY_MOUSE_SENS, VICTORY_MOUSE_INVERT_Y=1); see docs/CONTROLS.md |
VICTORY_DUALSENSE=1 |
DualSense on USB: light bar, adaptive triggers and haptics as the PS5 build sends them (VICTORY_HAPTICS_GAIN_DB, 8), with its notch on R2 in vehicles, its split of rumble between the motors and vibration per zone (VICTORY_PAD_EFFECTS_LOG=1 logs each change of a trigger's effect) |
VICTORY_DUALSHOCK=1 |
DualShock 4: light bar colours |
VICTORY_RUMBLE_GAIN=2 |
Controller motor strength (0.5 to 8); VICTORY_DUALSENSE_RUMBLE=0 leaves a Sony controller's motors alone |
VICTORY_LOD_SCALE, VICTORY_SMALL_CULL, VICTORY_VEHICLE_LOD_BIAS |
How far detailed models reach (0.05 to 1.0), when small objects are left out (1.0 to 16.0), how soon far vehicles are simplified. Fewer draws, more pop-in |
VICTORY_LOW_SHADOWS, VICTORY_SHADOW_CASCADES, VICTORY_SHADOW_DIST, VICTORY_GRASS_SHADOWS, VICTORY_SHADOW_EXTRAS, VICTORY_LOW_VOLUMETRIC, VICTORY_VOLUMETRIC_QUALITY, VICTORY_TREE_QUALITY, VICTORY_TREE_TESS, VICTORY_FOLIAGE_TIER, VICTORY_TESS_LOW, VICTORY_ITER_TIER, VICTORY_WORLD_DIST_SCALE |
The engine's own shadow, volumetric, foliage and world distance settings; values and what each does are in run.conf.default. Unset: the title's own |
VICTORY_GLASS_DITHER_OFF=1, VICTORY_GLASS_DIRT_OPACITY=0.4, VICTORY_KILL_CONTINUE=1 |
House window glass: no stripes that blink every other frame, no grey drips, no frosted-glass lines. Each changes the shader cache key. Off by default |
VICTORY_WARM_JOBS=<n>, VICTORY_WARM_SYNC=1 |
Processes that prepare pipelines (half the processors, at most 16; lower it if preparing stalls); sync each prepared file to the disk as before |
VICTORY_KEEP_HOST_BUFFERS=1 |
Off by default, experimental. Command memory of the host's lists is kept instead of made again after 60 s, while the card's memory is within its budget: fewer buffers made and closed in the driver while playing. Not measured on the test machine |
VICTORY_BATCH_FINAL=0, VICTORY_RENEW_IN_PASS=0 |
Both on by default: keep indirect clamp batches across title barriers that do not finalize indirect arguments, and fold the list's first budget renewal into its single-group clamp pass |
VICTORY_RECORD_PLACES=0, VICTORY_RECORD_RANGES=0 |
Both on by default (1): textures read their slot-table places from their record (2 for typed buffers too when ranges are off), and raw/constant buffers read their address range from their record without the host range table. Changing either changes the shader cache key |
VICTORY_EARLY_DEPTH=0 |
On by default: emit ForceEarlyDepthStencil on every pixel shader that asks for early depth without exporting depth/stencil/coverage (0: cell-window prepass only). Changes the shader cache key |
VICTORY_CACHE_PRUNE=1 |
Off by default: have victory shaders remove translations unused for 14+ days and victory warm remove older pipeline-cache key folders (keeping the newest) |
VICTORY_BENCH=rt, VICTORY_BENCH=nort |
A benchmark run with fixed settings (4K, FSR quality, VICTORY_FRAME_INTERVAL_MS=0, ray tracing on or off) that closes itself after VICTORY_BENCH_MINUTES (5); results in local/benchmark/. The F1 menu's benchmark rows start the same run. Add BENCH_NO_RESTART=1 to exit instead of restarting into normal play |
VICTORY_BENCH_ROUTE=downtown |
Fixed benchmark route (downtown for reproducible comparisons, or experimental drive); see Benchmark routes |
VICTORY_KEYS=1 |
Log game-side keyboard events as the title reads them |
VICTORY_KEYS_FILE=<file> |
Diagnostics build: holds the keys the file names, to drive a running game from a shell |
VICTORY_DSP_CONVOLVE=0 |
On by default: disable mono audio DSP convolutions (falls back to short pass-through / silence) to isolate DSP CPU load |
VICTORY_DSP_ASYNC=0 |
On by default: convolutions complete on a DSP thread of ours, beside the title's mixing thread, as on the console's coprocessor. 0 runs them on the title's thread when submitted. See docs/AUDIO-STUTTER.md |
VICTORY_APU_THREADS=<n> |
Threads decoding Opus (xapu), default a quarter of the cores, 2-4; a stream's commands in order, streams at once. 0 decodes on the title's thread when queued. See docs/AUDIO-STUTTER.md |
VICTORY_DSP_DUMP=1 |
Saves each distinct impulse response the game hands the audio DSP (phone and radio voices, reverbs) to local/dsp/, for tools/dsp-ir.py to work out their layout |
VICTORY_OCCLUSION_FAR=0 |
On by default: binds a 128x72 R32_FLOAT far-depth (1e6) stand-in instead of null/neutral when the CPU occlusion depth image is pending or unmade, preventing single-frame scene occlusion culling drops |
VICTORY_PLACED_BY_VIEW=0 |
On by default: derives buffer extent from the view's element range when a placed buffer resource description has width 0 (used by prop and tree batch culling UAVs) |
VICTORY_SNAPSHOT_UAV_TABLES=0 |
On by default: snapshots sparse by_descriptor slots of non-indexed compute UAV descriptor tables into a 16 MiB ReBAR VRAM ring (records::uav_aside) so next-frame HEAP_COPY updates cannot overwrite culling tables still in flight |
VICTORY_QUAD_MASK=0 |
On by default: compiles lazy non-blocking quad-masked pixel shader variants (USER_QUAD_MASK) for partial SetQuadSampleMask draws (LOD cross-fade / foliage fade stippling) instead of drawing masked quads whole |
VICTORY_LDS_BOUNDS=0 |
On by default: bounds shader LDS accesses to the title's declared shared memory size (out-of-bounds reads return 0, writes and atomics are dropped), matching console hardware. Changes the shader cache key when disabled |
VICTORY_HDR_CLAMP=0 |
On by default: clamps 32-bit float pixel colour exports to [-65024, 65024] (largest finite R11G11B10_FLOAT) in addition to zeroing NaNs, preventing finite HDR spikes from overflowing FP16/R11G11B10 targets to +Inf. Changes the shader cache key when disabled |
VICTORY_COMING_WAITS=0 |
On by default: defers texture staging/uploads when DirectStorage is actively writing into overlapping 64 KiB pages, re-queuing the texture once the write finishes |
VICTORY_TABLED_FIRST_DUE=0 |
On by default: preserves a queued tabled texture slot's earliest due frame when rewritten every frame so it does not starve |
VICTORY_PARTLY_CLAMP=0 |
On by default: clamps SRV MostDetailedMip on partly mapped placed textures to the first fully mapped level until all mip pages arrive |
VICTORY_KEEP_GPU_WRITTEN=0 |
On by default: preserves individual GPU-written mip levels across deferred uploads from title memory |
VICTORY_UNIFORM_GUEST_LOADS=1 |
Off by default, experimental: uniform descriptor selection for guest loads proven uniform across a dispatch |
VICTORY_CLUSTER_GUEST_LOADS=1 |
Off by default, experimental: group up to eight consecutive guest loads proven on a common page |
VICTORY_BAKE_SOURCES_ONLY=1 |
Off by default, experimental: prepare only named source textures for decoration bakes when the layout is recognized |
To compare raw SRV load reuse across branches, use VICTORY_SHADER_OPT=319
for the default passes (which include write-free buffer / host-table FIXED
reuse) and VICTORY_SHADER_OPT=447 to add the experimental DOM_LOADS
pass. The shader cache keys include this setting. Compare the same capture
with warm pipelines and check both the resulting image and GPU frame time.
Patches
patches/ holds what changes in Mesa, vkd3d-proton and Wine
(<name>.<submodule>.patch: in a submodule of it). Edit under
deps/<name>, rebuild with ./setup.sh <name>, save with
tools/patch.sh <name>. RADV's pipeline cache key is pinned (RADV_BUILD_ID
in setup.sh), so a Mesa rebuild keeps the pipelines unless the Mesa version
or the patch's compiler part changed: ./setup.sh mesa then stops and asks
for a new id, and the pipelines are prepared again at the next play.
Credits
VIctory by Marvisak and contributors, through avatarmanz, fxceless, DexNom, Belobug, FQY55kai, myokex, triippywhale, trustno1-coder, PastiiJay, Geckomacabre, cxy0072019-sketch and gassy for being a larper
VIctory-xmem by lobomfz and its contributors, which this fork is built on. Changes cherry-picked from its pull requests keep their authors in the commit log.
RDNA-proton-line by kroeeee-eeee and RDNA2-proton-cherrypick by PedroRBC, for the twelve commits taken from there. Those carry work from Vertex by proneonn, legendary by maakiopus, dfm, VIctory-NVIDIA, ReVIctory by zeex64 and victory-linux-perf by zocram4cc and AscilCH.
License
GPL-3.0-or-later. See LICENSE.
Third-party code built in from source: libdeflate
(MIT, Copyright 2016 Eric Biggers, 2024 Google LLC) through the crates libdeflate-sys and
libdeflater (Apache-2.0), pinned to 1.26.1 in Cargo.lock, used by VICTORY_DSTORAGE_LIBDEFLATE.
Cargo compiles its C files with clang-cl against the Windows SDK of setup.sh sdk, which the build
uses already: no extra step.