docs/linux-proton: longer runs on an RTX 4090 (vkd3d-proton master, Xid 13/109, gamescope WSI) #1199

Manually merged
github merged 3 commits from github-bot/gh-1199 into main 2026-11-29 08:21:30 +00:00 AGit
Owner

@⁠domx4q on GitHub · 2026-11-28 15:24 UTC · original
domx4q:docs/linux-proton-rtx4090 → main · +125 −0 · 1 files · 3 commits · merged 2026-11-29 08:16 UTC

Summary

Adds a section to docs/linux-proton.md from two days of play and headless runs (9 to 16 minutes each) under Proton Experimental 11. Hardware: RTX 4090 with NVIDIA 620.73.04, i9-14900KF.

  • Heads, textures and light missing. vkd3d-proton 3.2.0 overflows its stack in dxil-spirv on seven compute shaders; the hashes are in the doc. Those pipelines are never made. vkd3d-proton master (71cae091b) makes all ~1930.
  • Xid 13 / Xid 109, then the title's watchdog crash (#628).
    • Cause, per Marvisak/VIctory#542: with VK_NV_raw_access_chains on, NVIDIA and vkd3d-proton read 4 GiB past a buffer.
    • Fix: VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains. Since then, no Xid 13 or 109 in 8 measured runs or in hours of play.
  • VRAM budget. On NVIDIA's Linux driver a budget above what is free on the card is worse than on Windows.
  • Nested gamescope showing new frames only on a workspace change. Fixed by presenting through gamescope's WSI layer.
  • Settings that made things worse: VICTORY_SCREEN_WAIT_MS=0, VICTORY_FAULT_UNLOCKED/VICTORY_GUARD_HOT, and #168's texture switches.
  • Warm-up restart. It never brought the game back here; VICTORY_WARMUP_RESTART=0 avoids it.
  • Frame rate.
    • Where the time goes: the layer's own breakdown puts it in the write watch and guard calls through Wine.
    • One open problem, stated as such: in one of four runs from the same save, the frame rate fell to 0.2 fps and did not recover.

Each claim gives what was measured and how often. Anything seen only once says so.

**@⁠domx4q** on GitHub · 2026-11-28 15:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1199) `domx4q:docs/linux-proton-rtx4090` → `main` · +125 −0 · 1 files · 3 commits · merged 2026-11-29 08:16 UTC ## Summary Adds a section to `docs/linux-proton.md` from two days of play and headless runs (9 to 16 minutes each) under Proton Experimental 11. Hardware: RTX 4090 with NVIDIA 620.73.04, i9-14900KF. - **Heads, textures and light missing.** vkd3d-proton 3.2.0 overflows its stack in dxil-spirv on seven compute shaders; the hashes are in the doc. Those pipelines are never made. vkd3d-proton master (`71cae091b`) makes all ~1930. - **Xid 13 / Xid 109, then the title's watchdog crash (#628).** - Cause, per Marvisak/VIctory#542: with `VK_NV_raw_access_chains` on, NVIDIA and vkd3d-proton read 4 GiB past a buffer. - Fix: `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`. Since then, no Xid 13 or 109 in 8 measured runs or in hours of play. - **VRAM budget.** On NVIDIA's Linux driver a budget above what is free on the card is worse than on Windows. - **Nested `gamescope` showing new frames only on a workspace change.** Fixed by presenting through gamescope's WSI layer. - **Settings that made things worse:** `VICTORY_SCREEN_WAIT_MS=0`, `VICTORY_FAULT_UNLOCKED`/`VICTORY_GUARD_HOT`, and #168's texture switches. - **Warm-up restart.** It never brought the game back here; `VICTORY_WARMUP_RESTART=0` avoids it. - **Frame rate.** - Where the time goes: the layer's own breakdown puts it in the write watch and guard calls through Wine. - One open problem, stated as such: in one of four runs from the same save, the frame rate fell to 0.2 fps and did not recover. Each claim gives what was measured and how often. Anything seen only once says so.
vkd3d-proton 3.2.0's stack overflow on seven compute shaders (heads, textures
and light missing) and master making them; Xid 13/109 gone with
VK_NV_raw_access_chains disabled; the VRAM budget on NVIDIA's Linux driver;
gamescope's WSI layer in a nested gamescope; settings that made it worse; the
warm-up restart; where the frame time goes under Wine.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 15:27:39 +00:00
Author
Owner

@⁠BitWuehler on GitHub · 2026-11-28 18:57 UTC · original

