mirror of
https://github.com/lobomfz/VIctory-xmem.git
synced 2026-12-06 05:48:38 +00:00
docs: split the README into focused pages
Keep quick start, running, configuration, presets, controls, benchmark, troubleshooting and notices in the README. Move the full settings reference, build details, controls and diagnostics into docs/.
This commit is contained in:
391
README.md
391
README.md
@ -4,277 +4,214 @@
|
||||
A patched RADV maps the title's memory straight into the GPU, the way the
|
||||
console shares it, so nothing is copied back and forth every frame.
|
||||
|
||||
This repository contains source code only. See the notice under [Run](#run).
|
||||
This repository contains source code only. Use only a lawfully obtained copy of
|
||||
the game; the project does not help obtain it and does not support unlawfully
|
||||
obtained copies.
|
||||
|
||||
## Status
|
||||
**Status:** VIctory xmem is maintained. A rewrite is being developed in a
|
||||
separate private repository.
|
||||
|
||||
Project owner is currently working on a rewrite in a new repo (private ATM). xmem is still maintained and will continue to improve.
|
||||
|
||||
## Run
|
||||
|
||||
> **Before you start.** By following these steps you agree to use only copies of
|
||||
> the program that you obtained lawfully, and you confirm that you own or are
|
||||
> otherwise authorised to use the copy you point this build at. The project does
|
||||
> not help you obtain it and does not support unlawfully obtained copies. If
|
||||
> that is not the case, do not continue.
|
||||
## Quick start
|
||||
|
||||
```sh
|
||||
./setup.sh
|
||||
# The first run asks for your game folder and writes run.conf (or write GAME=/path/to/your/dump in it)
|
||||
./run.sh shaders
|
||||
./run.sh play
|
||||
```
|
||||
|
||||
`setup.sh` fetches and builds Mesa, vkd3d-proton, a wineserver for your Wine,
|
||||
the Windows SDK and VIctory itself. It names any tool it misses.
|
||||
Saves, caches and logs stay in `local/`.
|
||||
- The first run asks for your game folder and writes `run.conf`. You can instead
|
||||
set `GAME=/path/to/your/dump` in it.
|
||||
- The first `play` prepares every pipeline before the game opens: several
|
||||
minutes and roughly 6 GiB of cache (empirical). If interrupted, run `play`
|
||||
again to resume.
|
||||
- With `VICTORY_WARM=0`, the game opens at once and builds pipelines at first
|
||||
use: missing geometry and stutter at first, improving as the cache fills.
|
||||
|
||||
The first `play` prepares every pipeline from your dump before the game opens:
|
||||
several minutes and about 6 GiB of cache. If you interrupt it, run `play` again
|
||||
and it resumes. With `VICTORY_WARM=0` the game opens at once
|
||||
instead and each pipeline is made the first time it is drawn: missing
|
||||
geometry and stutter at first, less each run as the cache fills.
|
||||
## Requirements
|
||||
|
||||
Settings go after the mode, or in `run.conf`. `VICTORY_*` variables put on the
|
||||
shell line before `run.sh` are cleared; put them after the mode instead:
|
||||
Linux and an AMD GPU. `setup.sh` names missing tools and Mesas dependencies.
|
||||
The full tool and `pkg-config` lists are in [docs/BUILD.md](docs/BUILD.md).
|
||||
|
||||
| Setting | Effect |
|
||||
|---------|--------|
|
||||
| `CONSOLE=series-s` | Series S profile |
|
||||
| `VICTORY_OUTPUT=2560x1440` | Output size: 1280x720, 1664x936, 1920x1080, 2560x1440 or 3840x2160. 2560x1440 by default; with FSR 4, 3840x2160 unless set |
|
||||
| `VICTORY_FULLSCREEN=1` | Borderless full screen |
|
||||
| `VICTORY_FULLSCREEN_RES=2560x1440` | Its size, if not the screen's |
|
||||
| `VICTORY_FRAME_INTERVAL_MS=33.333` | Frame interval in ms: 33.333 for a 30 fps cap, 16.667 for 60, 0 for no wait; unset follows the title |
|
||||
| `VICTORY_KBM_PC=1` | PC-style keyboard and mouse controls (see [Controls](#controls)) |
|
||||
| `VICTORY_DUALSENSE=1` | A DualSense on USB: the PS5 build's light bar, adaptive triggers and haptics (see [Controls](#controls)) |
|
||||
| `VICTORY_DUALSHOCK=1` | A DualShock 4 on USB or Bluetooth: light bar colours only (no adaptive triggers or haptics) |
|
||||
| `VICTORY_RUMBLE_GAIN=2` | Sony pad rumble strength, 0.5 to 8 |
|
||||
| `VICTORY_DUALSENSE_RUMBLE=0` | Leave a Sony pad's rumble motors alone |
|
||||
| `VICTORY_HAPTICS_GAIN_DB=8` | DualSense haptics gain in dB (default 8) |
|
||||
| `VICTORY_PILLARBOX=1` | With `VICTORY_FULLSCREEN=1`, black bars on a screen that is not 16:9 (ultrawide); uses a little more VRAM |
|
||||
| `VICTORY_BVH_BUILDER=0` | No ray tracing |
|
||||
| `VICTORY_BVH_HARDWARE=0` | Ray tracing without the card's own node test |
|
||||
| `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_PAGE_PASS_MS`, `VICTORY_PAGE_MOVE_MB` | Paging interval and pass budget, default 400 ms and 32 MiB |
|
||||
| `VICTORY_PAGE_ADAPTIVE=1` | Adjust the discretionary page budget using migration time and render-thread present intervals |
|
||||
| `VICTORY_PAGE_SAMPLE=1`, `VICTORY_LOOP_PROBE=<shader hash prefix>` | Sample pages visited by a selected BVH traversal shader in a diagnostics build |
|
||||
| `VICTORY_POOL_MOVE=1` | Drain occupied texture blocks under VRAM pressure |
|
||||
| `VICTORY_CARD_PULL=0` | The CPU reads title memory on the card itself; `1`: always by the card's copies. Unset, copies only where the CPU reads it under 1000 MB/s (the log's `unified memory: the CPU reads` line says how fast) |
|
||||
| `VICTORY_PAGES_SEEN=1` | Also move to the card title pages it was only shown, never read hot (off: they filled VRAM at 8 MB/s) |
|
||||
| `KEEP_FREE=4096` | MiB of RAM left to the rest of the system (default 8192); the game gets what is available less this, and stutters under 12 GiB |
|
||||
| `VICTORY_FSR_4K=performance` | FSR 4 (quality, balanced or performance) to `VICTORY_OUTPUT`, 4K unless set, after `./setup.sh fsr4` |
|
||||
| `VICTORY_FIDELITYFX_FRAMEGEN=1` | AMD frame generation (FSR 3.1) on top of `VICTORY_FSR_4K`. An interface the title presents on a plane of its own stays sharp; otherwise it is interpolated with the scene |
|
||||
| `VICTORY_FIDELITYFX_FRAMEGEN_DIRECT=1` | With `VICTORY_FIDELITYFX_FRAMEGEN=1`: frame generation without AMD's proxy swap chain. The frames are generated and presented on VIctory's own queue, the real one about half a frame after the generated one, so the proxy's second queue does not share the card's only graphics queue with the game (RADV). Off by default; the log's `stats: fg_direct` line counts the presents and where the real frames landed |
|
||||
| `VICTORY_FIDELITYFX_FRAMEGEN_DEBUG=7` | AMD's frame generation overlays, summed: 1 tear lines, 2 reset indicators, 4 debug view, 16 pacing lines (the proxy only) |
|
||||
| `VICTORY_UI_PLANE=3840x2160` | Separate 4K HUD plane, including with host FSR |
|
||||
| `VICTORY_FSR_HOST=1` | FSR 4 for the title's own upscaling at its own sizes, any profile (Series S: 720p to 1080p), after `./setup.sh fsr4` |
|
||||
| `VICTORY_PRESENT_TIMING=1` | Log time spent in Present, successful render presents, SDK-generated frames and DXGI display timestamps where available |
|
||||
| `VICTORY_LATE_FENCE=1` | Submit behind in-flight cross-queue fences instead of draining on the CPU; helps some 1% lows |
|
||||
| `VICTORY_LOD_SCALE=0.35` | How far detailed models reach: 1.0 (the title's) is 1,000 m, 0.1 is 145 m. 0.05 to 1.0; fewer draws, more pop-in |
|
||||
| `VICTORY_SMALL_CULL=2.5` | Small objects go sooner the higher it is (the title's 1.0; 0.25 to 128) |
|
||||
| `VICTORY_VEHICLE_LOD_BIAS=0.5` | Simpler distant vehicles the higher it is (the title's 0.0; -2 to 4) |
|
||||
| `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_WARM_JOBS=32` | Processes that prepare the pipelines (1 to 64; default two thirds of the logical processors, at most 16) |
|
||||
| `VICTORY_WARM_SYNC=1` | Sync each prepared pipeline's file to the disk as it is written, as before (slower) |
|
||||
| `VICTORY_PLACED_COPIED=1` | Share GPU-written mips with compatible placed views, including views made after a copy. Off by default |
|
||||
| `VICTORY_KEEP_GPU_WRITTEN=1` | Preserve individual GPU-written mips through deferred title uploads. Enabled by `VICTORY_PLACED_COPIED=1` unless explicitly set to `0` |
|
||||
| `VICTORY_GLASS_DITHER_OFF=1` | House window glass: stop the stripes that blink every other frame |
|
||||
| `VICTORY_GLASS_DIRT_OPACITY=0.4` | House window glass: the dirt opacity that removes the grey vertical drips; 0.4 keeps the panes' average brightness |
|
||||
| `VICTORY_KILL_CONTINUE=1` | Keep killed pixels in their quad, for the frosted-glass blinking lines |
|
||||
| `VICTORY_PANEL=full` | Performance panel: `full` (everything), `compact` (graph and a summary line), `fps` (just the frame rate) or `off`. `F3` hides it, `Shift+F3` steps through the modes; the in-game menu changes it at once |
|
||||
| `VICTORY_LOG=warn` | How much VIctory logs: `info` (default), `warn`, `error` or `off`; quieter runs format and write less text. Also takes a filter such as `victory_gpu=warn,info`. `VERBOSE=1` turns the Wine, vkd3d-proton and DXVK lines back on |
|
||||
| `VICTORY_PRESET=medium` | Settings preset: `potato`, `low`, `medium`, `high` or `ultra` (see [Presets](#presets)); individual settings override it |
|
||||
| `VICTORY_MENU=0` | In-game settings menu on `F1` (on by default; `0` turns it off): Up/Down select, Left/Right change, Del clear. It shows and edits the settings of this table in `run.conf` (commented or missing: not set), saves them at once, and they apply at the next start (the menu's "Save and restart game" row restarts for you, "Quit game" closes it). Every setting, with its description and default, is listed in `run.conf.default`: add a switch there and it appears in the menu |
|
||||
| `MUTE=1` | No sound |
|
||||
| `LSFGVK_PROFILE=<profile>` | [lsfg-vk](https://lsfg-vk.dev) 2.x frame generation with that profile of its `conf.toml` (`LSFG_PROCESS=<entry>` for lsfg-vk 1.0). Off by default |
|
||||
`wine` is required when Proton is not used. Proton is auto-detected unless
|
||||
`USE_SYSTEM_WINE=1`; `PROTON=` overrides the detection.
|
||||
|
||||
## Presets
|
||||
## Build and update
|
||||
|
||||
`VICTORY_PRESET=potato|low|medium|high|ultra` applies one of the presets in
|
||||
`presets/<preset>.conf`. The F1 menu lists the same five. Settings in `run.conf`
|
||||
or after the mode on the command line override the preset:
|
||||
`setup.sh` fetches and builds Mesa, vkd3d-proton, a patched Wine server (unless
|
||||
Proton is used), the Windows SDK and VIctory itself. `./setup.sh fsr4` is the
|
||||
optional FSR 4 step. `build.sh` builds the Windows target; `update.sh` merges
|
||||
the latest `origin/main` and rebuilds.
|
||||
|
||||
```bash
|
||||
See [docs/BUILD.md](docs/BUILD.md) for versions, required packages and the
|
||||
single-step rebuild commands.
|
||||
|
||||
## Running
|
||||
|
||||
| Command | Effect |
|
||||
|---|---|
|
||||
| `./run.sh shaders` | Translates every shader in `shaders.rpf` into the shader cache |
|
||||
| `./run.sh warm` | Prepares pipelines |
|
||||
| `./run.sh play` | Runs the game, preparing pipelines first unless `VICTORY_WARM=0` |
|
||||
|
||||
The launcher warns when GPU-accessible memory (GTT) is below 10240 MiB.
|
||||
`KEEP_FREE` leaves 8192 MiB of RAM to the system by default, or 2048 MiB on
|
||||
hosts with 18 GiB or less. Below 12288 MiB available for the game, it may swap
|
||||
and stutter. A `systemd-inhibit sleep:idle` lock is held while the game runs.
|
||||
|
||||
## Configuration
|
||||
|
||||
Put settings in `run.conf`, or after the mode:
|
||||
|
||||
```sh
|
||||
./run.sh play VICTORY_PRESET=medium
|
||||
```
|
||||
|
||||
Presets do not change `VICTORY_OUTPUT`; choose the output size separately.
|
||||
> **`VICTORY_*` variables set before `./run.sh` are cleared.** Put them after the
|
||||
> mode instead.
|
||||
|
||||
| Preset | Target | Ray tracing | FSR 4 | Detail |
|
||||
|---|---|---|---|---|
|
||||
| `potato` | 8 GB cards, slow CPUs | off | performance | minimum LOD, shadows and volumetrics |
|
||||
| `low` | 8–12 GB cards | off | performance | low LOD, shadows and foliage |
|
||||
| `medium` | 12–16 GB cards | off | balanced | reduced LOD and shadow distance |
|
||||
| `high` | 16 GB cards | off | quality | near-stock LOD without ray tracing, 1024 shadows, 2 cascades |
|
||||
| `ultra` | 16 GB+ cards | on | quality | the title's own detail, ray tracing on |
|
||||
Precedence, from lowest to highest:
|
||||
|
||||
`potato` and `low` trade visible LOD and shadow pop for frame time; `medium`
|
||||
is the first profile that keeps tree and foliage detail close to stock.
|
||||
1. Preset files
|
||||
2. `run.conf`
|
||||
3. `NAME=value` arguments after the mode
|
||||
|
||||
Example in-world results on an **RX 9070 XT 16 GB, Ryzen 7 7800X3D, 32 GB,
|
||||
1920×1080** setup, from 3–5 minute runs. These are rough: the route and sample
|
||||
count differed between runs, and “min 5 s” is the worst 5-second window, not a
|
||||
`F1` opens the in-game menu. It is on by default; `VICTORY_MENU=0` disables it.
|
||||
The menu edits `run.conf` directly, keeps comments and unknown lines, and saves
|
||||
at once. Changes apply at the next start, except `VICTORY_PANEL`, which applies
|
||||
immediately. Choosing a preset writes its name and clears explicit overrides
|
||||
for the settings it owns; preset values are not copied into the file. An
|
||||
existing `local/menu.conf` is migrated once, with a backup at
|
||||
`local/run.conf.before-menu`.
|
||||
|
||||
> Settings without an explicit choices list only cycle `0|1` in the menu,
|
||||
> including numeric ones. Edit `run.conf` for other values.
|
||||
|
||||
### Common settings
|
||||
|
||||
| Setting | Default | Effect |
|
||||
|---|---|---|
|
||||
| `CONSOLE` | `series-x` | `series-x` or `series-s` |
|
||||
| `VICTORY_PRESET` | unset | `potato`, `low`, `medium`, `high`, `ultra` |
|
||||
| `VICTORY_OUTPUT` | `2560x1440` | Output size; with FSR 4, 3840x2160 unless set |
|
||||
| `VICTORY_FULLSCREEN` | unset | `1`: borderless fullscreen |
|
||||
| `VICTORY_FRAME_INTERVAL_MS` | unset | 16.667 is 60 fps, 33.333 is 30 fps, 0 is no wait |
|
||||
| `VICTORY_FSR_4K` | unset | FSR 4 to the output size; requires `CONSOLE=series-x` and `./setup.sh fsr4` |
|
||||
| `VICTORY_FIDELITYFX_FRAMEGEN` | unset | AMD frame generation over FSR 4 |
|
||||
| `VICTORY_BVH_BUILDER` | `1` | `0`: no ray tracing |
|
||||
| `VICTORY_CARD_PULL` | unset | `0`: CPU reads GPU memory; `1`: GPU copies; unset auto |
|
||||
| `VICTORY_PANEL` | `full` | `full`, `compact`, `fps`, `off`; `F3` hides, `Shift+F3` steps |
|
||||
| `VICTORY_LOG` | `info` | `info`, `warn`, `error`, `off` |
|
||||
| `VICTORY_KBM_PC` | unset | `1`: PC-style keyboard and mouse |
|
||||
| `VICTORY_DUALSENSE` | unset | `1`: DualSense light bar, triggers and haptics |
|
||||
| `VICTORY_DUALSHOCK` | unset | `1`: DualShock 4 light bar only |
|
||||
| `VICTORY_WARM` | unset | `0`: no pipeline preparation |
|
||||
| `KEEP_FREE` | `8192` | MiB of RAM left to the system; 2048 on hosts with 18 GiB or less |
|
||||
|
||||
The full reference, including ranges, defaults and diagnostics-only switches, is
|
||||
in [docs/SETTINGS.md](docs/SETTINGS.md). `run.conf.default` is the source for
|
||||
the menu and descriptions.
|
||||
|
||||
## Presets
|
||||
|
||||
Preset files are in `presets/`. Select one with `VICTORY_PRESET` or in the `F1`
|
||||
menu. Individual settings override it. Presets do not set the output resolution.
|
||||
|
||||
| Preset | Intended hardware | Ray tracing | FSR 4 |
|
||||
|---|---|---|---|
|
||||
| `potato` | 8 GB cards, slow CPUs | off | performance |
|
||||
| `low` | 8-12 GB cards | off | performance |
|
||||
| `medium` | 12-16 GB cards | off | balanced |
|
||||
| `high` | 16 GB cards | off | quality |
|
||||
| `ultra` | 16 GB+ cards | on | quality |
|
||||
|
||||
Every preset sets `VICTORY_FSR_4K`, which requires `CONSOLE=series-x` and
|
||||
`./setup.sh fsr4`. Exact values are in the preset files.
|
||||
|
||||
Measured on a 16 GB AMD GPU, 8-core AMD CPU, 32 GB RAM at 1080p, runs of 3-5
|
||||
minutes (empirical):
|
||||
|
||||
| Preset | Avg FPS | Median | Min 5 s |
|
||||
|---|---:|---:|---:|
|
||||
| potato | 45.0 | 45.0 | 15.7 |
|
||||
| low | 39.5 | 40.9 | 23.2 |
|
||||
| medium | 35.8 | 36.1 | 14.9 |
|
||||
| high | 34.8 | 34.8 | 21.2 |
|
||||
| ultra | 28.5 | 27.4 | 15.8 |
|
||||
|
||||
The route and sample count varied. "Min 5 s" is the worst 5-second window, not a
|
||||
per-frame 1% low.
|
||||
|
||||
| Preset | Avg FPS | Median | Min 5 s | Look |
|
||||
|---|---:|---:|---:|---|
|
||||
| `potato` | 45.0 | 45.0 | 15.7 | very visible LOD and shadow pop |
|
||||
| `low` | 39.5 | 40.9 | 23.2 | some pop, much less than potato |
|
||||
| `medium` | 35.8 | 36.1 | 14.9 | clean tree/foliage detail |
|
||||
| `high` | 34.8 | 34.8 | 21.2 | clean, higher detail, no RT |
|
||||
| `ultra` | 28.5 | 27.4 | 15.8 | stock detail, ray tracing on |
|
||||
## Controls
|
||||
|
||||
The preset files are examples as well: copy their lines into `run.conf`, or
|
||||
select a preset in F1 and change individual rows afterwards. To compare runs,
|
||||
`tools/session-fps.sh [log] [min-draws]` summarises the in-world
|
||||
`stats: frame` samples (average, median, min, max and preparation/copy time).
|
||||
A controller works, as does the keyboard while the window has focus.
|
||||
|
||||
The residency log includes the duration of the last pass and the number of
|
||||
pages demoted after a CPU access within two seconds of promotion. Use
|
||||
`VICTORY_RT_STAMPS=1` in a diagnostics build to compare GPU dispatch timings
|
||||
between runs. The BVH page samples locate shader accesses and report residency
|
||||
at readback time. Compare runs with fixed paging settings to measure benefit.
|
||||
| Keys | Controller |
|
||||
|---|---|
|
||||
| W/A/S/D, I/J/K/L | Left stick, right stick |
|
||||
| Arrows | D-pad |
|
||||
| Enter, Backspace, X, Y | A, B, X, Y |
|
||||
| Q/E, Z/C | Shoulders, triggers |
|
||||
| F/H | Stick clicks |
|
||||
| Esc, Tab | Menu, View |
|
||||
|
||||
Present timing reports successful render-thread calls and the SDK's generated
|
||||
count for the current generator. DXGI timestamps are optional and one sample
|
||||
can cover several display presents. Compare at the same save, output size and
|
||||
refresh rate. At 60 Hz with one generated frame per rendered frame, the target
|
||||
render interval is about 33.3 ms.
|
||||
|
||||
With `VICTORY_NATIVE_GRAPHICS=1`, native 0x1c8 pipelines cache variants by
|
||||
bound target formats, depth, sample count and topology. The NGG translator
|
||||
accepts fixed, directly drawn procedural triangles with a three-vertex,
|
||||
one-primitive allocation and literal connectivity (0, 1, 2).
|
||||
|
||||
To compare raw SRV load reuse across branches, use `VICTORY_SHADER_OPT=63`
|
||||
for the default passes and `VICTORY_SHADER_OPT=191` to add the experimental
|
||||
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.
|
||||
|
||||
### Compare an Xbox frame with a Victory recording
|
||||
|
||||
The diagnostics build can compare the images in a completed `VICTORY_RECORD`
|
||||
capture with SDR PNGs from the console. Match the game build, scene, camera,
|
||||
output dimensions, SDR color space and frame order before comparing. For one
|
||||
present, pass one opaque 8-bit RGB PNG. For a sequence captured with
|
||||
`VICTORY_RECORD_FRAMES=N`, pass a directory containing `frame-1.png` through
|
||||
`frame-N.png`, one Xbox reference per recorded present.
|
||||
|
||||
```sh
|
||||
victory replay compare-xbox capture-1 xbox-frames --out comparison
|
||||
```
|
||||
|
||||
Open `comparison/index.html` to see the Xbox reference, recorded Victory
|
||||
image and difference mask for each present. By default any RGB difference
|
||||
counts. `--threshold 3` highlights a pixel when any channel differs by more
|
||||
than three 8-bit values. The report directory must be new.
|
||||
|
||||
The replay traces up to six regional peak differences per frame. Click an
|
||||
image for coordinates, or select exact output pixels on a new run with
|
||||
`--pixel 640,360 --pixel 900,500`. The table shows the last observed change
|
||||
at each probe. The command log records list and command indices, pipeline
|
||||
names where available, and raw texel values before and after each change.
|
||||
These probes observe the presented texture. A final copy can lead back to an
|
||||
intermediate texture through the ordinary `replay --pixel` tool. Writes of
|
||||
identical values have no observable change. Each traced present reports
|
||||
whether its replay reproduced the recorded RGB image. Image comparison also
|
||||
works when GPU replay is unavailable. The comparison uses the capture and
|
||||
reference PNGs independently of a game installation.
|
||||
`VICTORY_KBM_PC=1` adds a PC-style keyboard and mouse layout. The full layout,
|
||||
mouse-lock keys, DualSense/DualShock details and controller settings are in
|
||||
[docs/CONTROLS.md](docs/CONTROLS.md).
|
||||
|
||||
## Benchmark
|
||||
|
||||
`./run.sh play VICTORY_BENCH=rt` (or `nort` for no ray tracing) runs a
|
||||
[PortWatch](https://portwatch-vi.xyz/lab/#report) benchmark: Series X, FSR 4
|
||||
Quality to 3840x2160, no frame generation, intro skipped, full panel. It presses
|
||||
Enter through the first minute, closes after `VICTORY_BENCH_MINUTES` (5 by
|
||||
default, 1 to 240), saves `screenshot.png` and `bench_stats.txt` under
|
||||
`local/benchmark/<date>-rt|nort/`, writes `bench_results.txt`, and restarts
|
||||
with your settings. A crash writes the results and restarts too.
|
||||
```sh
|
||||
./run.sh play VICTORY_BENCH=rt
|
||||
./run.sh play VICTORY_BENCH=nort
|
||||
```
|
||||
|
||||
Put these after the mode like other settings, or in `run.conf`; a
|
||||
`VICTORY_...=... ./run.sh` prefix is cleared.
|
||||
`rt` runs with ray tracing on, `nort` with it off. `VICTORY_BENCH_MINUTES` sets
|
||||
the length: 1 to 240, default 5. The run uses Series X, FSR 4 Quality to
|
||||
3840x2160, no frame generation, intro skipped and the full panel.
|
||||
|
||||
## Controls
|
||||
Input: a gamepad connected or the keyboard as a pad while the window has focus:
|
||||
Enter (and the first controller's A) is pressed once a second from 5 to 65
|
||||
seconds. The game closes after the requested time. For runs of 2 minutes or
|
||||
more, stats leave out the first 60 seconds.
|
||||
|
||||
| Keys | Pad |
|
||||
|---|---|
|
||||
| W A S D / I J K L | left / right stick |
|
||||
| arrows | D-pad |
|
||||
| Enter, Backspace, X, Y | A, B, X, Y |
|
||||
| Q / E, Z / C | shoulders, triggers |
|
||||
| F / H | stick clicks |
|
||||
| Esc, Tab | Menu, View |
|
||||
`screenshot.png`, `bench_stats.txt` and `bench_results.txt` are saved under
|
||||
`local/benchmark/<date>-rt|nort/`. Reported figures are average, slowest and
|
||||
quickest whole second, 1% low, peak video memory and working set; no frame-time
|
||||
log is made. The game restarts with your settings; a crash also writes results
|
||||
and restarts. Uploading to the [PortWatch](https://portwatch-vi.xyz/lab/#report)
|
||||
form is manual.
|
||||
|
||||
With `VICTORY_KBM_PC=1` (off by default), the keyboard and mouse use a PC-style layout:
|
||||
## Diagnostics and development
|
||||
|
||||
| Input | Pad |
|
||||
|---|---|
|
||||
| `W A S D` | left stick |
|
||||
| `I J K L` | right stick fallback (mouse look when locked) |
|
||||
| mouse | right stick; `F2` or the backtick/tilde key locks/unlocks; `Esc`/`P` unlocks |
|
||||
| left mouse / right mouse | RT / LT |
|
||||
| `Left Shift` / `Right Shift`, `Enter` | A (sprint, confirm) |
|
||||
| `Space`, `X` | X (jump, climb, vault) |
|
||||
| `R`, `Backspace` | B (reload/melee, back/cancel) |
|
||||
| `F` | Y (enter/exit vehicle) |
|
||||
| `Tab` | LB (weapon wheel) |
|
||||
| `Q` | RB (cover/handbrake) |
|
||||
| `Left Ctrl` / `Right Ctrl` | L3 (crouch/stealth/horn) |
|
||||
| `C`, `Caps Lock`, `H`, middle mouse | R3 (look behind/special) |
|
||||
| `E`, `Right arrow` | D-pad Right (interact/talk) |
|
||||
| `Up arrow`, `M` | D-pad Up (phone/menu) |
|
||||
| `Down arrow`, `Z` | D-pad Down (character wheel/minimap) |
|
||||
| `Left arrow`, `G` | D-pad Left (throw/context left) |
|
||||
| `Esc` | Menu (also unlocks mouse look) |
|
||||
| `P` | Pause/Map (also unlocks mouse look) |
|
||||
| `V` | View |
|
||||
Build the diagnostics profile with `PROFILE=diag ./build.sh`. Page sampling, RT
|
||||
timestamps, capture/replay, shader optimization switches and the Xbox frame
|
||||
comparison are documented in
|
||||
[docs/DIAGNOSTICS.md](docs/DIAGNOSTICS.md).
|
||||
|
||||
`VICTORY_MOUSE_SENS` scales mouse look; `VICTORY_MOUSE_INVERT_Y=1` inverts Y.
|
||||
`tools/session-fps.sh [log] [min-draws]` summarizes in-world `stats: frame`
|
||||
samples.
|
||||
|
||||
With `VICTORY_DUALSENSE=1` (off by default), a DualSense shows what the PS5
|
||||
build of the game sends it: the light bar's colours, the adaptive triggers'
|
||||
effects, and the haptics on its actuators. Rumble stays as it is and adds to
|
||||
the haptics, as on the PS5. The light bar and triggers are written to the
|
||||
controller's `/dev/hidrawN`, which must be writable by you (Steam's udev rules
|
||||
do that); the haptics play on channels 3 and 4 of its USB audio device. Wired
|
||||
(USB) only: the light bar and triggers over Bluetooth are untested, and the
|
||||
haptics need USB. `VICTORY_HAPTICS_GAIN_DB` sets the haptics' strength (8 by
|
||||
default); `VICTORY_HAPTICS_LOG=1` logs their levels.
|
||||
## Troubleshooting: Wine crashes and freezes
|
||||
|
||||
With `VICTORY_DUALSHOCK=1` (off by default), a DualShock 4 on USB or Bluetooth
|
||||
shows the PS5 build's light bar colours. It has no adaptive triggers or
|
||||
actuator haptics; those need a DualSense.
|
||||
|
||||
`VICTORY_RUMBLE_GAIN` scales either pad's motors (2 by default);
|
||||
`VICTORY_DUALSENSE_RUMBLE=0` leaves them alone.
|
||||
|
||||
## Wine
|
||||
|
||||
A crash in `ntdll.dll` (`RtlWakeAddressSingle`, a read near null) or a freeze
|
||||
at a random moment, minutes or hours in, is Wine's wait-on-address wake race,
|
||||
fixed in Wine by `81e52628b` (2026-10-14). `tools/wake-race.sh` tells whether
|
||||
the Wine or Proton you run on has it; if it does, use one that has that commit.
|
||||
A crash in `ntdll.dll` (`RtlWakeAddressSingle`, a read near null) or a random
|
||||
freeze, minutes or hours in, points to a known Wine wait-on-address race. It is
|
||||
fixed by Wine commit `81e52628b` (2026-10-14). `tools/wake-race.sh` tests
|
||||
whether your Wine or Proton has the fix.
|
||||
|
||||
## 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
|
||||
Changes to Mesa, vkd3d-proton and Wine are in `patches/`. Edit under
|
||||
`deps/<name>`, rebuild with `./setup.sh <name>`, and save with
|
||||
`tools/patch.sh <name>`.
|
||||
|
||||
## Repacks and third-party distributions
|
||||
|
||||
This project does not collaborate with, endorse or support groups that
|
||||
repackage it with proprietary code, assets, keys or cracks. A package that
|
||||
bundles any of those is not this project, and problems caused by one are out of
|
||||
scope. Do not ask for, link to or distribute such packages here.
|
||||
This project does not collaborate with, endorse or support repacks that include
|
||||
proprietary code, assets, keys or cracks. Such a package is not this project,
|
||||
and problems it causes are out of scope. Do not ask for, link to or distribute
|
||||
them.
|
||||
|
||||
If you share a build, share this repository's source and let each user supply
|
||||
their own copy. Do not put proprietary files in a release archive.
|
||||
If you share a build, share this repository's source only and let each user
|
||||
supply their own copy. Do not put proprietary files in a release archive.
|
||||
|
||||
## Credits
|
||||
|
||||
@ -288,7 +225,7 @@ through [avatarmanz](https://github.com/avatarmanz/VIctory-7900XTX),
|
||||
[triippywhale](https://github.com/triippywhale/VIctory-7900XTX),
|
||||
[trustno1-coder](https://github.com/trustno1-coder/VIctory-NVIDIA),
|
||||
[PastiiJay](https://github.com/PastiiJay/klbf-lab), Geckomacabre,
|
||||
cxy0072019-sketch and [gassy](https://codeberg.org/erry/coasting/src/branch/sex) for being a larper
|
||||
cxy0072019-sketch and [gassy](https://codeberg.org/erry/coasting/src/branch/sex).
|
||||
|
||||
## License
|
||||
|
||||
|
||||
82
docs/BUILD.md
Normal file
82
docs/BUILD.md
Normal file
@ -0,0 +1,82 @@
|
||||
# Build and setup
|
||||
|
||||
[Back to README](../README.md)
|
||||
|
||||
## Requirements
|
||||
|
||||
Required tools:
|
||||
|
||||
```text
|
||||
git curl unzip tar xz python3 pkg-config ninja glslangValidator
|
||||
clang-cl lld-link llvm-lib
|
||||
x86_64-w64-mingw32-gcc x86_64-w64-mingw32-g++
|
||||
x86_64-w64-mingw32-strip widl cargo rustup make flex bison
|
||||
systemd-run unshare
|
||||
```
|
||||
|
||||
`wine` is also required when Proton is not used.
|
||||
|
||||
Mesa `pkg-config` requirements:
|
||||
|
||||
```text
|
||||
libdrm >= 2.4.133
|
||||
libdrm_amdgpu >= 2.4.133
|
||||
xcb
|
||||
xcb-randr
|
||||
x11-xcb
|
||||
xcb-dri3 >= 1.13
|
||||
xcb-present >= 1.13
|
||||
xcb-shm
|
||||
xcb-sync
|
||||
xshmfence >= 1.1
|
||||
xcb-xfixes
|
||||
xrandr >= 1.3
|
||||
wayland-client >= 1.18
|
||||
wayland-server >= 1.18
|
||||
wayland-protocols >= 1.49
|
||||
```
|
||||
|
||||
## Setup, build and update
|
||||
|
||||
### setup.sh
|
||||
|
||||
> **Do not run as root or with `sudo`.** `setup.sh` refuses to.
|
||||
|
||||
| Command | Effect |
|
||||
|---|---|
|
||||
| `./setup.sh` | Runs `sdk dlls mesa vkd3d wine prefix victory` |
|
||||
| `./setup.sh fsr4` | Optional FSR 4 step; also needs files from Proton |
|
||||
| `./setup.sh <step>` | Rebuilds one step |
|
||||
|
||||
It fetches and builds:
|
||||
|
||||
- Mesa `26.3.1`
|
||||
- vkd3d-proton commit `71cae091b06571e51446cf2a937f0b04c237c04d`
|
||||
- xwin `0.10.0`
|
||||
- DXC `1.9.2609` (`dxc_2026_09_29`)
|
||||
- DXVK `3.1.1` (`dxgi.dll`)
|
||||
- `d3dcompiler_47.dll` from fxc2
|
||||
- FSR 4 SDK `2.4.0`; driver `amdxcffx64 v4.1.1`
|
||||
- Wine source and a patched Wine server, unless Proton is used
|
||||
|
||||
Dependencies are built under `deps/`. Saves, caches and logs are kept in `local/`.
|
||||
|
||||
Proton is auto-detected unless `USE_SYSTEM_WINE=1`. `PROTON=` overrides the detection.
|
||||
|
||||
### build.sh
|
||||
|
||||
- Builds the Windows target `x86_64-pc-windows-msvc` with `clang-cl`, `lld-link`,
|
||||
`llvm-lib` and the xwin Windows SDK.
|
||||
- Uses `-C target-cpu=x86-64-v3`.
|
||||
- Runs under `systemd-run --user` with a memory cap and `nice`.
|
||||
- Default build timeout: 1800 seconds.
|
||||
- `PROFILE=diag` builds the diagnostics profile.
|
||||
|
||||
### update.sh
|
||||
|
||||
`update.sh` fetches `origin/main`, lists new commits, merges, then runs
|
||||
`./build.sh`.
|
||||
|
||||
- It refuses root, non-git checkouts and tracked uncommitted changes.
|
||||
- It aborts on a merge conflict.
|
||||
- It never pushes.
|
||||
60
docs/CONTROLS.md
Normal file
60
docs/CONTROLS.md
Normal file
@ -0,0 +1,60 @@
|
||||
# Controls
|
||||
|
||||
[Back to README](../README.md)
|
||||
|
||||
A connected controller works, as does the keyboard while the window has focus.
|
||||
|
||||
### Default keyboard layout
|
||||
|
||||
| Keys | Controller |
|
||||
|---|---|
|
||||
| W/A/S/D, I/J/K/L | Left stick, right stick |
|
||||
| Arrows | D-pad |
|
||||
| Enter, Backspace, X, Y | A, B, X, Y |
|
||||
| Q/E, Z/C | Shoulders, triggers |
|
||||
| F/H | Stick clicks |
|
||||
| Esc, Tab | Menu, View |
|
||||
|
||||
### PC-style layout (`VICTORY_KBM_PC=1`)
|
||||
|
||||
| Input | Controller |
|
||||
|---|---|
|
||||
| W/A/S/D | Left stick |
|
||||
| I/J/K/L | Right stick fallback |
|
||||
| Mouse | Right stick when locked |
|
||||
| `F2`, backtick/tilde or `F6` | Toggles mouse lock |
|
||||
| Left / right mouse | RT / LT |
|
||||
| Left Shift / Right Shift, Enter | A |
|
||||
| Space, X | X |
|
||||
| R, Backspace | B |
|
||||
| F | Y |
|
||||
| Tab | LB |
|
||||
| Q | RB |
|
||||
| Left Ctrl / Right Ctrl | L3 |
|
||||
| C, Caps Lock, H, middle mouse | R3 |
|
||||
| E, Right arrow | D-pad Right |
|
||||
| Up arrow, M | D-pad Up |
|
||||
| Down arrow, Z | D-pad Down |
|
||||
| Left arrow, G | D-pad Left |
|
||||
| Esc | Menu (also unlocks the mouse) |
|
||||
| P | Pause/Map (also unlocks the mouse) |
|
||||
| V | View |
|
||||
|
||||
`VICTORY_MOUSE_SENS` scales mouse look; `VICTORY_MOUSE_INVERT_Y=1` inverts Y.
|
||||
|
||||
### DualSense (`VICTORY_DUALSENSE=1`)
|
||||
|
||||
- Light bar, adaptive triggers and actuator haptics, as sent by the PS5 build.
|
||||
- Rumble adds to the haptics.
|
||||
- Light bar and trigger output goes through `/dev/hidrawN`, which **must be
|
||||
writable by you** (Steam's udev rules do this).
|
||||
- Haptics use channels 3 and 4 of the controller's USB audio device.
|
||||
- **Haptics need wired USB.** Light bar and triggers over Bluetooth are untested.
|
||||
|
||||
### DualShock 4 (`VICTORY_DUALSHOCK=1`)
|
||||
|
||||
Light bar colours only, over USB or Bluetooth. No adaptive triggers or actuator
|
||||
haptics.
|
||||
|
||||
`VICTORY_RUMBLE_GAIN` and `VICTORY_DUALSENSE_RUMBLE=0` apply to both Sony
|
||||
controllers.
|
||||
75
docs/DIAGNOSTICS.md
Normal file
75
docs/DIAGNOSTICS.md
Normal file
@ -0,0 +1,75 @@
|
||||
# Diagnostics and development
|
||||
|
||||
[Back to README](../README.md)
|
||||
|
||||
Build the diagnostics profile with:
|
||||
|
||||
```sh
|
||||
PROFILE=diag ./build.sh
|
||||
```
|
||||
|
||||
| Setting | Effect |
|
||||
|---|---|
|
||||
| `VICTORY_PAGE_SAMPLE=1`, `VICTORY_LOOP_PROBE=<shader hash prefix>` | Samples pages visited by a selected BVH traversal shader (diagnostics build) |
|
||||
| `VICTORY_RT_STAMPS=1` | GPU dispatch timings for comparing runs (diagnostics build) |
|
||||
| `VICTORY_RECORD`, `VICTORY_RECORD_FRAMES` | Diagnostics capture |
|
||||
| `VICTORY_SHADER_OPT=63` or `191` | `63`: default shader optimization passes. `191`: adds the experimental pass |
|
||||
| `VICTORY_NATIVE_GRAPHICS=1` | Native pipeline variants |
|
||||
| `VICTORY_FIDELITYFX_FRAMEGEN_DEBUG=7` | Frame-generation overlay bits, summed: 1 tear lines, 2 reset indicators, 4 debug view, 16 pacing lines (proxy only) |
|
||||
|
||||
### Performance analysis
|
||||
|
||||
```sh
|
||||
tools/session-fps.sh [log] [min-draws]
|
||||
```
|
||||
|
||||
Replace or omit the bracketed arguments. The tool summarizes in-world
|
||||
`stats: frame` samples: average, median, min, max, preparation time and copy
|
||||
time.
|
||||
|
||||
- Compare runs with fixed paging settings, at the same save, output size and
|
||||
refresh rate.
|
||||
- The residency log gives the last pass duration and the number of pages demoted
|
||||
after a CPU access within two seconds of promotion.
|
||||
- BVH page samples locate shader accesses and report residency at readback.
|
||||
- Present timing reports successful render presents, generated frames and
|
||||
optional display timestamps. One timestamp sample can cover several display
|
||||
presents.
|
||||
- At 60 Hz with one generated frame per rendered frame, the target render
|
||||
interval is about 33.3 ms.
|
||||
- With `VICTORY_FIDELITYFX_FRAMEGEN_DIRECT=1`, the `stats: fg_direct` log line
|
||||
counts presents and shows where real frames landed.
|
||||
|
||||
### Native graphics and shader passes
|
||||
|
||||
With `VICTORY_NATIVE_GRAPHICS=1`, native `0x1c8` pipelines cache variants by
|
||||
target format, depth, sample count and topology. The NGG translator accepts
|
||||
fixed procedural triangles with 3 vertices, 1 primitive and connectivity 0,1,2.
|
||||
|
||||
Shader cache keys include `VICTORY_SHADER_OPT`. When comparing `63` with `191`,
|
||||
use the same capture with warm pipelines and check both the image and the GPU
|
||||
frame time.
|
||||
|
||||
### Compare an Xbox frame with a VIctory recording
|
||||
|
||||
Compare a completed `VICTORY_RECORD` capture with Xbox frame PNGs:
|
||||
|
||||
```sh
|
||||
victory replay compare-xbox capture-1 xbox-frames --out comparison
|
||||
```
|
||||
|
||||
- Match game build, scene, camera, output dimensions, SDR color space and frame
|
||||
order.
|
||||
- Supply one opaque 8-bit RGB PNG per recorded present, or a directory with
|
||||
`frame-1.png` to `frame-N.png`.
|
||||
- **The report directory must be new.** Open `comparison/index.html` to see each
|
||||
Xbox reference, recorded VIctory image and difference mask.
|
||||
- By default any RGB difference counts. `--threshold 3` highlights pixels where
|
||||
any channel differs by more than 3.
|
||||
- The replay traces up to six regional peak differences per frame. Click an image
|
||||
for coordinates, or probe exact pixels on a new run with
|
||||
`--pixel 640,360 --pixel 900,500`.
|
||||
- Probes observe the presented texture and show the last observed change. Use
|
||||
`replay --pixel` to follow a final copy back to an intermediate texture.
|
||||
Writes of identical values are not observable.
|
||||
- Image comparison works from the PNGs even when GPU replay is unavailable.
|
||||
129
docs/SETTINGS.md
Normal file
129
docs/SETTINGS.md
Normal file
@ -0,0 +1,129 @@
|
||||
# Settings reference
|
||||
|
||||
[Back to README](../README.md)
|
||||
|
||||
"Unset" means no value is defined by default. The "Values" column lists menu
|
||||
choices or the accepted range.
|
||||
|
||||
### Display and performance
|
||||
|
||||
| Setting | Default | Values | Effect |
|
||||
|---|---|---|---|
|
||||
| `VICTORY_PANEL` | `full` | full, compact, fps, off | Performance panel: everything, graph and summary line, frame rate only, or off. `F3` hides it; `Shift+F3` steps through modes |
|
||||
| `VICTORY_LOG` | `info` | info, warn, error, off | Log level (stderr and run log). Also accepts a filter such as `victory_gpu=warn,info` |
|
||||
| `VICTORY_PRESET` | unset | potato, low, medium, high, ultra | Preset base (see [Presets](../README.md#presets)) |
|
||||
| `CONSOLE` | `series-x` | series-x, series-s | Console profile |
|
||||
| `VICTORY_OUTPUT` | `2560x1440` | 1280x720, 1664x936, 1920x1080, 2560x1440, 3840x2160 | Output size. With FSR 4, 3840x2160 unless set |
|
||||
| `VICTORY_FULLSCREEN` | unset | 0, 1 | `1`: borderless fullscreen |
|
||||
| `VICTORY_FULLSCREEN_RES` | unset | Same sizes as `VICTORY_OUTPUT` | Fullscreen size, if not the screen's |
|
||||
| `VICTORY_PILLARBOX` | unset | 0, 1 | With `VICTORY_FULLSCREEN=1`, black bars on non-16:9 screens. Uses a little more VRAM |
|
||||
| `VICTORY_FRAME_INTERVAL_MS` | unset | 0, 16.667, 20, 33.333, 50, 100 | Frame interval in ms: 16.667 is 60 fps, 33.333 is 30 fps, 0 is no wait. Unset follows the title |
|
||||
|
||||
### Upscaling and frame generation
|
||||
|
||||
| Setting | Default | Values | Effect |
|
||||
|---|---|---|---|
|
||||
| `VICTORY_FSR_4K` | unset | quality, balanced, performance | FSR 4 to the output size. **Requires `CONSOLE=series-x` and `./setup.sh fsr4`** |
|
||||
| `VICTORY_FSR_HOST` | unset | 0, 1 | FSR 4 for the title's own upscaling at its own sizes, any profile (`CONSOLE=series-s`: 720p to 1080p). **Requires `./setup.sh fsr4`** |
|
||||
| `VICTORY_FIDELITYFX_FRAMEGEN` | unset | 0, 1 | AMD frame generation (FSR 3.1) over FSR 4. An interface presented on its own plane stays sharp; otherwise it is interpolated with the scene |
|
||||
| `VICTORY_FIDELITYFX_FRAMEGEN_DIRECT` | unset | 0, 1 | With `VICTORY_FIDELITYFX_FRAMEGEN=1`: no AMD proxy swap chain; frames are generated and presented on VIctory's own queue. The real frame is shown about half a frame after the generated one |
|
||||
| `VICTORY_UI_PLANE` | unset | 3840x2160 | Separate 4K HUD plane, including with host FSR |
|
||||
| `VICTORY_PRESENT_TIMING` | unset | 0, 1 | Logs Present time, successful render presents, generated frames and display timestamps where available |
|
||||
| `VICTORY_LATE_FENCE` | unset | 0, 1 | Submits behind in-flight cross-queue fences instead of draining on the CPU. Helps some 1% lows (empirical) |
|
||||
|
||||
### Input and audio
|
||||
|
||||
| Setting | Default | Values | Effect |
|
||||
|---|---|---|---|
|
||||
| `VICTORY_KBM_PC` | unset | 0, 1 | PC-style keyboard and mouse (see [Controls](CONTROLS.md)) |
|
||||
| `VICTORY_DUALSENSE` | unset | 0, 1 | DualSense on USB: light bar, adaptive triggers and haptics |
|
||||
| `VICTORY_DUALSHOCK` | unset | 0, 1 | DualShock 4 on USB or Bluetooth: light bar colours only |
|
||||
| `VICTORY_RUMBLE_GAIN` | `2` | 0.5 to 8 | Controller motor strength |
|
||||
| `VICTORY_DUALSENSE_RUMBLE` | unset | 0, 1 | `0`: leaves the motors of either Sony controller alone. The name is historical; it applies to both |
|
||||
| `VICTORY_HAPTICS_GAIN_DB` | `8` | 0, 4, 8, 12, 14 | DualSense haptics gain in dB |
|
||||
| `MUTE` | unset | 0, 1 | `1`: no sound |
|
||||
|
||||
### Ray tracing, memory and paging
|
||||
|
||||
| Setting | Default | Values | Effect |
|
||||
|---|---|---|---|
|
||||
| `VICTORY_BVH_BUILDER` | `1` | 0, 1 | Ray tracing; `0` turns it off |
|
||||
| `VICTORY_BVH_HARDWARE` | unset | 0, 1 | Ray tracing with the card's own node test; `0` runs without it |
|
||||
| `VICTORY_AMBIENT_ALPHA` | `1` | 0, 0.5, 1, 2, 4 | Holds the light volume of indoor dust and particles to this multiple of the surrounding light. `0`: the title's own |
|
||||
| `VICTORY_PAGES` | unset | 0, 1 | `0`: no title-memory paging; memory stays where it starts (RAM or card) |
|
||||
| `VICTORY_PAGE_PASS_MS` | `400` | 200, 400, 800 | Paging interval in ms |
|
||||
| `VICTORY_PAGE_MOVE_MB` | `32` | 16, 32, 64, 128 | Paging pass budget in MiB |
|
||||
| `VICTORY_PAGE_ADAPTIVE` | unset | 0, 1 | Adjusts the paging budget using migration time and present intervals |
|
||||
| `VICTORY_POOL_MOVE` | unset | 0, 1 | Drains occupied texture blocks under VRAM pressure |
|
||||
| `VICTORY_CARD_PULL` | unset | 0, 1 | How title memory on the card is read (details below) |
|
||||
| `VICTORY_PAGES_SEEN` | unset | 0, 1 | Also moves pages that were shown but never read hot to the GPU. Off by default because they filled VRAM at 8 MB/s (empirical) |
|
||||
| `KEEP_FREE` | `8192` | 2048, 4096, 8192, 12288 | MiB of RAM left to the system. 2048 by default on hosts with 18 GiB or less |
|
||||
|
||||
`VICTORY_CARD_PULL`:
|
||||
|
||||
- `0`: the CPU reads GPU memory.
|
||||
- `1`: the GPU copies it.
|
||||
- Unset: copies are used only where the CPU reads under 1000 MB/s. The runtime
|
||||
also disables copies after 64 MiB if they run below 1.25x CPU speed.
|
||||
- The log line `unified memory: the CPU reads` reports the CPU speed.
|
||||
|
||||
### Detail and scene
|
||||
|
||||
These are all optional. Where the default is unset, the title's own setting is
|
||||
kept.
|
||||
|
||||
| Setting | Default | Values | Effect |
|
||||
|---|---|---|---|
|
||||
| `VICTORY_LOD_SCALE` | `1.0` | 0.05 to 1.0 | Model detail distance. Lower: fewer draws, more pop-in. Empirical examples: 1.0 is 1,000 m, 0.1 is 145 m |
|
||||
| `VICTORY_SMALL_CULL` | `1.0` | 0.25 to 128 (menu: 1.0 to 16.0) | Small-object cull threshold. Higher removes small objects sooner |
|
||||
| `VICTORY_VEHICLE_LOD_BIAS` | `0.0` | -2 to 4 (menu: -1.0 to 4.0) | Higher simplifies distant vehicles sooner |
|
||||
| `VICTORY_LOW_SHADOWS` | unset | 512, 768, 1024, 1280, 1536, 2048 | Shadow map resolution |
|
||||
| `VICTORY_SHADOW_CASCADES` | unset | 1, 2, 3 | Active shadow cascades |
|
||||
| `VICTORY_SHADOW_DIST` | unset | low | Shorter extended and four-cascade shadow distances |
|
||||
| `VICTORY_GRASS_SHADOWS` | unset | 0 | Grass shadows off |
|
||||
| `VICTORY_SHADOW_EXTRAS` | unset | 0 | Alpha-tinted and particle shadows off |
|
||||
| `VICTORY_LOW_VOLUMETRIC` | unset | 1 | Forces the 128px, 7-mip volumetric/reflection map |
|
||||
| `VICTORY_VOLUMETRIC_QUALITY` | unset | 0 to 3 | Volumetric raymarch and lighting quality |
|
||||
| `VICTORY_TREE_QUALITY` | unset | 0 to 3 | Tree LOD quality |
|
||||
| `VICTORY_TREE_TESS` | unset | 0 | Tree tessellation off |
|
||||
| `VICTORY_FOLIAGE_TIER` | unset | 0 | Low foliage distance tier |
|
||||
| `VICTORY_TESS_LOW` | unset | 1 | Low tessellation and deep-surface quality |
|
||||
| `VICTORY_ITER_TIER` | unset | 0 | Low subsystem iteration count tier |
|
||||
| `VICTORY_WORLD_DIST_SCALE` | unset | 0.05 to 1.0 | Scales the squared world LOD0/LOD1/LOD2 distances |
|
||||
|
||||
### Startup and cache
|
||||
|
||||
| Setting | Default | Values | Effect |
|
||||
|---|---|---|---|
|
||||
| `VICTORY_SKIP_BINK` | unset | 1, all | `1`: skips one-time movies. `all`: also skips looping menu backgrounds, which stay dark |
|
||||
| `VICTORY_SKIP_INTRO` | unset | 0, 1 | Skips only the intro movie |
|
||||
| `VICTORY_WARM` | unset | 0, 1 | `0`: no pipeline preparation before start |
|
||||
| `VICTORY_WARM_JOBS` | unset | 1 to 64 | Pipeline preparation processes. Unset: two thirds of logical processors, at most 16, limited by memory |
|
||||
| `VICTORY_WARM_SYNC` | unset | 0, 1 | `1`: syncs each prepared pipeline file to disk (slower) |
|
||||
|
||||
### Textures and glass
|
||||
|
||||
| Setting | Default | Values | Effect |
|
||||
|---|---|---|---|
|
||||
| `VICTORY_PLACED_COPIED` | unset | 0, 1 | Shares GPU-written mips with compatible placed views, including views made after a copy |
|
||||
| `VICTORY_KEEP_GPU_WRITTEN` | unset | 0, 1 | Keeps GPU-written mips through deferred uploads. `VICTORY_PLACED_COPIED=1` enables it unless this is set to `0` |
|
||||
| `VICTORY_GLASS_DITHER_OFF` | unset | 0, 1 | Stops blinking stripes on house window glass |
|
||||
| `VICTORY_GLASS_DIRT_OPACITY` | unset | 0.2 to 0.6 | Removes grey vertical drips on house window glass; 0.4 keeps average brightness |
|
||||
| `VICTORY_KILL_CONTINUE` | unset | 0, 1 | Keeps killed pixels in their quad, for blinking frosted-glass lines |
|
||||
|
||||
### Runtime-only settings
|
||||
|
||||
These are not in `run.conf.default`, apart from `VICTORY_MENU=0`, which is
|
||||
mentioned in its header. Diagnostics settings are listed under
|
||||
[Diagnostics](DIAGNOSTICS.md).
|
||||
|
||||
| Setting | Effect |
|
||||
|---|---|
|
||||
| `VICTORY_MENU=0` | Disables the settings menu |
|
||||
| `VICTORY_MOUSE_SENS` | Scales mouse look |
|
||||
| `VICTORY_MOUSE_INVERT_Y=1` | Inverts mouse Y |
|
||||
| `VICTORY_HAPTICS_LOG=1` | Logs haptic levels |
|
||||
| `VICTORY_BENCH_MINUTES` | Benchmark length: 1 to 240, default 5 |
|
||||
| `LSFGVK_PROFILE=<profile>` | [lsfg-vk](https://lsfg-vk.dev) 2.x frame generation with that profile from its `conf.toml`. Off by default |
|
||||
| `LSFG_PROCESS=<entry>` | The equivalent for lsfg-vk 1.0 |
|
||||
| `VERBOSE=1` | Turns Wine, vkd3d-proton and DXVK log lines back on |
|
||||
Reference in New Issue
Block a user