RDNA3 (RX 7800 XT): 28.6 fps median with all 94,215 pipelines warm; dynamic props and texture churn own the lows #71

Open
opened 2026-12-01 14:18:21 +00:00 by github-bot · 2 comments
Owner

@⁠Aruku448 on GitHub · 2026-12-01 14:17 UTC · original

First RDNA3 numbers I have seen on xmem (the README's 44 fps is an RX 9070 XT), so this is mostly a data point, plus two things the logs point at.

Environment

  • RX 7800 XT (NAVI32, gfx1101, 16,368 MB), Ryzen 7 5700X3D (8C/16T), 32 GB DDR4
  • Nyarch Linux (Arch), kernel 7.3.6-cachyos, KDE on Wayland
  • wine-staging 11.22-1.1, patches/wine.patch wineserver built from wine-11.22 (server protocol 979, which is what the distro client speaks — see the separate setup issue)
  • Mesa 26.3.1 + patches/mesa.patch, vkd3d-proton 71cae09 + patches, DXC v1.9.2609, all as pinned by setup.sh at 37bb30f
  • Series X profile, 1080p, VICTORY_BVH_BUILDER=0, VICTORY_ONE_PAD=1
  • 936 reported frames of one session, world loaded, mixed play and menus

Numbers

frame time, median 35 ms (28.6 fps)
fps p10 / p90 19.6 / 39.3
frames ≥ 20 ms 94 %
frames ≥ 50 ms 11 %
frames ≥ 100 ms 0.6 % (worst 322 ms)
draws, median (p90) 5,233 (8,639) per frame
VRAM 15,469 MB of 16,368
GPU busy 89 %

Frame time split, mean over the run: preparing_ms 7.6, copy_ms 4.4, gpu_wait_ms 8.9, texture_mb
6.0 MB/frame — the rest is GPU execution. So ~13 ms of the 35 ms median is CPU-side translation and
upload, and that part is what moves with the scene.

No device-removed, no page-fault kill, no compiler crash across six sessions (~2 h). Coming from the
Windows forks this is the first build where I stopped looking for a crash and started looking at the
picture.

What the counters say about the dynamic props and the unstable textures

The visible defects (props arriving late, textures popping between versions, some staying black) sit
on top of per-frame churn the logs already count:

records per frame: 42090 title slots told, 1299 changed what they name, 0.3 named a view slot
  given away; 0.3 view slots made, 4.5 put to rest, 0.0 freed (524343 taken so far, 67278 free again)

~1,300 of 42,090 descriptor slots re-point every frame and ~4.5 view slots are created and retired —
that is the dynamic-object cost, and every re-point that lands on non-resident memory becomes an
upload.

picked_textures: written_under=36.22 written_uploaded_again=36.14 looks_same=126.42
  looks_changed=0.0 looks_told=0.0 looks_copy_differs=0.0
textures picked by index: 5780537 uploaded so far (493941 MB), 24315 waiting,
  4751746 passed over unmapped, 22212 uploaded from memory that read all zeros
unified memory: 9384 MB in RAM, 2591 MB in VRAM in 29 pools shown at 96981 places;
  7387668 maps, 1339770 unmaps; 211384 title buffers and windows in place;
  384641 MiB streamed from VRAM; texture versions: 18414337 MiB skipped, 123924 MiB read

Three readings, all guesswork on my side:

  1. written_uploaded_again ≈ written_under (36 MB/frame each) says almost all upload traffic is
    textures whose bytes are written and then uploaded again within the same frame, while
    looks_same=126 MB/frame says the comparison layer is already chewing through that much. If the
    second upload can be dropped when looks_same proved the bytes identical, that is most of
    copy_ms.
  2. 24,315 textures waiting and 22,212 uploaded from memory that read all zeros are, I think, the
    props that stay black or arrive late. The all-zero count also looks related to #21 (17,217 slots
    waiting there) and to #69's "different objects stay black from run to run".
  3. gpu_wait_ms 8.9 at 89 % GPU busy is the #14 story from a slower card: the waves are waiting on
    title memory that lives in system RAM (9,384 MB RAM vs 2,591 MB VRAM here).

What is still dropped

A full ./run.sh warm (all 94,215 pipelines, 195 s, cache 3.1 → 9.0 GiB) takes
native pipeline missed at first use from 1,724 to 0 and removes the pre-game pipeline phase —
so #65's hitches are gone here entirely. What does not go away is the per-frame drop count:
median 244, p90 487, max 1,408, and 0 in menus.

Since a plain release build cannot name them, I have not guessed. A diagnostics build with the
per-frame DROPPED <why> list on one of the saves that shows the defect is the next thing I would
run, unless the numbers above already point somewhere.

