Skip to content

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

Open
rostaddotcc wants to merge 1 commit into
fxceless:mainfrom
rostaddotcc:docs/linux-proton
Open

rostaddotcc wants to merge 1 commit into
fxceless:mainfrom
rostaddotcc:docs/linux-proton

Conversation

@rostaddotcc

Copy link
Copy Markdown

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 Where the frame goes on a 4060 Ti: compute is 93% of the GPU time, two passes are 73 ms, one list costs 82 ms #10's Windows numbers. The presented frame stays black at 2 800–4 800 draws/frame, with and without PR GPU: compile our run-time HLSL with DXC when the system compiler refuses it (Wine/Proton) #20's DXC fallback built in, which fits the AMD/Linux report in Linux/Proton: runs with a DXC fallback for the runtime HLSL compiles; 6a2d9f9 stable on RTX 5070 Ti; speed switches under Wine #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 fxceless#20's DXC fallback.
@DaviTostes

Copy link
Copy Markdown

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.

@pablogonz12

Copy link
Copy Markdown

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: GPU: compile our run-time HLSL with DXC when the system compiler refuses it (Wine/Proton) #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.)

LazyHatGuy added a commit to LazyHatGuy/victory-fork that referenced this pull request Nov 24, 2026
… count

Measured on this box: winetricks installs a fixed June-2010
d3dcompiler_47 that predates D3D12 - it compiles [RootSignature(...)]
sources silently without embedding the root signature, so
CreateRootSignature E_FAILs; its 5_1 refusal is X3506. A Win10-era
native copy from the user's own Windows install is the requirement,
and with it the victory-gpu suite is 109/111 under Proton - the one
failure is vkd3d's OpenPipelineLibrary expectation (fxceless#64), not ours.

Also records the native-d3d12 override, HDR throttling that trips the
watchdog (fxceless#41), the texture-lane wait and its lever (fxceless#178), and the
full-run result measured upstream.

Co-Authored-By: Qwen 3.8 Flash Next <noreply@qwen.ai>

🤖 Generated with [OpenCode](https://opencode.ai) (Qwen3.8 Flash)

@ErRusso ErRusso left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 2e84c8d against 2119b0e.

The measurements and the Wine d3d12/HDR notes are useful and honest, and the doc correctly separates loading-phase frames from world-sized draw counts.

Requesting changes for two issues:

  1. The d3dcompiler_47 section is now outdated. It says Microsoft's d3dcompiler_47 is needed and that without it the clamp/card compare are lost. #20 now provides the DXC fallback for exactly those shaders; on Proton Experimental experimental-11.0-20261112 I measured the builtin compiler refusing the clamp/card/probe and DXC supplying them. Update the section to present DXC (VICTORY_DXC + dxil.dll) as the supported path, with Microsoft's DLL as an alternative only.
  2. This PR adds docs/linux-proton.md, and #228 adds a file with the same path. One of the two needs a different filename or they need to be merged; otherwise whichever lands second conflicts.

Non-blocking: the status line says ten minutes does not reach the cutscene; my run reached the prologue after input, so "unattended ten minutes" would be more precise.

luniiya added a commit to luniiya/victory-fork that referenced this pull request Nov 24, 2026
LazyHatGuy added a commit to LazyHatGuy/victory-fork that referenced this pull request Nov 25, 2026
The fork's status line still said the Proton path was untested beyond
smoke tests, and section 4 still listed a full run as unproven. Both are
now stale: fxceless#41 records a full run on AMD/RADV (menus, intro, loading and
world streaming at 1 777–5 292 draws a frame), and the one prerequisite
the report names is native d3d12/dxgi, which `run.sh` sets.

Record the other facts that cost runs to find:

- A fresh prefix is possible now; explain the `pfx` layout, the `pfx`
  `dosdevices` probe, and that GE-Proton 10+ maps Z: to `/`, so `--z`
  is a no-op and a host path is `Z:\mnt\games` rather than `Z:\games`.
- A title that sits at 30 fps and 13 draws a frame for ever is the start
  screen waiting for a pad, not a loader: give the `VICTORY_KEYS`
  diagnostics recipe and note the release build has no scripted keys.
- `--d3dcompiler FILE` and the native `d3dcompiler_47` requirement,
  including the `E5005` and `X3506` split between Wine's builtin and the
  2010 redistributable.
- The `inspect` blob name in the example is build-specific.
- `--texture-wait` opts out of the default no-wait lane.

Co-Authored-By: DeepSeek v4.1 Flash <noreply@deepseek.com>

🤖 Generated with [OpenCode](https://opencode.ai) (DeepSeek V4.1 Flash)
@rostaddotcc

Copy link
Copy Markdown
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants