README: VIctory on NVIDIA
What this fork changes for NVIDIA cards, where it stands on an RTX 5070 (Series S, half scale, about 20-22 fps), how to run it with scripts\play-nvidia.ps1, and credits (the 7900 XTX fork first).
This commit is contained in:
1 parent
a1849fac28
commit
969843e0d0
1 file changed
+60
-46
@@ -1,9 +1,10 @@
|
||||
# VIctory on an RX 7900 XTX
|
||||
# VIctory on NVIDIA
|
||||
|
||||
A fork of [VIctory](https://github.com/Marvisak/VIctory), a compatibility layer
|
||||
that runs an Xbox Series title natively on Windows from files the user supplies.
|
||||
This one is about **speed on AMD RDNA 3**: the world at 30 frames a second on
|
||||
one PC, without giving up the picture. It is not there yet.
|
||||
A fork of [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX),
|
||||
itself a fork of [VIctory](https://github.com/Marvisak/VIctory), a compatibility
|
||||
layer that runs an Xbox Series title natively on Windows from files the user
|
||||
supplies. That fork is tuned for an AMD RX 7900 XTX. This one makes it **draw
|
||||
everything on NVIDIA cards and run fastest there**, using the Series S profile.
|
||||
|
||||
**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
|
||||
@@ -11,30 +12,30 @@ or publisher.
|
||||
|
||||
## Where it stands (2026-11-25)
|
||||
|
||||
Tested on one machine only: Windows 11, Intel i9-12900K, 64 GB RAM, Radeon
|
||||
RX 7900 XTX, 1440p, the Series X profile.
|
||||
Tested on one machine only: Windows 11, AMD Ryzen 7 9800X3D, 64 GB RAM,
|
||||
GeForce RTX 5070 12 GB, the Series S profile at half render scale
|
||||
(`scripts\play-nvidia.ps1`).
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| Menus, videos, loading screens | 30 fps |
|
||||
| Prologue, indoors | 50-75 ms a frame (13-20 fps) |
|
||||
| First mission with the boat | 46-53 ms (19-22 fps) |
|
||||
| Street chase with many cars and people | 100-165 ms (6-10 fps), single frames far longer |
|
||||
| Outdoors on foot, the camp | 60-90 ms |
|
||||
| Flying | 42-57 ms |
|
||||
| Longest session so far | 41 minutes, no crash |
|
||||
| Memory | 40-46 GB of private memory: **64 GB of RAM recommended** |
|
||||
| Prologue, indoors | about 20-22 fps on average, 24-31 fps in lighter places |
|
||||
| Device losses | none in the measured runs |
|
||||
| Menus, loading screens, subtitles | shown (they were black on Series S before) |
|
||||
| First time a place is seen | slow for a moment while its shaders are made |
|
||||
|
||||
It started at 280 ms a frame in the same scenes two days earlier.
|
||||
On the same card the fork's own settings skipped thousands of draws a frame
|
||||
(the picture jumped and rarely updated), and the Series X profile at full scale
|
||||
ran at about 6 fps.
|
||||
|
||||
What is known to be wrong:
|
||||
|
||||
- Trees, plants and far buildings flicker outdoors in some places.
|
||||
- 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 with a new driver or 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.
|
||||
- The picture is softer than Series X: half render scale, upscaled by the
|
||||
title's own upscaler.
|
||||
- Rooms with little direct light can be dark: ray walks end at the root while
|
||||
the title's structure builder is off (`VICTORY_BVH_MISS`).
|
||||
- Everything listed in the 7900 XTX fork's README still applies (flicker of far
|
||||
plants outdoors, textures appearing late while the title streams, a stutter on
|
||||
the first run with a new driver or build).
|
||||
|
||||
## How to run it
|
||||
|
||||
@@ -43,15 +44,18 @@ model 6.6 and mesh shaders, Rust (the toolchain is pinned), the MSVC build
|
||||
tools, and your own dump of the title.
|
||||
|
||||
```powershell
|
||||
git clone https://github.com/avatarmanz/VIctory-7900XTX
|
||||
cd VIctory-7900XTX
|
||||
git clone https://github.com/trustno1-coder/VIctory-NVIDIA
|
||||
cd VIctory-NVIDIA
|
||||
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-nvidia.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.
|
||||
`scripts\play-nvidia.ps1` starts a copy of the build named `victory_sm.exe`, so
|
||||
NVIDIA Smooth Motion applies every time once it is turned on for that exe in the
|
||||
NVIDIA App. `-NoSmoothMotion` runs `victory.exe` itself; `-SeriesX` uses the
|
||||
Series X profile (sharper, much slower). The fork's own `scripts\play.ps1` is
|
||||
still there for AMD cards.
|
||||
|
||||
Before the first run, ahead of time (both can be stopped and go on later):
|
||||
|
||||
@@ -66,36 +70,46 @@ described in a comment where it is read.
|
||||
|
||||
## What is different here
|
||||
|
||||
In short; the reasons and the measurements are in [docs/findings.md](docs/findings.md).
|
||||
- **No more skipped draws on NVIDIA** (`VICTORY_DYNAMIC_SLOTS=524288`): NVIDIA
|
||||
caps the shader-visible view heap at 1,000,000 views, below the 1,245,184 the
|
||||
title asks for. The pool of dynamic descriptor slots then ran out and
|
||||
1,100-4,800 descriptor tables a frame were refused, each one a dropped draw.
|
||||
The pool can now take up to half the heap: 0-33 refused a frame.
|
||||
- **Series S interface plane** (`VICTORY_COMPOSE=1`): a Series S title presents
|
||||
the game (1080p) and the interface (4K) as two planes. Only the first was
|
||||
shown, so menus, loading screens and subtitles were black. The interface is
|
||||
now laid over the game. Ported from fxceless/victory-gta6 pull request 1189,
|
||||
without its FSR stand-in.
|
||||
- **Render scale and upscaler** (`VICTORY_RENDER_SCALE`, `VICTORY_OWN_UPSCALER`,
|
||||
`VICTORY_NO_WATCHDOG`): patches to the 1.0.2.1 executable, from the
|
||||
victory-perf patches. Series S needs the title's own upscaler at a scale
|
||||
below 1.
|
||||
- **Ray walks end at the root** (`VICTORY_BVH_MISS=1`) while the structure
|
||||
builder is off. Its nodes are stale, so this avoids a hang and saves about
|
||||
10 ms a frame.
|
||||
- **Memory compares on the card** (`VICTORY_CARD_BUFFERS_MIN_MB=1`,
|
||||
`VICTORY_CARD_BUFFERS_MB=1536`): this took the Series S profile from 11 to
|
||||
about 22 fps.
|
||||
|
||||
- **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](docs/replay.md)).
|
||||
Everything the 7900 XTX fork added is kept: translation of list calls on threads
|
||||
of ours, submissions prepared and joined on a thread of ours, the write relay,
|
||||
fills done on the card, textures on their own copy queue, texture read-back
|
||||
(boats float), and frame record and replay. Its
|
||||
[docs/findings.md](docs/findings.md) has the reasons and the measurements.
|
||||
|
||||
## 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.
|
||||
|
||||
- **[avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX)**:
|
||||
the fork this one started from, and everything in it.
|
||||
- **[VIctory](https://github.com/Marvisak/VIctory)** by Marvisak and its
|
||||
contributors: the loader, the runtime services, the Direct3D 12 back end and
|
||||
the shader recompiler.
|
||||
- **[fxceless/victory-fork](https://github.com/fxceless/victory-fork)**: the fork
|
||||
this one started from, and the people whose pull requests it carries.
|
||||
the 7900 XTX one started from, the people whose pull requests it carries, and
|
||||
pull request 1189 (Tissma95) for the Series S interface plane.
|
||||
- **[DexNom/VIctory](https://github.com/DexNom/VIctory)**: ray tracing fixes,
|
||||
cube gradients, sparse textures.
|
||||
- **[Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD)**:
|
||||
|
||||
Reference in new issue
Block a user