Input, for whoever documents the settings table

VICTORY_ONE_PAD works as advertised, and it is the fix for a symptom that reads as a bug: with it
unset, the title binds to the keyboard/mouse stand-in pad and withdraws it when a real pad appears,
which puts the title on its controller-disconnected screen. With =1 the pad is always there.

Two small mismatches: one_pad()'s doc comment says "on by default" while the code only enables it
for VICTORY_ONE_PAD=1, and VICTORY_PAD_FOCUS (default on) is not in the README table — with the
window unfocused the pad reads as connected but never pressed, which is easy to mistake for the
controller dying.

Reproduction

setup.sh dlls mesa vkd3d wine prefix victory     # three build fixes in the separate setup issue
./run.sh shaders                                 # 25,694 shaders, 195 refused, 80 s
./run.sh warm                                    # 94,215 pipelines, 195 s, 9.0 GiB
./run.sh play                                    # GAME=<dump>, VICTORY_ONE_PAD=1, VICTORY_BVH_BUILDER=0

Happy to re-run any of this with a diagnostics build, a different save, or with VICTORY_PAGES /
VICTORY_UM_VRAM_MB set to something other than the default if that would separate the two
hypotheses above.

**@⁠Aruku448** on GitHub · 2026-12-01 14:17 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/71) First RDNA3 numbers I have seen on xmem (the README's 44 fps is an RX 9070 XT), so this is mostly a data point, plus two things the logs point at. ### Environment - RX 7800 XT (NAVI32, gfx1101, 16,368 MB), Ryzen 7 5700X3D (8C/16T), 32 GB DDR4 - Nyarch Linux (Arch), kernel 7.3.6-cachyos, KDE on Wayland - wine-staging 11.22-1.1, `patches/wine.patch` wineserver built from `wine-11.22` (server protocol 979, which is what the distro client speaks — see the separate setup issue) - Mesa 26.3.1 + `patches/mesa.patch`, vkd3d-proton `71cae09` + patches, DXC v1.9.2609, all as pinned by `setup.sh` at `37bb30f` - Series X profile, 1080p, `VICTORY_BVH_BUILDER=0`, `VICTORY_ONE_PAD=1` - 936 reported frames of one session, world loaded, mixed play and menus ### Numbers | | | |---|---| | frame time, median | 35 ms (28.6 fps) | | fps p10 / p90 | 19.6 / 39.3 | | frames ≥ 20 ms | 94 % | | frames ≥ 50 ms | 11 % | | frames ≥ 100 ms | 0.6 % (worst 322 ms) | | draws, median (p90) | 5,233 (8,639) per frame | | VRAM | 15,469 MB of 16,368 | | GPU busy | 89 % | Frame time split, mean over the run: `preparing_ms` 7.6, `copy_ms` 4.4, `gpu_wait_ms` 8.9, `texture_mb` 6.0 MB/frame — the rest is GPU execution. So ~13 ms of the 35 ms median is CPU-side translation and upload, and that part is what moves with the scene. No device-removed, no page-fault kill, no compiler crash across six sessions (~2 h). Coming from the Windows forks this is the first build where I stopped looking for a crash and started looking at the picture. ### What the counters say about the dynamic props and the unstable textures The visible defects (props arriving late, textures popping between versions, some staying black) sit on top of per-frame churn the logs already count: ``` records per frame: 42090 title slots told, 1299 changed what they name, 0.3 named a view slot given away; 0.3 view slots made, 4.5 put to rest, 0.0 freed (524343 taken so far, 67278 free again) ``` ~1,300 of 42,090 descriptor slots re-point every frame and ~4.5 view slots are created and retired — that is the dynamic-object cost, and every re-point that lands on non-resident memory becomes an upload. ``` picked_textures: written_under=36.22 written_uploaded_again=36.14 looks_same=126.42 looks_changed=0.0 looks_told=0.0 looks_copy_differs=0.0 textures picked by index: 5780537 uploaded so far (493941 MB), 24315 waiting, 4751746 passed over unmapped, 22212 uploaded from memory that read all zeros unified memory: 9384 MB in RAM, 2591 MB in VRAM in 29 pools shown at 96981 places; 7387668 maps, 1339770 unmaps; 211384 title buffers and windows in place; 384641 MiB streamed from VRAM; texture versions: 18414337 MiB skipped, 123924 MiB read ``` Three readings, all guesswork on my side: 1. `written_uploaded_again` ≈ `written_under` (36 MB/frame each) says almost all upload traffic is textures whose bytes are written and then uploaded again within the same frame, while `looks_same=126 MB/frame` says the comparison layer is already chewing through that much. If the second upload can be dropped when `looks_same` proved the bytes identical, that is most of `copy_ms`. 2. **24,315 textures waiting and 22,212 uploaded from memory that read all zeros** are, I think, the props that stay black or arrive late. The all-zero count also looks related to #21 (17,217 slots waiting there) and to #69's "different objects stay black from run to run". 3. `gpu_wait_ms` 8.9 at 89 % GPU busy is the #14 story from a slower card: the waves are waiting on title memory that lives in system RAM (9,384 MB RAM vs 2,591 MB VRAM here). ### What is still dropped A full `./run.sh warm` (all 94,215 pipelines, 195 s, cache 3.1 → 9.0 GiB) takes `native pipeline missed at first use` from 1,724 to **0** and removes the pre-game pipeline phase — so #65's hitches are gone here entirely. What does not go away is the per-frame drop count: median 244, p90 487, max 1,408, and 0 in menus. Since a plain release build cannot name them, I have not guessed. A `diagnostics` build with the per-frame `DROPPED <why>` list on one of the saves that shows the defect is the next thing I would run, unless the numbers above already point somewhere. ### Input, for whoever documents the settings table `VICTORY_ONE_PAD` works as advertised, and it is the fix for a symptom that reads as a bug: with it unset, the title binds to the keyboard/mouse stand-in pad and withdraws it when a real pad appears, which puts the title on its controller-disconnected screen. With `=1` the pad is always there. Two small mismatches: `one_pad()`'s doc comment says "on by default" while the code only enables it for `VICTORY_ONE_PAD=1`, and `VICTORY_PAD_FOCUS` (default on) is not in the README table — with the window unfocused the pad reads as connected but never pressed, which is easy to mistake for the controller dying. ### Reproduction ``` setup.sh dlls mesa vkd3d wine prefix victory # three build fixes in the separate setup issue ./run.sh shaders # 25,694 shaders, 195 refused, 80 s ./run.sh warm # 94,215 pipelines, 195 s, 9.0 GiB ./run.sh play # GAME=<dump>, VICTORY_ONE_PAD=1, VICTORY_BVH_BUILDER=0 ``` Happy to re-run any of this with a diagnostics build, a different save, or with `VICTORY_PAGES` / `VICTORY_UM_VRAM_MB` set to something other than the default if that would separate the two hypotheses above.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 14:18:21 +00:00
Author
Owner

@⁠marduuhin on GitHub · 2026-12-01 16:22 UTC · original

Same card, a second data point, from the GPU side: an RGP capture (RADV SQTT) of one frame.
//Writeup by Opus:

Rig: RX 7800 XT, Ryzen 7 5800X3D, Ubuntu 26.04 (kernel 7.0), wine 11.22 (USE_SYSTEM_WINE=1), Mesa/vkd3d as pinned by setup.sh, at b0bc827. Series X, VICTORY_OUTPUT=2560x1440, VICTORY_UPSCALER=6, VICTORY_BVH_BUILDER=0. About 30 fps at starter house.

What the capture shows (traced frame 47.9 ms):

  • GPU idle 6.8%. Barriers take only 0.37% of the frame (0.25 per draw/dispatch).

  • Everything runs on the graphics queue: 44 of 45 submissions. The compute queue gets 1.

  • The top 5% of events take 36% of the frame. These are mostly compute dispatches of 300–590 µs. Three Dispatch(214,120,1) at about 450 µs each are full-screen passes at render size (1712x960).

  • Dispatches with very few waves run far too long:

    • DispatchIndirect(24,1,1): 24 waves of wave32, 144 VGPRs, occupancy 10/16, 551 µs.
    • Dispatch(30,1,1): 30 waves, 304 µs.
    • The 11 dispatches after it, with 4–148 groups each, take 50–95 µs each, regardless of group count.

    Time that doesn't shrink with the amount of work looks like each wave waiting on dependent memory reads. Title memory here is about 8.7 GB in RAM and 3.3 GB in VRAM. That's a guess: RGP has no instruction timing for these, because waves this few don't land on the traced CUs.

Two negative optimization attempts that may save someone time:

  • LATE_MOST 256 → 512: the "256 lists in the air" wait (10.9 ms/frame) and gpu_wait_ms drop to about 0. FPS doesn't change, and clock busy_percent goes from 86% to about 98%.
  • CARD_KEPT_FOR_HOST 12 → 10 GiB: no effect. The room is never the limit, because only write-combined title memory goes to the card.

Capturing RGP on xmem, in case it helps someone:

  1. play builds pipelines first, and with tracing on all of them count as missing, because the fingerprint changes. Each preparation worker then fails to create its Vulkan device: the stable pstate is held by the main process. I skipped preparation when MESA_VK_TRACE is set (in known::prepare_start).
  2. The unified-memory Vulkan device and vkd3d's device are in one process, and only one of them gets the pstate. If the um device is first, vkd3d's device fails ("the heap of views by record could not be made").
  3. RADV_PROFILE_PSTATE=none gets around that, but then RADV cancels the capture ("hang condition"). What worked: echo profile_peak > /sys/class/drm/cardN/device/power_dpm_force_performance_level before starting, without RADV_PROFILE_PSTATE. Then MESA_VK_TRACE=rgp MESA_VK_TRACE_TRIGGER=/tmp/rgp-now.
**@⁠marduuhin** on GitHub · 2026-12-01 16:22 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/71#issuecomment-7317485633) Same card, a second data point, from the GPU side: an RGP capture (RADV SQTT) of one frame. //Writeup by Opus: **Rig:** RX 7800 XT, Ryzen 7 5800X3D, Ubuntu 26.04 (kernel 7.0), wine 11.22 (`USE_SYSTEM_WINE=1`), Mesa/vkd3d as pinned by `setup.sh`, at `b0bc827`. Series X, `VICTORY_OUTPUT=2560x1440`, `VICTORY_UPSCALER=6`, `VICTORY_BVH_BUILDER=0`. About 30 fps at starter house. **What the capture shows** (traced frame 47.9 ms): - GPU idle 6.8%. Barriers take only 0.37% of the frame (0.25 per draw/dispatch). - Everything runs on the graphics queue: 44 of 45 submissions. The compute queue gets 1. - The top 5% of events take 36% of the frame. These are mostly compute dispatches of 300–590 µs. Three `Dispatch(214,120,1)` at about 450 µs each are full-screen passes at render size (1712x960). - **Dispatches with very few waves run far too long:** - `DispatchIndirect(24,1,1)`: 24 waves of wave32, 144 VGPRs, occupancy 10/16, **551 µs**. - `Dispatch(30,1,1)`: 30 waves, **304 µs**. - The 11 dispatches after it, with 4–148 groups each, take **50–95 µs each**, regardless of group count. Time that doesn't shrink with the amount of work looks like each wave waiting on dependent memory reads. Title memory here is about 8.7 GB in RAM and 3.3 GB in VRAM. That's a guess: RGP has no instruction timing for these, because waves this few don't land on the traced CUs. **Two negative optimization attempts that may save someone time:** - `LATE_MOST` 256 → 512: the "256 lists in the air" wait (10.9 ms/frame) and `gpu_wait_ms` drop to about 0. FPS doesn't change, and `clock busy_percent` goes from 86% to about 98%. - `CARD_KEPT_FOR_HOST` 12 → 10 GiB: no effect. The room is never the limit, because only write-combined title memory goes to the card. **Capturing RGP on xmem**, in case it helps someone: 1. `play` builds pipelines first, and with tracing on all of them count as missing, because the fingerprint changes. Each preparation worker then fails to create its Vulkan device: the stable pstate is held by the main process. I skipped preparation when `MESA_VK_TRACE` is set (in `known::prepare_start`). 2. The unified-memory Vulkan device and vkd3d's device are in one process, and only one of them gets the pstate. If the um device is first, vkd3d's device fails ("the heap of views by record could not be made"). 3. `RADV_PROFILE_PSTATE=none` gets around that, but then RADV cancels the capture ("hang condition"). What worked: `echo profile_peak > /sys/class/drm/cardN/device/power_dpm_force_performance_level` before starting, without `RADV_PROFILE_PSTATE`. Then `MESA_VK_TRACE=rgp MESA_VK_TRACE_TRIGGER=/tmp/rgp-now`.
Author
Owner

@⁠Aruku448 on GitHub · 2026-12-01 17:57 UTC · original

Related data from the same machine, over two weeks: #85 — the short version is that the unified memory path is not the limit here (7–14 % of PCIe), the barrier storm is already collapsed by waits::after, draws cannot be merged (full state differs on every draw), and the frame is ~4 500 dispatches × 3.25 µs plus 8.16 ms/Mpx of pixels.

**@⁠Aruku448** on GitHub · 2026-12-01 17:57 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/71#issuecomment-7320132083) Related data from the same machine, over two weeks: #85 — the short version is that the unified memory path is not the limit here (7–14 % of PCIe), the barrier storm is already collapsed by `waits::after`, draws cannot be merged (full state differs on every draw), and the frame is ~4 500 dispatches × 3.25 µs plus 8.16 ms/Mpx of pixels.
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#71
No description provided.