Linux/Proton on an RX 7900 XTX: Windows frame times (~50 ms, Series X, RT off) with stock RADV 26.2.5; setup, A/B results, a GPU reset #352

Open
opened 2026-11-26 18:15:30 +00:00 by github-bot · 3 comments
Owner

@⁠Fedalv on GitHub · 2026-11-26 18:13 UTC · original

Linux/Proton on an RX 7900 XTX: the Windows frame times (~50 ms, Series X, ray tracing off) with stock RADV, what it takes, and what is still wrong

A report like #111 and #156, for the README's own card. One machine; numbers are medians of 300 s runs over the opening sequence with the launcher's A press at the start screen; the spread between identical runs is about ±4 ms.

Setup

  • Linux 7.2, Ryzen 7 7800X3D (SMT off), 30 GB RAM, RX 7900 XTX, Mesa RADV 26.2.5 (most reports here use 26.3.1)
  • Proton Experimental 11.0-20261112 (Wine 5b55760), with only files/bin/wineserver replaced by one built from that commit with the view-tree patch (CachyOS/wine-cachyos#50); protocol checked against its ntdll.so (931)
  • vkd3d-proton master 71cae09 (dxil-spirv b540c8a); GE-Proton11-11's older dxil-spirv crashed RADV at the first pipeline (exit 3, as in #57)
  • Microsoft's d3dcompiler_47 from Windows 11 (10.0.26100); winetricks' 2013 build refuses cs_5_1 (X3506) and the two-plane composer, compare and keep-awake helpers all fail
  • Launched with PROTON_VERB=runinprefix so the layer's log reaches stdout (the default verb's steam.exe wrapper swallows it). That verb skips Proton's DLL overrides, so WINEDLLOVERRIDES=d3d12,d3d12core,dxgi,d3dcompiler_47=n is needed: without dxgi=n Wine's own dxgi drives the swapchain through Wine's vkd3d and the title dies in libvkd3d-1.dll in its first frame
  • VKD3D_SHADER_CACHE_PATH set to a folder; otherwise vkd3d-proton writes its cache into the working directory (here: the checkout)
  • Cross-built on Linux with cargo xwin (--profile diag --features diagnostics, x86_64-pc-windows-msvc), about a minute