Corroborating data point from another Linux/Proton NVIDIA system (CachyOS, Ryzen 7 9800X3D, RTX 5080 16 GB, driver 620.73.04, GE-Proton11-14 with RB-tree wineserver, Series X 2560×1440, release build on 9ce3cf9):

  • VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains: Confirmed essential on RTX 5080 + 620.73.04 as well (without it, deterministic loading hangs reproduced; with it, 0 Xids across all sessions).
  • The 7 stuck compute shaders in vkd3d-proton 3.2.0: Confirmed the exact same 7 compute shaders stalling in vkd3d-proton 3.2.0 (17829ac71aab4e8d, 32ed072b9f845048, 559d9f0184e15fe3, a1b20bc47e3c9597, afeea48bbb9913ad, e8c962358d862e3f, fdd56d97a806bcca). Good to know vkd3d-proton master 71cae091b compiles all of them; on 3.2.0, porting the one-frame wait claim (fxceless/victory-fork#1234) eliminates the repeated 500 ms per-frame stall.
  • Streamline DLSS Super Resolution under Proton (tested): With Streamline v2.14.16 + PROTON_ENABLE_NVAPI=1 + DXVK_ENABLE_NVAPI=1 + VICTORY_DLSS=1 + VICTORY_DLSS_MODE=quality, DLSS initialized cleanly (4,863 consecutive frames evaluated, 0.00 failed, 0.00 FidelityFX fallbacks) and ran at 28 fps steady (36.1 ms/frame at 5,862 draws/frame, peaking >30 fps, preparing: 33.1–34.2 ms).
  • Helper-shader DXC fallback: Routing host::compile (ambient.rs + PlanePass) and inplace::Rig::shade through DXC in addition to indirect / card_compare is also needed under Wine's d3dcompiler_47 (otherwise ambient::tests::the_passes_build fails with 0x80004005).

(AI-assisted testing, log analysis, and summary.)

**@⁠BitWuehler** on GitHub · 2026-11-28 18:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1199#issuecomment-7244185149) Corroborating data point from another Linux/Proton NVIDIA system (CachyOS, Ryzen 7 9800X3D, RTX 5080 16 GB, driver `620.73.04`, `GE-Proton11-14` with RB-tree `wineserver`, Series X 2560×1440, `release` build on `9ce3cf9`): - **`VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`:** Confirmed essential on RTX 5080 + `620.73.04` as well (without it, deterministic loading hangs reproduced; with it, 0 Xids across all sessions). - **The 7 stuck compute shaders in `vkd3d-proton 3.2.0`:** Confirmed the exact same 7 compute shaders stalling in `vkd3d-proton 3.2.0` (`17829ac71aab4e8d`, `32ed072b9f845048`, `559d9f0184e15fe3`, `a1b20bc47e3c9597`, `afeea48bbb9913ad`, `e8c962358d862e3f`, `fdd56d97a806bcca`). Good to know `vkd3d-proton` master `71cae091b` compiles all of them; on `3.2.0`, porting the one-frame wait claim (`fxceless/victory-fork#1234`) eliminates the repeated 500 ms per-frame stall. - **Streamline DLSS Super Resolution under Proton (tested):** With Streamline `v2.14.16` + `PROTON_ENABLE_NVAPI=1` + `DXVK_ENABLE_NVAPI=1` + `VICTORY_DLSS=1` + `VICTORY_DLSS_MODE=quality`, DLSS initialized cleanly (`4,863` consecutive frames evaluated, `0.00` failed, `0.00` FidelityFX fallbacks) and ran at **28 fps steady** (`36.1 ms/frame` at 5,862 draws/frame, peaking >30 fps, `preparing: 33.1–34.2 ms`). - **Helper-shader DXC fallback:** Routing `host::compile` (`ambient.rs` + `PlanePass`) and `inplace::Rig::shade` through DXC in addition to `indirect` / `card_compare` is also needed under Wine's `d3dcompiler_47` (otherwise `ambient::tests::the_passes_build` fails with `0x80004005`). *(AI-assisted testing, log analysis, and summary.)*
Author
Owner

@⁠BitWuehler on GitHub · 2026-11-28 19:22 UTC · original

Follow-up after swapping in vkd3d-proton master (71cae091b06571e5, CI artifact 45638272256) on the same CachyOS / RTX 5080 16 GB / GE-Proton11-14-viewtree setup (9ce3cf9, Series X 2560×1440, DLSS Quality, release build, 13m 44s session):

  • All 7 previously-stuck compute shaders compiled cleanly (7 / 7): 17829ac71aab4e8d, 32ed072b9f845048, 559d9f0184e15fe3, a1b20bc47e3c9597, afeea48bbb9913ad, e8c962358d862e3f, fdd56d97a806bcca — confirming your RTX 4090 finding on Blackwell as well (made=2416, early=2912, host-pipelines.bin 186 KB).
  • Streamline DLSS Quality stability: 17,564 consecutive frames upscaled by DLSS with 0.00 failures and 0.00 FidelityFX fallbacks; 0 Xids / 0 device removals over the full 13m 44s run.
  • Measured frame rates: 34.5–38.7 fps (25.8–29.0 ms/frame, preparing: 19.1–23.2 ms) in interiors/cutscenes, 24–27 fps in the opening rooms, and 14.5 fps (69.1 ms/frame) outdoors at 9,719 draws/frame; reflection stand-in (CS_RayMiss) ran 339–388 frames / 678–776 dispatches per 10 s.

(AI-assisted testing, log analysis, and summary.)

**@⁠BitWuehler** on GitHub · 2026-11-28 19:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1199#issuecomment-7244494987) Follow-up after swapping in `vkd3d-proton` master (`71cae091b06571e5`, CI artifact `45638272256`) on the same CachyOS / RTX 5080 16 GB / `GE-Proton11-14-viewtree` setup (`9ce3cf9`, Series X 2560×1440, DLSS Quality, `release` build, 13m 44s session): - **All 7 previously-stuck compute shaders compiled cleanly (`7 / 7`):** `17829ac71aab4e8d`, `32ed072b9f845048`, `559d9f0184e15fe3`, `a1b20bc47e3c9597`, `afeea48bbb9913ad`, `e8c962358d862e3f`, `fdd56d97a806bcca` — confirming your RTX 4090 finding on Blackwell as well (`made=2416`, `early=2912`, `host-pipelines.bin` `186 KB`). - **Streamline DLSS Quality stability:** `17,564` consecutive frames upscaled by DLSS with `0.00` failures and `0.00` FidelityFX fallbacks; `0` Xids / `0` device removals over the full 13m 44s run. - **Measured frame rates:** `34.5–38.7 fps` (`25.8–29.0 ms/frame`, `preparing: 19.1–23.2 ms`) in interiors/cutscenes, `24–27 fps` in the opening rooms, and `14.5 fps` (`69.1 ms/frame`) outdoors at `9,719 draws/frame`; reflection stand-in (`CS_RayMiss`) ran `339–388 frames / 678–776 dispatches per 10 s`. *(AI-assisted testing, log analysis, and summary.)*
Author
Owner

@⁠Headache3318 on GitHub · 2026-11-28 21:19 UTC · original

Linux data point from a different corner: three RTX 4090s + Granite Ridge iGPU, headless (no monitor anywhere), Arch, driver 620.73.04, Proton Experimental 11.0-20261112, victory.exe v2026.11.28.03 release, dump GTA6.Xbox.v1.0.2.1-CYBERLEEK. First 4K + DLSS-Quality + DLSS FG 2x session I can evidence end to end on this fork under Proton.

  1. Launch: proton run deadlocks here, proton runinprefix does not. Under proton run, steam.exe parks in ntsync_schedule and the title sleeps in anon_pipe_read at 0% CPU forever. Reproduced on Proton Experimental, GE-Proton11-12, GE-Proton11-14 and UMU-Proton-11.0-2e, with PROTON_NO_FSYNC=1 and even with /dev/ntsync hidden via bwrap (wineserver then says using server-side synchronization and still hangs). runinprefix gets to the F1 menu in ~40 s. It skips Proton's DLL injection, so prefix needs WINEDLLOVERRIDES="d3d12=n,b;d3d12core=n,b;dxgi=n,b;nvapi64=n,b" — without them the title runs on builtin d3d12 and reports shader model 6.2 where it wants 6.6. The title then starts its own steam.exe child which spawns xalia — but xalia only gets its virtual pad if /dev/uinput is writable when it boots (setfacl -m u:<you>:rw /dev/uinput before the first launch; my first several runs silently had no gamepad for this reason).

  2. The present wall was X-side, and a real NVIDIA Xorg took it out. On Xvfb at depth 24, 30 and 48, and on an Xorg with the modesetting driver, the D3D12 chain dies the same way: dxgi_vk_swap_chain_create_surface: Surface is not supported for presentation → CreateSwapChainForHwnd 0x80070057, 6k-28k times per run. With Driver "nvidia" on the same card the game renders on (BusID "PCI:1:0:0", Option "UseDisplayDevice" "none", DefaultDepth 30, Virtual 3840 2160) the very first frame presents: presenting to a window width=3840 height=2160 format=28, and no swap chain = 0 across every run since. gamescope was not needed; headless UseDisplayDevice none works.

  3. Multi-GPU pinning was mandatory. With 3x4090 + the 610M iGPU, the title's vkd3d device and the Xorg GPU diverged and the 0x80070057 wall came back (plus a the card's own: budget 532 MB line from the iGPU). Pinning both sides to one device — VKD3D_VULKAN_DEVICE=0 and a DXVK_CONFIG_FILE with dxvk.hideAllAdaptersExcept = 0, on top of the usual *_FILTER_DEVICE_NAME — took SWAPFAIL from ~15-28k to 0. Worth documenting: filter names alone are not enough when several cards share a name.

  4. The FG support gate reads Proton's HAGS emulation. Streamline here: DLSS Frame Generation is supported on this GPU requirements="OS 10.0.19045 (needs 10.0.19041), driver 620.73.0 (needs 512.15.0)..." then loaded streamline=2.14.16 ngx=310.9.16 (user-own 310.9.16 nvngx). The identical upscaler-check on stock Arch wine instead reports not supported here: OS hardware scheduling disabled (4) — wine's D3DKMT says HAGS off, and there is no env to force it, so on Linux DLSS-FG means Proton, not just any wine. FG then actually interpolated in a front-end run: 3570 copies in front of the title's interface composite in one 10 s window, FRAME GENERATION < 2X > in the F1 menu (--framegen 2 --fg-type dlss --no-framegen-ready).

  5. FSR 3 FG on NVIDIA ends at code=3. With AMD's signed FidelityFX DLLs in place and all four ffx* title imports hooked: FidelityFX did not make the swap chain; made as before, frame generation off code=3. On RTX, DLSS-FG is the only FG that reaches the swap chain here.

  6. Headless input works surprisingly well. F1/F3 respond to XTEST keystrokes (xdotool, ~1 s holds — the menu polls GetAsyncKeyState so single synthetic taps get missed) with the window focused under openbox. The uinput virtual x360 pad (045E:028E) drove the game's own hub through xalia: the title rendered its Xbox legend — ACCOUNT PICKER (Y) SCREEN NARRATION (OFF) (X) PLAYER (A) — at 3840x2160 on the real GPU.

  7. One machine-specific wall, in case others hit it: world load was OOM-killed at ~4 GB title RSS because an LLM server here pins 48 of 60 GB RAM (that also explains the budget 532 MB scare — it was the iGPU, not the 4090). Adding 16 GB of disk swap got the same launch through its first load attempts.

