RX 7900 XT, Linux: in-game A/B of opt-in perf switches #379
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem#379
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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:
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.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).
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_mswent from 9.2–9.7 to 12.5–13.4, whilepreparing_msstayed at ~6.5 andcopy_mswent from 0.8–0.9 to 1.0. We have not split the 9 switches yet.VICTORY_LATE_FENCEis the first one we would test alone, given the gpu_wait change.VICTORY_KEEP_HOST_BUFFERSis 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=1How
patches/mesa.patch(+ #217 and #222 winsys deltas).9a4c8c6+ #203 #279 #336 #335 #312 #308 #313 #165 #240 #303 #232 #219, plusVICTORY_JOIN_BARRIERSfrom Skrills68/Valhalla-xmem andopen_touchedfrom Tim-van-Oudheusden/VIctory-xmem-RDNA370575d5(page made before the lock). Release-with-debug-info build.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.0 to make. The shader-translation group has its own cache because it changes the translation key.A run with
VICTORY_TILE_HEAP_MB=3977was 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.