Results (main + #151, #200, #166, #114 with fxceless#927's half views and the raw typed loads)

median ms/frame
stock wineserver 102 (p90 555; wineserver ~90 % of a core)
view-tree wineserver 47-52 (wineserver ~4 %)
same, VICTORY_CARD_STEPS=0 118 (the submitting thread waits ~20 ms for the card)
Series S ~50, but jagged edges and speckled hair/beards; Series X ~53-56 looks clean
Series X at VICTORY_OUTPUT=2560x1440 VICTORY_RENDER_SCALE=1.0 (native for a 1440p monitor) ~53, same as 4K drawn at 1440p here

That is the README's Windows figure for the same card (49 ms standing). The CPU is not saturated (26 % idle); the frame is the title's main thread plus the submitting thread one after the other.

Measured as noise here (±4 ms): renderer port 2 off (and off it keeps distant trees from flickering, #122), port 6, VICTORY_LAND_SKIP=1, VICTORY_TEXTURE_SWEEP=0, a release build. Slower: VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=4096 (57.6 vs 52.0), and #206's play.ps1 settings (133 ms, details on #206). Port 1 stays off (#163).

Problems seen

  • A whole-GPU reset once in a run with card steps on, 3 min in: a command-processor write to 0xfffffffff000 on vkd3d's compute queue, a failed queue reset, then a full reset that took the compositor down (and left an NTFS volume holding the game dirty: keep the layer's data and cache off NTFS on Linux). Not seen again in 18 runs since; #351 adds a bounds check on the card steps' copies, the one path here that copies at offsets taken from title memory.
  • Faces need #114 together with fxceless#927's half views and the raw typed loads on this card (details on #114); #114 alone tears mouths.
  • Hyprland 0.56 users scripting window placement: hyprctl dispatch takes hl.dsp.* Lua expressions there.

AI-assisted (Claude Code); runs on my machine. No game files, captures or screenshots.

**@⁠Fedalv** on GitHub · 2026-11-26 18:13 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/352) **Linux/Proton on an RX 7900 XTX: the Windows frame times (~50 ms, Series X, ray tracing off) with stock RADV, what it takes, and what is still wrong** A report like #111 and #156, for the README's own card. One machine; numbers are medians of 300 s runs over the opening sequence with the launcher's A press at the start screen; the spread between identical runs is about ±4 ms. ## Setup - Linux 7.2, Ryzen 7 7800X3D (SMT off), 30 GB RAM, RX 7900 XTX, Mesa RADV **26.2.5** (most reports here use 26.3.1) - Proton Experimental 11.0-20261112 (Wine `5b55760`), with only `files/bin/wineserver` replaced by one built from that commit with the view-tree patch (CachyOS/wine-cachyos#50); protocol checked against its `ntdll.so` (931) - vkd3d-proton master `71cae09` (dxil-spirv `b540c8a`); GE-Proton11-11's older dxil-spirv crashed RADV at the first pipeline (exit 3, as in #57) - Microsoft's `d3dcompiler_47` from Windows 11 (10.0.26100); winetricks' 2013 build refuses `cs_5_1` (`X3506`) and the two-plane composer, compare and keep-awake helpers all fail - Launched with `PROTON_VERB=runinprefix` so the layer's log reaches stdout (the default verb's `steam.exe` wrapper swallows it). That verb skips Proton's DLL overrides, so `WINEDLLOVERRIDES=d3d12,d3d12core,dxgi,d3dcompiler_47=n` is needed: without `dxgi=n` Wine's own dxgi drives the swapchain through Wine's vkd3d and the title dies in `libvkd3d-1.dll` in its first frame - `VKD3D_SHADER_CACHE_PATH` set to a folder; otherwise vkd3d-proton writes its cache into the working directory (here: the checkout) - Cross-built on Linux with `cargo xwin` (`--profile diag --features diagnostics`, `x86_64-pc-windows-msvc`), about a minute ## Results (main + #151, #200, #166, #114 with fxceless#927's half views and the raw typed loads) | | median ms/frame | |---|---| | stock wineserver | 102 (p90 555; wineserver ~90 % of a core) | | view-tree wineserver | 47-52 (wineserver ~4 %) | | same, `VICTORY_CARD_STEPS=0` | 118 (the submitting thread waits ~20 ms for the card) | | Series S | ~50, but jagged edges and speckled hair/beards; Series X ~53-56 looks clean | | Series X at `VICTORY_OUTPUT=2560x1440 VICTORY_RENDER_SCALE=1.0` (native for a 1440p monitor) | ~53, same as 4K drawn at 1440p here | That is the README's Windows figure for the same card (49 ms standing). The CPU is not saturated (26 % idle); the frame is the title's main thread plus the submitting thread one after the other. Measured as noise here (±4 ms): renderer port 2 off (and off it keeps distant trees from flickering, #122), port 6, `VICTORY_LAND_SKIP=1`, `VICTORY_TEXTURE_SWEEP=0`, a release build. Slower: `VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=4096` (57.6 vs 52.0), and #206's `play.ps1` settings (133 ms, details on #206). Port 1 stays off (#163). ## Problems seen - **A whole-GPU reset once** in a run with card steps on, 3 min in: a command-processor write to `0xfffffffff000` on vkd3d's compute queue, a failed queue reset, then a full reset that took the compositor down (and left an NTFS volume holding the game dirty: keep the layer's data and cache off NTFS on Linux). Not seen again in 18 runs since; #351 adds a bounds check on the card steps' copies, the one path here that copies at offsets taken from title memory. - **Faces** need #114 together with fxceless#927's half views and the raw typed loads on this card (details on #114); #114 alone tears mouths. - **Hyprland 0.56** users scripting window placement: `hyprctl dispatch` takes `hl.dsp.*` Lua expressions there. AI-assisted (Claude Code); runs on my machine. No game files, captures or screenshots.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 18:15:30 +00:00
Author
Owner

@⁠ge9x0 on GitHub · 2026-11-26 19:55 UTC · original

Thanks for this report. The view-tree wineserver tip was the biggest single win on my machine as well. Here are results from a second Linux/AMD setup, in case they help.

Setup: Fedora, kernel 7.3, Ryzen 5 5600X, RX 7700 XT 12 GB, 32 GB RAM, GE-Proton11-7. VIctory is this repo's main merged at c9c932c, plus a few Linux changes.

What helped

  1. wineserver with the view-tree patch (wine-cachyos PR 50, fd66dbca8eb0), built for GE-Proton11-7: wineserver went from about 75% of a core to about 1%.
  2. udmabuf instead of userptr for in-place title memory.
    • With VICTORY_INPLACE=2, the vkd3d_queue thread spent 100–130% of a core in kernel time, in amdgpu_cs → amdgpu_ttm_tt_get_user_pages. The kernel walks every userptr page at every submission.
    • An LD_PRELOAD shim turns private anonymous mappings of 128 MB or more into shared memfd mappings, and imports them through /dev/udmabuf, so they are pinned once. That brought kernel time down to about 31%.
    • With a 64 MB threshold, the title hits an int3 of its own at startup. I haven't found out why yet.
  3. The CPU compare shader under Wine's HLSL compiler.
    • Without Microsoft's d3dcompiler_47, the card compare shader fails (0x80004005, "no host copies in the card's memory"). Every frame then compares 300–600 MB on the CPU.
    • Rewriting its ByteAddressBuffer uses to StructuredBuffer<uint> fixed it. The native d3dcompiler, as you used, is the cleaner fix.
  4. +crt-static: Wine's ucrtbase memcmp is a plain C loop.

Result: 720p with RT on, in the prison and the yard, went from 2–5 fps to 5–8 fps, and 9–14 fps in lighter moments.

Different from your report: here, leaving out the play.ps1 settings made things much worse: 0.4–1.4 fps, with texture refreshes at about 900 ms per frame.

Made it worse here:

  • transparent_hugepage=always: the write watch splits huge pages, copies grew about 3x, and textures went missing.
  • VICTORY_ASK_NORESET=1 / VICTORY_ASK_SPREAD=1.
  • VKD3D_CONFIG=no_upload_hvv / force_host_cached: these crash.

Still open: a recurring read 0xffffffffffffffff crash at varying offsets, mostly in the first scene after the intro (4 of about 20 runs).

Scripts, the shim and the wineserver build script are at https://github.com/ge9x0/gta6-linux. The Linux branch of the emulator is at https://github.com/ge9x0/VIctory-7900XTX/tree/linux.

AI-assisted (Claude Code). No game files, captures or screenshots.

**@⁠ge9x0** on GitHub · 2026-11-26 19:55 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/352#issuecomment-7202099921) Thanks for this report. The view-tree wineserver tip was the biggest single win on my machine as well. Here are results from a second Linux/AMD setup, in case they help. **Setup:** Fedora, kernel 7.3, Ryzen 5 5600X, RX 7700 XT 12 GB, 32 GB RAM, GE-Proton11-7. VIctory is this repo's `main` merged at c9c932c, plus a few Linux changes. **What helped** 1. **wineserver with the view-tree patch** (wine-cachyos PR 50, fd66dbca8eb0), built for GE-Proton11-7: wineserver went from about 75% of a core to about 1%. 2. **udmabuf instead of userptr for in-place title memory.** - With `VICTORY_INPLACE=2`, the `vkd3d_queue` thread spent 100–130% of a core in kernel time, in `amdgpu_cs` → `amdgpu_ttm_tt_get_user_pages`. The kernel walks every userptr page at every submission. - An LD_PRELOAD shim turns private anonymous mappings of 128 MB or more into shared memfd mappings, and imports them through `/dev/udmabuf`, so they are pinned once. That brought kernel time down to about 31%. - With a 64 MB threshold, the title hits an `int3` of its own at startup. I haven't found out why yet. 3. **The CPU compare shader under Wine's HLSL compiler.** - Without Microsoft's `d3dcompiler_47`, the card compare shader fails (`0x80004005`, "no host copies in the card's memory"). Every frame then compares 300–600 MB on the CPU. - Rewriting its `ByteAddressBuffer` uses to `StructuredBuffer<uint>` fixed it. The native d3dcompiler, as you used, is the cleaner fix. 4. **`+crt-static`**: Wine's ucrtbase `memcmp` is a plain C loop. **Result:** 720p with RT on, in the prison and the yard, went from 2–5 fps to 5–8 fps, and 9–14 fps in lighter moments. **Different from your report:** here, leaving out the `play.ps1` settings made things much worse: 0.4–1.4 fps, with texture refreshes at about 900 ms per frame. **Made it worse here:** - `transparent_hugepage=always`: the write watch splits huge pages, copies grew about 3x, and textures went missing. - `VICTORY_ASK_NORESET=1` / `VICTORY_ASK_SPREAD=1`. - `VKD3D_CONFIG=no_upload_hvv` / `force_host_cached`: these crash. **Still open:** a recurring `read 0xffffffffffffffff` crash at varying offsets, mostly in the first scene after the intro (4 of about 20 runs). Scripts, the shim and the wineserver build script are at https://github.com/ge9x0/gta6-linux. The Linux branch of the emulator is at https://github.com/ge9x0/VIctory-7900XTX/tree/linux. AI-assisted (Claude Code). No game files, captures or screenshots.
Author
Owner

@⁠Fedalv on GitHub · 2026-11-26 20:19 UTC · original

Thanks, two results from here on your points:

  • +crt-static: no gain on this machine. Same build, back to back, 300 s each: 54.9 ms median without, 56.2 with (copies 17.3 vs 16.8 ms, copying back 34.9 vs 32.9); within the ±4 ms run-to-run spread. The CPU compare runs on the card here (Microsoft's d3dcompiler_47), which may be why memcmp does not show.
  • The read 0xffffffffffffffff crash: seen once in 21 runs here, at victory-image-b99f876b74d4a77f.dll+0x53ec72b, 292 s in during play (not at shutdown), with no victory_gpu::timeline wait timeout before it (unlike upstream Marvisak/VIctory#2174, same shape). So it is not specific to your card or to the in-place path.

AI-assisted (Claude Code).

**@⁠Fedalv** on GitHub · 2026-11-26 20:19 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/352#issuecomment-7202544385) Thanks, two results from here on your points: - **`+crt-static`**: no gain on this machine. Same build, back to back, 300 s each: 54.9 ms median without, 56.2 with (copies 17.3 vs 16.8 ms, copying back 34.9 vs 32.9); within the ±4 ms run-to-run spread. The CPU compare runs on the card here (Microsoft's `d3dcompiler_47`), which may be why `memcmp` does not show. - **The `read 0xffffffffffffffff` crash**: seen once in 21 runs here, at `victory-image-b99f876b74d4a77f.dll+0x53ec72b`, 292 s in during play (not at shutdown), with no `victory_gpu::timeline` wait timeout before it (unlike upstream Marvisak/VIctory#2174, same shape). So it is not specific to your card or to the in-place path. AI-assisted (Claude Code).
Author
Owner

@⁠Fedalv on GitHub · 2026-11-26 20:47 UTC · original

Correction to the report above: the whole-GPU reset is not explained by the card steps. It came back (2 in ~25 runs now, both ~3 min in) with #351's check active and silent, again a CPC write to 0xfffffffff000, now on comp_1.2.0 (first time comp_1.0.1), both in VMID 0, failed queue reset, full reset, compositor gone. Card steps stay on here (off costs ~2.5x).

Mesa RADV 26.2.5, kernel 7.2.15, linux-firmware 20260916. Next thing tried: VKD3D_CONFIG=single_queue (keeps vkd3d-proton off the compute rings); I'll report whether the resets stop and what it costs. If anyone on 26.3.x or a 7.3 kernel has seen this fault (vmid:0, client CPC, address 0xfffffffff000), that would help to know.

AI-assisted (Claude Code).

**@⁠Fedalv** on GitHub · 2026-11-26 20:47 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/352#issuecomment-7203077509) **Correction to the report above:** the whole-GPU reset is not explained by the card steps. It came back (2 in ~25 runs now, both ~3 min in) with #351's check active and silent, again a CPC write to `0xfffffffff000`, now on `comp_1.2.0` (first time `comp_1.0.1`), both in VMID 0, failed queue reset, full reset, compositor gone. Card steps stay on here (off costs ~2.5x). Mesa RADV 26.2.5, kernel 7.2.15, linux-firmware 20260916. Next thing tried: `VKD3D_CONFIG=single_queue` (keeps vkd3d-proton off the compute rings); I'll report whether the resets stop and what it costs. If anyone on 26.3.x or a 7.3 kernel has seen this fault (`vmid:0`, `client CPC`, address `0xfffffffff000`), that would help to know. AI-assisted (Claude Code).
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/avatarmanz--VIctory-7900XTX#352
No description provided.