The 7 stuck-compute-shader fix (VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains, vkd3d master) was not needed on this Ada/3.2.0 combo — no loading stall observed, but the run never entered a full level, so I can't corroborate the shader thing from Ada yet.

**@⁠Headache3318** on GitHub · 2026-11-28 21:19 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1199#issuecomment-7245930874) Linux data point from a different corner: **three RTX 4090s + Granite Ridge iGPU, headless (no monitor anywhere), Arch, driver 620.73.04, Proton Experimental 11.0-20261112**, `victory.exe v2026.11.28.03` release, dump `GTA6.Xbox.v1.0.2.1-CYBERLEEK`. First 4K + DLSS-Quality + DLSS FG 2x session I can evidence end to end on this fork under Proton. 1. **Launch: `proton run` deadlocks here, `proton runinprefix` does not.** Under `proton run`, `steam.exe` parks in `ntsync_schedule` and the title sleeps in `anon_pipe_read` at 0% CPU forever. Reproduced on Proton Experimental, GE-Proton11-12, GE-Proton11-14 and UMU-Proton-11.0-2e, with `PROTON_NO_FSYNC=1` and even with `/dev/ntsync` hidden via bwrap (wineserver then says `using server-side synchronization` and still hangs). `runinprefix` gets to the F1 menu in ~40 s. It skips Proton's DLL injection, so prefix needs `WINEDLLOVERRIDES="d3d12=n,b;d3d12core=n,b;dxgi=n,b;nvapi64=n,b"` — without them the title runs on builtin d3d12 and reports shader model 6.2 where it wants 6.6. The title then starts its own `steam.exe` child which spawns xalia — but xalia only gets its virtual pad if `/dev/uinput` is writable when it boots (`setfacl -m u:<you>:rw /dev/uinput` before the first launch; my first several runs silently had no gamepad for this reason). 2. **The present wall was X-side, and a real NVIDIA Xorg took it out.** On Xvfb at depth 24, 30 and 48, and on an Xorg with the `modesetting` driver, the D3D12 chain dies the same way: `dxgi_vk_swap_chain_create_surface: Surface is not supported for presentation` → `CreateSwapChainForHwnd` `0x80070057`, 6k-28k times per run. With `Driver "nvidia"` on the same card the game renders on (`BusID "PCI:1:0:0"`, `Option "UseDisplayDevice" "none"`, `DefaultDepth 30`, `Virtual 3840 2160`) the very first frame presents: `presenting to a window width=3840 height=2160 format=28`, and `no swap chain` = **0 across every run since**. gamescope was not needed; headless `UseDisplayDevice none` works. 3. **Multi-GPU pinning was mandatory.** With 3x4090 + the 610M iGPU, the title's vkd3d device and the Xorg GPU diverged and the 0x80070057 wall came back (plus a `the card's own: budget 532 MB` line from the iGPU). Pinning both sides to one device — `VKD3D_VULKAN_DEVICE=0` and a `DXVK_CONFIG_FILE` with `dxvk.hideAllAdaptersExcept = 0`, on top of the usual `*_FILTER_DEVICE_NAME` — took SWAPFAIL from ~15-28k to 0. Worth documenting: filter names alone are not enough when several cards share a name. 4. **The FG support gate reads Proton's HAGS emulation.** Streamline here: `DLSS Frame Generation is supported on this GPU requirements="OS 10.0.19045 (needs 10.0.19041), driver 620.73.0 (needs 512.15.0)..."` then `loaded streamline=2.14.16 ngx=310.9.16` (user-own 310.9.16 nvngx). The identical `upscaler-check` on stock Arch wine instead reports `not supported here: OS hardware scheduling disabled (4)` — wine's D3DKMT says HAGS off, and there is no env to force it, so on Linux DLSS-FG means Proton, not just any wine. FG then actually interpolated in a front-end run: `3570 copies in front of the title's interface composite` in one 10 s window, `FRAME GENERATION < 2X >` in the F1 menu (`--framegen 2 --fg-type dlss --no-framegen-ready`). 5. **FSR 3 FG on NVIDIA ends at `code=3`.** With AMD's signed FidelityFX DLLs in place and all four `ffx*` title imports hooked: `FidelityFX did not make the swap chain; made as before, frame generation off code=3`. On RTX, DLSS-FG is the only FG that reaches the swap chain here. 6. **Headless input works surprisingly well.** F1/F3 respond to XTEST keystrokes (`xdotool`, ~1 s holds — the menu polls `GetAsyncKeyState` so single synthetic taps get missed) with the window focused under openbox. The uinput virtual x360 pad (045E:028E) drove the game's own hub through xalia: the title rendered its Xbox legend — `ACCOUNT PICKER (Y) SCREEN NARRATION (OFF) (X) PLAYER (A)` — at 3840x2160 on the real GPU. 7. One machine-specific wall, in case others hit it: world load was OOM-killed at ~4 GB title RSS because an LLM server here pins 48 of 60 GB RAM (that also explains the `budget 532 MB` scare — it was the iGPU, not the 4090). Adding 16 GB of disk swap got the same launch through its first load attempts. The 7 stuck-compute-shader fix (`VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`, vkd3d master) was not needed on this Ada/3.2.0 combo — no loading stall observed, but the run never entered a full level, so I can't corroborate the shader thing from Ada yet.
github manually merged commit 9ed6d1a49f into main 2026-11-29 08:21:30 +00:00
Author
Owner

@⁠Headache3318 on GitHub · 2026-11-29 16:39 UTC · original

+1 from the 3xRTX4090 / Arch side: with the app-dir vkd3d master pin (71cae091) our runs are DLSS/FG-clean too — no stuck-shader stalls in the front end, first interactive world tonight. One doc-worthy trap we hit that linux-proton.md should probably cover: on multi-GPU, whatever provides dxgi.dll decides the VRAM number the title sizes textures from, and it can silently report the wrong card's free memory (we saw 590 MB on an idle 24 GB card). Details + attempted fixes in VIctory-NVIDIA#1898.

**@⁠Headache3318** on GitHub · 2026-11-29 16:39 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1199#issuecomment-7259080721) +1 from the 3xRTX4090 / Arch side: with the app-dir vkd3d master pin (`71cae091`) our runs are DLSS/FG-clean too — no stuck-shader stalls in the front end, first interactive world tonight. One doc-worthy trap we hit that linux-proton.md should probably cover: on multi-GPU, whatever provides `dxgi.dll` decides the VRAM number the title sizes textures from, and it can silently report the *wrong card's* free memory (we saw 590 MB on an idle 24 GB card). Details + attempted fixes in VIctory-NVIDIA#1898.
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/trustno1-coder--VIctory-NVIDIA!1199
No description provided.