RDNA3 (RX 7800 XT): 28.6 fps median with all 94,215 pipelines warm; dynamic props and texture churn own the lows #71
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#71
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?
@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
patches/wine.patchwineserver built fromwine-11.22(server protocol 979, which is what the distro client speaks — see the separate setup issue)patches/mesa.patch, vkd3d-proton71cae09+ patches, DXC v1.9.2609, all as pinned bysetup.shat37bb30fVICTORY_BVH_BUILDER=0,VICTORY_ONE_PAD=1Numbers
Frame time split, mean over the run:
preparing_ms7.6,copy_ms4.4,gpu_wait_ms8.9,texture_mb6.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:
~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.
Three readings, all guesswork on my side:
written_uploaded_again≈written_under(36 MB/frame each) says almost all upload traffic istextures whose bytes are written and then uploaded again within the same frame, while
looks_same=126 MB/framesays the comparison layer is already chewing through that much. If thesecond upload can be dropped when
looks_sameproved the bytes identical, that is most ofcopy_ms.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".
gpu_wait_ms8.9 at 89 % GPU busy is the #14 story from a slower card: the waves are waiting ontitle 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) takesnative pipeline missed at first usefrom 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
diagnosticsbuild with theper-frame
DROPPED <why>list on one of the saves that shows the defect is the next thing I wouldrun, unless the numbers above already point somewhere.
Input, for whoever documents the settings table
VICTORY_ONE_PADworks as advertised, and it is the fix for a symptom that reads as a bug: with itunset, 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
=1the pad is always there.Two small mismatches:
one_pad()'s doc comment says "on by default" while the code only enables itfor
VICTORY_ONE_PAD=1, andVICTORY_PAD_FOCUS(default on) is not in the README table — with thewindow unfocused the pad reads as connected but never pressed, which is easy to mistake for the
controller dying.
Reproduction
Happy to re-run any of this with a diagnostics build, a different save, or with
VICTORY_PAGES/VICTORY_UM_VRAM_MBset to something other than the default if that would separate the twohypotheses above.
@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 bysetup.sh, atb0bc827. 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.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_MOST256 → 512: the "256 lists in the air" wait (10.9 ms/frame) andgpu_wait_msdrop to about 0. FPS doesn't change, andclock busy_percentgoes from 86% to about 98%.CARD_KEPT_FOR_HOST12 → 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:
playbuilds 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 whenMESA_VK_TRACEis set (inknown::prepare_start).RADV_PROFILE_PSTATE=nonegets around that, but then RADV cancels the capture ("hang condition"). What worked:echo profile_peak > /sys/class/drm/cardN/device/power_dpm_force_performance_levelbefore starting, withoutRADV_PROFILE_PSTATE. ThenMESA_VK_TRACE=rgp MESA_VK_TRACE_TRIGGER=/tmp/rgp-now.@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.