Linux/AMD: without RADV_EXPERIMENTAL=transfer_queue, vkd3d puts the copy queue on the compute family (house street 39-43 ms -> 20.5 ms on RX 7900 XTX) #498

Open
opened 2026-12-06 01:46:08 +00:00 by github-bot · 2 comments
Owner

@⁠samos667 on GitHub · 2026-12-06 01:33 UTC · original

On RADV, vkd3d-proton puts D3D12 copy queues on the compute queue family unless RADV_EXPERIMENTAL=transfer_queue is set. Its own startup log shows it (with a one-line logging patch of ours): copy queues on family 1 (compute) without it, copy queues on family 3 (transfer) with it.

With the copy queue on the compute family, larp's copies on that queue (the heap feed and the other final copies queues.rs sends there) run as ~3 ms jobs on the compute rings, about 8 a frame, and the graphics queue waits for them, through a timeline wait or through vkd3d's submitting thread blocked in a submission. With the variable set, the same copies are ~0.25 ms jobs on the SDMA engines, running beside graphics.

Measured on an RX 7900 XTX (RDNA 3), Mesa/RADV 26.2.5, vkd3d-proton 3.2 (71cae091), GE-Proton, linux-test 0436029 unmodified, LARP_UPSCALER=off, 3840x2160 output, driving on the street by the house, traced with the kernel's amdgpu scheduler events (20 s per capture, frames from MangoHud's presents, checked against larp's own fps log):

frame graphics busy graphics idle waiting on the copies
without transfer_queue (2 captures) 43.3 / 39.4 ms 22.3 / 21.7 ms ~16 / ~13 ms
with transfer_queue (2 captures) 20.7 / 20.3 ms 20.1 / 19.8 ms ~0.1 ms

With it the card is busy ~97 % of the frame; without it, the spikes in frame time follow the copies.

linux/run.sh sets no RADV_* variable. Suggestion: export RADV_EXPERIMENTAL=transfer_queue by default when the device is AMD (tested here on RDNA 3 only), or mention it in docs/linux.md.

**@⁠samos667** on GitHub · 2026-12-06 01:33 UTC · [original](https://github.com/gamingwithhomie/larp/issues/498) On RADV, vkd3d-proton puts D3D12 copy queues on the compute queue family unless `RADV_EXPERIMENTAL=transfer_queue` is set. Its own startup log shows it (with a one-line logging patch of ours): `copy queues on family 1` (compute) without it, `copy queues on family 3` (transfer) with it. With the copy queue on the compute family, larp's copies on that queue (the heap feed and the other final copies `queues.rs` sends there) run as ~3 ms jobs on the compute rings, about 8 a frame, and the graphics queue waits for them, through a timeline wait or through vkd3d's submitting thread blocked in a submission. With the variable set, the same copies are ~0.25 ms jobs on the SDMA engines, running beside graphics. Measured on an RX 7900 XTX (RDNA 3), Mesa/RADV 26.2.5, vkd3d-proton 3.2 (71cae091), GE-Proton, `linux-test` 0436029 unmodified, `LARP_UPSCALER=off`, 3840x2160 output, driving on the street by the house, traced with the kernel's amdgpu scheduler events (20 s per capture, frames from MangoHud's presents, checked against larp's own fps log): | | frame | graphics busy | graphics idle waiting on the copies | |---|---|---|---| | without `transfer_queue` (2 captures) | 43.3 / 39.4 ms | 22.3 / 21.7 ms | ~16 / ~13 ms | | with `transfer_queue` (2 captures) | **20.7 / 20.3 ms** | 20.1 / 19.8 ms | ~0.1 ms | With it the card is busy ~97 % of the frame; without it, the spikes in frame time follow the copies. `linux/run.sh` sets no `RADV_*` variable. Suggestion: export `RADV_EXPERIMENTAL=transfer_queue` by default when the device is AMD (tested here on RDNA 3 only), or mention it in `docs/linux.md`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 01:46:08 +00:00
Author
Owner

@⁠vanya890 on GitHub · 2026-12-06 01:35 UTC · original

The measurements are unusually useful because they separate graphics-queue busy time from idle time waiting on copies, rather than relying on FPS alone. I would keep the proposed change opt-in for now, not set it automatically for every AMD device: the report verifies RDNA 3 on one Mesa/RADV + vkd3d-proton combination, while RADV_EXPERIMENTAL is a Mesa driver opt-in and its behavior/availability can vary by Mesa version and GPU generation.

A safe first step is documenting the per-launch override (RADV_EXPERIMENTAL=transfer_queue for the Larp process) with the tested Mesa/RADV and vkd3d-proton versions, plus a note that RDNA 2/4 and other Mesa versions are unverified. If a later matrix confirms the same queue-family selection and no regressions across those combinations, the launcher could consider a narrowly gated default. Please also include the exact launch command used for the captures so others can reproduce the comparison without exporting the variable system-wide.

**@⁠vanya890** on GitHub · 2026-12-06 01:35 UTC · [original](https://github.com/gamingwithhomie/larp/issues/498#issuecomment-7449301926) The measurements are unusually useful because they separate graphics-queue busy time from idle time waiting on copies, rather than relying on FPS alone. I would keep the proposed change opt-in for now, not set it automatically for every AMD device: the report verifies RDNA 3 on one Mesa/RADV + vkd3d-proton combination, while `RADV_EXPERIMENTAL` is a Mesa driver opt-in and its behavior/availability can vary by Mesa version and GPU generation. A safe first step is documenting the per-launch override (`RADV_EXPERIMENTAL=transfer_queue` for the Larp process) with the tested Mesa/RADV and vkd3d-proton versions, plus a note that RDNA 2/4 and other Mesa versions are unverified. If a later matrix confirms the same queue-family selection and no regressions across those combinations, the launcher could consider a narrowly gated default. Please also include the exact launch command used for the captures so others can reproduce the comparison without exporting the variable system-wide.
Author
Owner

@⁠vanya890 on GitHub · 2026-12-06 01:46 UTC · original

I opened PR #517 with the opt-in Linux/Proton documentation. It records the RX 7900 XTX / RDNA 3, Mesa 26.2.5 and vkd3d-proton 3.2 test context, includes the reported frame-time comparison with an explicit single-system caveat, and does not change launcher defaults. The repo does not track the packaged Linux launcher scripts, so the instructions use the per-command environment prefix rather than guessing a script path. The exact launcher command from the captures would still help others reproduce the result.

**@⁠vanya890** on GitHub · 2026-12-06 01:46 UTC · [original](https://github.com/gamingwithhomie/larp/issues/498#issuecomment-7449438567) I opened [PR #517](https://git.gtahub.st/github/gamingwithhomie--larp/pulls/517) with the opt-in Linux/Proton documentation. It records the RX 7900 XTX / RDNA 3, Mesa 26.2.5 and vkd3d-proton 3.2 test context, includes the reported frame-time comparison with an explicit single-system caveat, and does not change launcher defaults. The repo does not track the packaged Linux launcher scripts, so the instructions use the per-command environment prefix rather than guessing a script path. The exact launcher command from the captures would still help others reproduce the result.
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/gamingwithhomie--larp#498
No description provided.