Play-VIctory-AMD.cmd: renderer port 1 off (VICTORY_PORT_CONSTANTS=0)

The AMD profile turned it on for the ~6 ms it saved on an RTX 5070 Ti.
On AMD cards every indirect execution is then clamped after each shader
write before it (~5,000 a frame outdoors), and three cards ran outdoors
at about twice the frame rate without it: RX 9070 XT 8-10 -> 20-21 fps
(#180), RX 7800 XT 5-7 -> 16 (#181), RX 7900 XTX 7-12 -> ~12 (#171). No
picture difference reported. VICTORY_PORT_CONSTANTS=1 still turns it on.
README: the launcher table and the ports paragraph say so.
This commit is contained in:
DoubleGhosty
2026-11-30 09:42:31 +01:00
parent 4ad7ecca71
commit 42b4af3fc1
2 changed files with 10 additions and 6 deletions

View File

@ -48,9 +48,13 @@ if not defined VICTORY_THIN set "VICTORY_THIN=1"
if not defined VICTORY_JOIN_PARTS set "VICTORY_JOIN_PARTS=8"
if not defined VICTORY_UPLOAD_AHEAD set "VICTORY_UPLOAD_AHEAD=1"
rem All renderer ports on: the AMD profile from the community's top forks.
rem Port 1: title's constants heap read in place by the card (~6 ms saved).
if not defined VICTORY_PORT_CONSTANTS set "VICTORY_PORT_CONSTANTS=1"
rem Renderer ports 5, 6 and 7 on.
rem Port 1 (the title's constants heap read in place by the card) off: it saved
rem ~6 ms on an RTX 5070 Ti, but on AMD every indirect execution is clamped after
rem each shader write before it, and outdoors the frame rate doubled without it:
rem RX 9070 XT 8-10 -> 20-21 fps (#180), RX 7800 XT 5-7 -> 16 (#181),
rem RX 7900 XTX 7-12 -> ~12 (#171). set VICTORY_PORT_CONSTANTS=1 to compare.
if not defined VICTORY_PORT_CONSTANTS set "VICTORY_PORT_CONSTANTS=0"
rem Port 5: constant buffers read as raw bytes (~4.7 ms, ~22k fills eliminated).
if not defined VICTORY_PORT_CBV set "VICTORY_PORT_CBV=1"
rem Port 6: write-guard lock shared by faults and refreshes (~2 ms saved).

View File

@ -70,7 +70,7 @@ You can also build it yourself from source (below). Please don't turn your antiv
- `VICTORY_FRAME_INTERVAL_MS=16.667` (60 FPS) or `8.333` (120 FPS) while keeping simulation timing at 1.00x.
- **Renderer Ports (Performance):**
- `VICTORY_PORT_GUARD=1` and `VICTORY_PORT_JOURNAL=1` now enabled by default in launchers: write-guard lock sharing and journal splitting save 2–5 ms per frame on all tested GPUs.
- `VICTORY_PORT_CONSTANTS=1` and `VICTORY_PORT_CBV=1` remain opt-in for NVIDIA 8 GB stability; AMD users should use `Play-VIctory-AMD.cmd` which enables all ports.
- `VICTORY_PORT_CBV=1` (port 5) is on in `Play-VIctory-AMD.cmd` and opt-in elsewhere. `VICTORY_PORT_CONSTANTS=1` (port 1) is opt-in everywhere: on AMD cards it halves the frame rate outdoors (#180, #181, #171).
- `VICTORY_LEVELS_ON_DEMAND=1` enabled by default: card memory allocated only for texture mip levels the title holds, saving up to 3 GB of VRAM.
---
@ -123,7 +123,7 @@ $env:VICTORY_GAME_DIR = 'D:\path\to\your\title'
Or set `game_dir` in `victory.toml` (copied from `victory.example.toml`); every
launcher reads it when `VICTORY_GAME_DIR` is not set.
For AMD Radeon GPUs (RX 7000+, 16 GB+ VRAM) with all renderer ports enabled:
For AMD Radeon GPUs (RX 7000+, 16 GB+ VRAM), with renderer ports 5, 6 and 7 on:
```powershell
.\Play-VIctory-AMD.cmd
@ -138,7 +138,7 @@ For 4 GB VRAM GPUs or low-memory systems:
| Launcher | Target | Renderer Ports | Notes |
|---|---|---|---|
| `Play-VIctory.cmd` | NVIDIA + AMD, 8 GB+ | 6, 7 on; 1, 5 opt-in | Safe default for all GPUs |
| `Play-VIctory-AMD.cmd` | AMD 16 GB+ | 1, 5, 6, 7 all on | Maximum performance; all ports from top community forks |
| `Play-VIctory-AMD.cmd` | AMD 16 GB+ | 5, 6, 7 on; 1 opt-in | Port 1 off since it halved outdoor fps on three AMD cards (#180) |
| `Play-VIctory-4GB.cmd` | 4 GB VRAM | 6, 7 on; 1, 5 off | Series S profile, reduced card buffers |
| `Play-VIctory-16GB.cmd` | NVIDIA or AMD, 16 GB+ | 6, 7 on; 1, 5 opt-in | Series X, native 4K output, 2 GB card buffers, async texture streaming; threads follow the CPU (was `Play-VIctory-RTX5070Ti.cmd`) |
| `scripts\play.ps1` | Diagnostics | 6, 7 on; `-Safe` disables | Full logging; `-RayTracing` for RT |