RX 7900 XT, Linux: in-game A/B of opt-in perf switches #379

Open
opened 2026-12-03 21:25:30 +00:00 by github-bot · 0 comments
Owner

@⁠GreemSC on GitHub · 2026-12-03 21:19 UTC · original

What

In-game A/B of the opt-in performance switches on Linux, RX 7900 XT (RDNA3), 300 s runs of the same scene. Two groups of switches were tried, each group on two runs, then both groups together:

  • shader translation group (VICTORY_RECORD_PLACES=1 VICTORY_RECORD_RANGES=1 VICTORY_UNIFORM_GUEST_LOADS=1 VICTORY_CLUSTER_GUEST_LOADS=1): +3.5 % fps and p95 −3 ms, on 2 runs out of 2.
  • runtime group (9 switches, listed below): p95 −6 ms, but p99 +12 ms, more long frames (max 445–556 ms), +3 ms gpu_wait and +0.7–1.1 GB GTT, on 2 runs out of 2.
  • both groups together: 31.4 fps, median 31.8 ms, p95 50.3 ms (+7.5 % fps, p95 −9 ms against defaults). This is 1 run only.

The tree had no crash or wrong image in 9 runs. It is main + several open PRs, listed below.

Numbers

Time "in world" counts from the first frame with 500 draws (~110 s) to the end of the run (~188 s, about 5,500 frames).

Run Switches fps median p95 p99 max GTT max game RAM
o1 defaults 29.1 34.0 ms 58.3 ms 85.2 ms 397 ms 10.8 GB 4.7 GB
o2 defaults 29.2 33.6 ms 59.1 ms 85.3 ms 327 ms 10.7 GB 6.4 GB
s1 shader translation 30.4 32.7 ms 55.7 ms 80.3 ms 317 ms 10.7 GB 6.5 GB
s2 shader translation 30.1 33.2 ms 55.6 ms 83.4 ms 335 ms 10.7 GB 5.2 GB
c1 runtime (9) 29.8 33.6 ms 53.4 ms 98.0 ms 445 ms 11.8 GB 5.2 GB
c2 runtime (9) 29.4 33.6 ms 52.6 ms 97.3 ms 556 ms 11.4 GB 6.1 GB
f1 both 31.4 31.8 ms 50.3 ms 88.7 ms 387 ms 11.5 GB 6.1 GB

Our previous base (main of 12-02 + GPU detile) measured 29.2 fps / 33.9 / 57.3 / 85.6 on the same scene. At defaults, the newer tree with the PRs below is neither faster nor slower, as expected since most of them are opt-in. It does use less memory: GTT max 10.7–10.8 GB, against 11.9 GB (the GTT limit) before.

The average stats lines of the runtime group explain part of it: gpu_wait_ms went from 9.2–9.7 to 12.5–13.4, while preparing_ms stayed at ~6.5 and copy_ms went from 0.8–0.9 to 1.0. We have not split the 9 switches yet. VICTORY_LATE_FENCE is the first one we would test alone, given the gpu_wait change. VICTORY_KEEP_HOST_BUFFERS is the first suspect for the +0.7–1.1 GB GTT.

Runtime group: VICTORY_PARTS_ONE_CALL=1 VICTORY_KEEP_HOST_BUFFERS=1 VICTORY_LATE_FENCE=1 VICTORY_ASK_AHEAD_SCOPED=1 (#312) VICTORY_RECORD_REFRESH_FRONT=1 (#308) VICTORY_TEXTURE_STREAM_FRAME=1 (#313) VICTORY_JOIN_BARRIERS=1 VICTORY_HEAP_SPAN_INDEX=1 VICTORY_BVH_LOOKAHEAD=1

How

  • Machine: RX 7900 XT 20 GB, i7-12700K, 24 GB RAM, CachyOS (kernel 7.3), Proton-CachyOS Wine, Mesa 26.3.1 with patches/mesa.patch (+ #217 and #222 winsys deltas).
  • Tree: main 9a4c8c6 + #203 #279 #336 #335 #312 #308 #313 #165 #240 #303 #232 #219, plus VICTORY_JOIN_BARRIERS from Skrills68/Valhalla-xmem and open_touched from Tim-van-Oudheusden/VIctory-xmem-RDNA3 70575d5 (page made before the lock). Release-with-debug-info build.
  • Scene: no story save, so the prologue cutscene plays. This is a cutscene, not driving.
  • Settings: CONSOLE=series-x VICTORY_OUTPUT=2560x1440 VICTORY_RENDER_SCALE=0.75 VICTORY_UI_PLANE=3840x2160 RT=1 VICTORY_FRAME_INTERVAL_MS=0 VICTORY_GPU_DETILE=1, network off.
  • Pipelines: prepared before every run, 0 to make. The shader-translation group has its own cache because it changes the translation key.
  • Runs: 300 s each, alternated (s, c, o, s, c, f). The GPU cooled to ≤ 55 °C before each start. Runs with another heavy program, or with the machine short of memory, were thrown away (3 of them).

A run with VICTORY_TILE_HEAP_MB=3977 was thrown away too, because another program was busy during it. Its GTT max was 8.4 GB, 2.4 GB less than the defaults, so we will redo it properly.

**@⁠GreemSC** on GitHub · 2026-12-03 21:19 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/379) ## What In-game A/B of the opt-in performance switches on Linux, RX 7900 XT (RDNA3), 300 s runs of the same scene. Two groups of switches were tried, each group on two runs, then both groups together: - **shader translation** group (`VICTORY_RECORD_PLACES=1 VICTORY_RECORD_RANGES=1 VICTORY_UNIFORM_GUEST_LOADS=1 VICTORY_CLUSTER_GUEST_LOADS=1`): **+3.5 % fps and p95 −3 ms**, on 2 runs out of 2. - **runtime** group (9 switches, listed below): **p95 −6 ms, but p99 +12 ms, more long frames (max 445–556 ms), +3 ms gpu_wait and +0.7–1.1 GB GTT**, on 2 runs out of 2. - **both groups together**: **31.4 fps, median 31.8 ms, p95 50.3 ms (+7.5 % fps, p95 −9 ms against defaults)**. This is 1 run only. The tree had no crash or wrong image in 9 runs. It is main + several open PRs, listed below. ## Numbers Time "in world" counts from the first frame with 500 draws (~110 s) to the end of the run (~188 s, about 5,500 frames). | Run | Switches | fps | median | p95 | p99 | max | GTT max | game RAM | |---|---|---|---|---|---|---|---|---| | o1 | defaults | 29.1 | 34.0 ms | 58.3 ms | 85.2 ms | 397 ms | 10.8 GB | 4.7 GB | | o2 | defaults | 29.2 | 33.6 ms | 59.1 ms | 85.3 ms | 327 ms | 10.7 GB | 6.4 GB | | s1 | shader translation | **30.4** | 32.7 ms | 55.7 ms | **80.3 ms** | 317 ms | 10.7 GB | 6.5 GB | | s2 | shader translation | **30.1** | 33.2 ms | 55.6 ms | 83.4 ms | 335 ms | 10.7 GB | 5.2 GB | | c1 | runtime (9) | 29.8 | 33.6 ms | 53.4 ms | 98.0 ms | 445 ms | 11.8 GB | 5.2 GB | | c2 | runtime (9) | 29.4 | 33.6 ms | 52.6 ms | 97.3 ms | 556 ms | 11.4 GB | 6.1 GB | | f1 | both | **31.4** | **31.8 ms** | **50.3 ms** | 88.7 ms | 387 ms | 11.5 GB | 6.1 GB | Our previous base (main of 12-02 + GPU detile) measured 29.2 fps / 33.9 / 57.3 / 85.6 on the same scene. **At defaults, the newer tree with the PRs below is neither faster nor slower**, as expected since most of them are opt-in. It does use less memory: GTT max 10.7–10.8 GB, against 11.9 GB (the GTT limit) before. The average stats lines of the runtime group explain part of it: `gpu_wait_ms` went from 9.2–9.7 to 12.5–13.4, while `preparing_ms` stayed at ~6.5 and `copy_ms` went from 0.8–0.9 to 1.0. We have not split the 9 switches yet. `VICTORY_LATE_FENCE` is the first one we would test alone, given the gpu_wait change. `VICTORY_KEEP_HOST_BUFFERS` is the first suspect for the +0.7–1.1 GB GTT. **Runtime group:** `VICTORY_PARTS_ONE_CALL=1 VICTORY_KEEP_HOST_BUFFERS=1 VICTORY_LATE_FENCE=1 VICTORY_ASK_AHEAD_SCOPED=1 (#312) VICTORY_RECORD_REFRESH_FRONT=1 (#308) VICTORY_TEXTURE_STREAM_FRAME=1 (#313) VICTORY_JOIN_BARRIERS=1 VICTORY_HEAP_SPAN_INDEX=1 VICTORY_BVH_LOOKAHEAD=1` ## How - **Machine:** RX 7900 XT 20 GB, i7-12700K, 24 GB RAM, CachyOS (kernel 7.3), Proton-CachyOS Wine, Mesa 26.3.1 with `patches/mesa.patch` (+ #217 and #222 winsys deltas). - **Tree:** main 9a4c8c6 + #203 #279 #336 #335 #312 #308 #313 #165 #240 #303 #232 #219, plus `VICTORY_JOIN_BARRIERS` from Skrills68/Valhalla-xmem and `open_touched` from Tim-van-Oudheusden/VIctory-xmem-RDNA3 70575d5 (page made before the lock). Release-with-debug-info build. - **Scene:** no story save, so the prologue cutscene plays. This is a cutscene, not driving. - **Settings:** `CONSOLE=series-x VICTORY_OUTPUT=2560x1440 VICTORY_RENDER_SCALE=0.75 VICTORY_UI_PLANE=3840x2160 RT=1 VICTORY_FRAME_INTERVAL_MS=0 VICTORY_GPU_DETILE=1`, network off. - **Pipelines:** prepared before every run, `0 to make`. The shader-translation group has its own cache because it changes the translation key. - **Runs:** 300 s each, alternated (s, c, o, s, c, f). The GPU cooled to ≤ 55 °C before each start. Runs with another heavy program, or with the machine short of memory, were thrown away (3 of them). A run with `VICTORY_TILE_HEAP_MB=3977` was thrown away too, because another program was busy during it. Its GTT max was 8.4 GB, 2.4 GB less than the defaults, so we will redo it properly.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 21:25:32 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#379
No description provided.