docs: what a Linux/Proton run needs, and where its frame goes on RADV #41

Open
github-bot wants to merge 1 commit from github-bot/gh-41 into main AGit
Owner

@⁠rostaddotcc on GitHub · 2026-11-24 20:48 UTC · original
rostaddotcc:docs/linux-proton → main · +131 −0 · 2 files · 1 commits · open

Adds docs/linux-proton.md, measured on one Linux machine (RX 7900 XT, RDNA 3, Mesa 26.3.1 RADV, CachyOS 7.3.5, Proton Experimental's wine/vkd3d-proton) and linked from the README's status table. Numbers only; no assets.

Three things in it that cost real time to find and are not in the README:

  1. Wine's own d3d12 must be overridden off (WINEDLLOVERRIDES="d3d12=n;d3d12core=n;dxgi=n"). With the builtin stub in the chain, device creation returns E_INVALIDARG and every frame submits 0 draws.
  2. HDR must be off on the output the window lands on. With HDR enabled, presentation blocks about 400 ms per frame (2.5 fps in the menus) and the 30 s watchdog ends the run with int3 at a frame-64 boundary, which reads exactly like a title crash. Several sessions were spent ruling out the merge, the shader cache, the prefix, the governor and focus before this was found. Not fork-specific: it applies to any vkd3d-proton title on this compositor.
  3. On this machine the frame is not GPU bound. World frames (more than 800 draws) average 5–8 s, of which 134–163 ms is GPU time; copies into title memory run at 60–100 MB/s and texture uploads at 13–41 MB/s, against roughly 1 GB/s in #10's Windows numbers. The presented frame stays black at 2 800–4 800 draws/frame, with and without PR #20's DXC fallback built in, which fits the AMD/Linux report in #6.

The doc lists what is still unseparated (whether that upload rate is RADV, vkd3d-proton or the page-fault path) rather than guessing. Happy to fold it into an existing file or drop it if you would rather track this in an issue.

**@⁠rostaddotcc** on GitHub · 2026-11-24 20:48 UTC · [original](https://github.com/fxceless/victory-fork/pull/41) `rostaddotcc:docs/linux-proton` → `main` · +131 −0 · 2 files · 1 commits · open Adds `docs/linux-proton.md`, measured on one Linux machine (RX 7900 XT, RDNA 3, Mesa 26.3.1 RADV, CachyOS 7.3.5, Proton Experimental's `wine`/vkd3d-proton) and linked from the README's status table. Numbers only; no assets. Three things in it that cost real time to find and are not in the README: 1. **Wine's own `d3d12` must be overridden off** (`WINEDLLOVERRIDES="d3d12=n;d3d12core=n;dxgi=n"`). With the builtin stub in the chain, device creation returns `E_INVALIDARG` and every frame submits 0 draws. 2. **HDR must be off on the output the window lands on.** With HDR enabled, presentation blocks about 400 ms per frame (2.5 fps in the menus) and the 30 s watchdog ends the run with `int3` at a frame-64 boundary, which reads exactly like a title crash. Several sessions were spent ruling out the merge, the shader cache, the prefix, the governor and focus before this was found. Not fork-specific: it applies to any vkd3d-proton title on this compositor. 3. **On this machine the frame is not GPU bound.** World frames (more than 800 draws) average 5–8 s, of which 134–163 ms is GPU time; copies into title memory run at 60–100 MB/s and texture uploads at 13–41 MB/s, against roughly 1 GB/s in #10's Windows numbers. The presented frame stays black at 2 800–4 800 draws/frame, with and without PR #20's DXC fallback built in, which fits the AMD/Linux report in #6. The doc lists what is still unseparated (whether that upload rate is RADV, vkd3d-proton or the page-fault path) rather than guessing. Happy to fold it into an existing file or drop it if you would rather track this in an issue.
Measured on an RX 7900 XT (RDNA 3) with Mesa 26.3.1 RADV under Proton
Experimental: Wine's d3d12 stubs must be kept out (otherwise 0 draws) and
HDR must be off on the output (otherwise present blocks at ~400 ms/frame and
the watchdog ends the run). World frames average 5-8 s: 134-163 ms on the
GPU, the rest host-side copies (60-100 MB/s) and texture uploads (13-41 MB/s).
The presented frame is black at 2 800-4 800 draws/frame, with and without
PR #20's DXC fallback.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:35:04 +00:00
Author
Owner

@⁠DaviTostes on GitHub · 2026-11-24 21:38 UTC · original

One more datapoint for the doc, from an RDNA4 machine, and one correction to point 3.

Setup: RX 9060 XT (RDNA4, GFX1200), Mesa 26.3.1 RADV, Arch kernel 7.3.5, system Wine 11.22 with Proton Experimental's vkd3d-proton 3.2.0 and DXVK 3.1.1 dxgi, WINEDLLOVERRIDES="d3d12,d3d12core,dxgi=n", VICTORY_NO_WATCHDOG=1 (upstream #454), Ryzen 5 5500, 16 GB.

Points 1 and 2 reproduce exactly here. On point 3 (black presented frame at 2 800–4 800 draws): on this machine the frame is not black once #20 is built in. With main (4e17478) + #20 + #454 the prologue presents a lit dusk scene at 6 100–8 400 draws/frame, with no black-frame transitions logged. Without #20 the world is black, and the log says why:

INFO victory_gpu::dxc: the system compiler refused one of our shaders: trying DXC ... E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer'
WARN victory_gpu::indirect: no argument clamp: indirect execution dropped
WARN victory_gpu::host: no host copies in the card's memory: the compare could not be made

So the frame that reaches the swap chain is missing every indirect draw before it is ever presented — the same Wine d3dcompiler_47 problem as #6, not a present-side one. Worth a line in the doc: on Wine, check for indirect execution dropped before blaming the present path, and #20 (with dxcompiler.dll/dxil.dll beside the exe) is what clears it.

The copy numbers here match yours:

world frame (>=500 draws, 5 samples) median range
frame 4 184 ms 3 649–7 219 ms
copies into title memory 1 346 ms / 138 MB (107 MB/s) 121–185 MB
shader write-back (copying back) 1 314 ms / 34 MB (26 MB/s) 34–46 MB
textures 215 ms / 14 MB 5–1 191 ms
GPU time 163 ms 160–207 ms

The card clock says the same thing as your note: 2–6% busy, idle 2.5–7.1 s a frame, almost all of it while the submitting thread works.

Menus are 30 fps, but only with VICTORY_TEXTURE_NO_WAIT=1: without it the texture refreshes wait for the title-memory lock while the world streams in, and the frame line reports 40–880 ms a frame "waiting for title memory to hold still" (menus drop to 5–18 fps). That is also Wine-specific and probably worth a line next to the other three.

**@⁠DaviTostes** on GitHub · 2026-11-24 21:38 UTC · [original](https://github.com/fxceless/victory-fork/pull/41#issuecomment-7145187890) One more datapoint for the doc, from an RDNA4 machine, and one correction to point 3. **Setup:** RX 9060 XT (RDNA4, GFX1200), Mesa 26.3.1 RADV, Arch kernel 7.3.5, system Wine 11.22 with Proton Experimental's vkd3d-proton 3.2.0 and DXVK 3.1.1 `dxgi`, `WINEDLLOVERRIDES="d3d12,d3d12core,dxgi=n"`, `VICTORY_NO_WATCHDOG=1` (upstream #454), Ryzen 5 5500, 16 GB. Points 1 and 2 reproduce exactly here. On point 3 (black presented frame at 2 800–4 800 draws): on this machine the frame is **not** black once #20 is built in. With `main` (4e17478) + #20 + #454 the prologue presents a lit dusk scene at 6 100–8 400 draws/frame, with no black-frame transitions logged. Without #20 the world is black, and the log says why: ``` INFO victory_gpu::dxc: the system compiler refused one of our shaders: trying DXC ... E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer' WARN victory_gpu::indirect: no argument clamp: indirect execution dropped WARN victory_gpu::host: no host copies in the card's memory: the compare could not be made ``` So the frame that reaches the swap chain is missing every indirect draw before it is ever presented — the same Wine `d3dcompiler_47` problem as #6, not a present-side one. Worth a line in the doc: on Wine, check for `indirect execution dropped` before blaming the present path, and #20 (with `dxcompiler.dll`/`dxil.dll` beside the exe) is what clears it. The copy numbers here match yours: | world frame (>=500 draws, 5 samples) | median | range | |---|---:|---| | frame | 4 184 ms | 3 649–7 219 ms | | copies into title memory | 1 346 ms / 138 MB (**107 MB/s**) | 121–185 MB | | shader write-back (`copying back`) | 1 314 ms / 34 MB (**26 MB/s**) | 34–46 MB | | textures | 215 ms / 14 MB | 5–1 191 ms | | GPU time | 163 ms | 160–207 ms | The card clock says the same thing as your note: 2–6% busy, idle 2.5–7.1 s a frame, almost all of it while the submitting thread works. Menus are 30 fps, but only with `VICTORY_TEXTURE_NO_WAIT=1`: without it the texture refreshes wait for the title-memory lock while the world streams in, and the frame line reports 40–880 ms a frame "waiting for title memory to hold still" (menus drop to 5–18 fps). That is also Wine-specific and probably worth a line next to the other three.
Author
Owner

@⁠pablogonz12 on GitHub · 2026-11-24 22:22 UTC · original

Another RDNA4 data point, with two things I'd add to the doc.

Setup: RX 9070 XT (RDNA4, GFX1201), Mesa 26.3.1 RADV, Arch, Ryzen 9 9900X, 30 GB, GE-Proton11-14 (Wine 11.0) with vkd3d-proton master, WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b", VICTORY_NO_WATCHDOG=1. Fork 578d459, 16 min run.

Reproduces: point 1 (without the overrides: no device, 0 draws). Point 3's shape too: not GPU bound. World frames spend 164-183 ms preparing on one thread against 113-121 ms of GPU time (card ~31 % busy), 2.0 fps average, up to 6,994 draws/frame. The presented frame is lit here, not black (same as the RX 9060 XT report above).

Differs: copies into title memory are much faster here than 60-100 MB/s: 155-163 MB per frame in 70-80 ms, about 2 GB/s, and 8-61 MB of texture uploads in 3.4-13.4 ms. So the slow-copy figure looks specific to that machine or its vkd3d-proton/Wine build rather than to RADV.

Worth adding:

  1. Wine's builtin d3dcompiler_47 fails the fork's runtime helper shaders (E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer', and Load/Load4 on the same type). The indirect clamp then quietly drops every indirect draw/dispatch and card buffers stay off. Here that alone was the difference between a black frame (~5,100 indirect executions dropped per frame) and a lit one. Fixes: #20 (DXC fallback), or Microsoft's d3dcompiler_47.dll next to the exe. Upstream vkd3d gained the Interlocked* methods today; Load* is still missing (https://bugs.winehq.org/show_bug.cgi?id=60871).
  2. A Vulkan implicit layer from RenderDoc (/etc/vulkan/implicit_layer.d/) crashed every run here 1-44 s in; VK_LOADER_LAYERS_DISABLE=*renderdoc* fixed it. Processes under Wine pick up the host's implicit layers.

Not tested: HDR (SDR output only here), Proton Experimental's Wine, newer fork commits for the numbers above. (AI-assisted; numbers from my own runs.)

**@⁠pablogonz12** on GitHub · 2026-11-24 22:22 UTC · [original](https://github.com/fxceless/victory-fork/pull/41#issuecomment-7146159340) Another RDNA4 data point, with two things I'd add to the doc. **Setup:** RX 9070 XT (RDNA4, GFX1201), Mesa 26.3.1 RADV, Arch, Ryzen 9 9900X, 30 GB, GE-Proton11-14 (Wine 11.0) with vkd3d-proton master, `WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b"`, `VICTORY_NO_WATCHDOG=1`. Fork `578d459`, 16 min run. **Reproduces:** point 1 (without the overrides: no device, 0 draws). Point 3's shape too: not GPU bound. World frames spend 164-183 ms preparing on one thread against 113-121 ms of GPU time (card ~31 % busy), 2.0 fps average, up to 6,994 draws/frame. The presented frame is lit here, not black (same as the RX 9060 XT report above). **Differs:** copies into title memory are much faster here than 60-100 MB/s: 155-163 MB per frame in 70-80 ms, about 2 GB/s, and 8-61 MB of texture uploads in 3.4-13.4 ms. So the slow-copy figure looks specific to that machine or its vkd3d-proton/Wine build rather than to RADV. **Worth adding:** 1. **Wine's builtin `d3dcompiler_47` fails the fork's runtime helper shaders** (`E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer'`, and `Load`/`Load4` on the same type). The indirect clamp then quietly drops every indirect draw/dispatch and card buffers stay off. Here that alone was the difference between a black frame (~5,100 indirect executions dropped per frame) and a lit one. Fixes: #20 (DXC fallback), or Microsoft's `d3dcompiler_47.dll` next to the exe. Upstream vkd3d gained the `Interlocked*` methods today; `Load*` is still missing (https://bugs.winehq.org/show_bug.cgi?id=60871). 2. **A Vulkan implicit layer from RenderDoc** (`/etc/vulkan/implicit_layer.d/`) crashed every run here 1-44 s in; `VK_LOADER_LAYERS_DISABLE=*renderdoc*` fixed it. Processes under Wine pick up the host's implicit layers. Not tested: HDR (SDR output only here), Proton Experimental's Wine, newer fork commits for the numbers above. (AI-assisted; numbers from my own runs.)
Author
Owner

@⁠rostaddotcc on GitHub · 2026-11-25 20:33 UTC · original

Measured on the rig this document is written from, on 79cfdd96, and it belongs in this file: the two switches the Linux users here run with — VICTORY_TEXTURE_NO_WAIT=1 and VICTORY_RELAY=2 — roughly halve the frame time in the world, and neither is on by default.

Two 330 s runs a side, VICTORY_FRAME_LOG=1, 100 frames a side, bucketed on draws and on texture megabytes a frame so the two sides are in comparable scenes. Median per cell:

draws textures a frame default with the two switches
under 1,500 (menus) under 50 MB 63 ms 43 ms
under 1,500 50-150 MB 3,338 ms 1,248 ms
under 1,500 150-300 MB 3,975 ms 1,815 ms
1,500-3,000 under 50 MB 3,621 ms 1,747 ms
1,500-3,000 150-300 MB 3,233 ms 1,568 ms
1,500-3,000 over 300 MB 5,270 ms 1,562 ms
3,000-6,000 under 50 MB 5,704 ms 2,655 ms
3,000-6,000 50-150 MB 4,578 ms 1,728 ms
3,000-6,000 over 300 MB 3,033 ms 3,057 ms

World frames (1,500 draws and up): median 4,347 ms against 2,221 ms. The lane the switch acts on says why: texture refreshes per frame, all threads reports 540 ms a frame "waiting for title memory to hold still" by default and 0.0 ms with VICTORY_TEXTURE_NO_WAIT=1, and the refreshes then do their work (102-180 ms) instead of queueing behind the title's remaps.

The cells it does not touch are the ones where the wait was not binding: 3,000-6,000 draws above 300 MB of textures is 3,033 against 3,057 ms. So it is a per-cell gain, not a mean, and a mean over all frames averages it away.

Two caveats worth putting next to the numbers:

  • The summed wait is not frame time. The same switch on a Windows machine moved 4,572 ms of summed wait to 0 with 2.91 against 2.98 fps, because that sum is over threads and was not the critical path. On this rig it is binding only when paired with VICTORY_RELAY=2.
  • Both sides were measured with 3-4 GB of RAM free. A run under pressure (400 MB free, ~1,100 major faults a second) came out 25-35 % slower at the same switches, so free memory has to be stated with any number taken here.

For the document: the Linux section should say to run with both switches, and that 20 GB of free memory at start is a requirement rather than a comfort.

**@⁠rostaddotcc** on GitHub · 2026-11-25 20:33 UTC · [original](https://github.com/fxceless/victory-fork/pull/41#issuecomment-7173847660) Measured on the rig this document is written from, on `79cfdd96`, and it belongs in this file: the two switches the Linux users here run with — `VICTORY_TEXTURE_NO_WAIT=1` and `VICTORY_RELAY=2` — roughly halve the frame time in the world, and neither is on by default. Two 330 s runs a side, `VICTORY_FRAME_LOG=1`, 100 frames a side, bucketed on draws *and* on texture megabytes a frame so the two sides are in comparable scenes. Median per cell: | draws | textures a frame | default | with the two switches | |---|---|---|---| | under 1,500 (menus) | under 50 MB | 63 ms | 43 ms | | under 1,500 | 50-150 MB | 3,338 ms | 1,248 ms | | under 1,500 | 150-300 MB | 3,975 ms | 1,815 ms | | 1,500-3,000 | under 50 MB | 3,621 ms | 1,747 ms | | 1,500-3,000 | 150-300 MB | 3,233 ms | 1,568 ms | | 1,500-3,000 | over 300 MB | 5,270 ms | 1,562 ms | | 3,000-6,000 | under 50 MB | 5,704 ms | 2,655 ms | | 3,000-6,000 | 50-150 MB | 4,578 ms | 1,728 ms | | 3,000-6,000 | over 300 MB | 3,033 ms | 3,057 ms | World frames (1,500 draws and up): median 4,347 ms against 2,221 ms. The lane the switch acts on says why: `texture refreshes per frame, all threads` reports 540 ms a frame "waiting for title memory to hold still" by default and **0.0 ms** with `VICTORY_TEXTURE_NO_WAIT=1`, and the refreshes then do their work (102-180 ms) instead of queueing behind the title's remaps. The cells it does not touch are the ones where the wait was not binding: 3,000-6,000 draws above 300 MB of textures is 3,033 against 3,057 ms. So it is a per-cell gain, not a mean, and a mean over all frames averages it away. Two caveats worth putting next to the numbers: - The summed wait is not frame time. The same switch on a Windows machine moved 4,572 ms of summed wait to 0 with 2.91 against 2.98 fps, because that sum is over threads and was not the critical path. On this rig it is binding only when paired with `VICTORY_RELAY=2`. - Both sides were measured with 3-4 GB of RAM free. A run under pressure (400 MB free, ~1,100 major faults a second) came out 25-35 % slower at the same switches, so free memory has to be stated with any number taken here. For the document: the Linux section should say to run with both switches, and that 20 GB of free memory at start is a requirement rather than a comfort.
This pull request has changes conflicting with the target branch.
  • README.md
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/41/head:github-bot/gh-41'
git switch 'github-bot/gh-41'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-41'
git switch 'github-bot/gh-41'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-41'
git switch 'github-bot/gh-41'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-41'
git switch 'main'
git merge --squash 'github-bot/gh-41'
git switch 'main'
git merge --ff-only 'github-bot/gh-41'
git switch 'main'
git merge 'github-bot/gh-41'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.