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
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#352
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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
5b55760), with onlyfiles/bin/wineserverreplaced by one built from that commit with the view-tree patch (CachyOS/wine-cachyos#50); protocol checked against itsntdll.so(931)71cae09(dxil-spirvb540c8a); GE-Proton11-11's older dxil-spirv crashed RADV at the first pipeline (exit 3, as in #57)d3dcompiler_47from Windows 11 (10.0.26100); winetricks' 2013 build refusescs_5_1(X3506) and the two-plane composer, compare and keep-awake helpers all failPROTON_VERB=runinprefixso the layer's log reaches stdout (the default verb'ssteam.exewrapper swallows it). That verb skips Proton's DLL overrides, soWINEDLLOVERRIDES=d3d12,d3d12core,dxgi,d3dcompiler_47=nis needed: withoutdxgi=nWine's own dxgi drives the swapchain through Wine's vkd3d and the title dies inlibvkd3d-1.dllin its first frameVKD3D_SHADER_CACHE_PATHset to a folder; otherwise vkd3d-proton writes its cache into the working directory (here: the checkout)cargo xwin(--profile diag --features diagnostics,x86_64-pc-windows-msvc), about a minuteResults (main + #151, #200, #166, #114 with fxceless#927's half views and the raw typed loads)
VICTORY_CARD_STEPS=0VICTORY_OUTPUT=2560x1440 VICTORY_RENDER_SCALE=1.0(native for a 1440p monitor)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'splay.ps1settings (133 ms, details on #206). Port 1 stays off (#163).Problems seen
0xfffffffff000on 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.hyprctl dispatchtakeshl.dsp.*Lua expressions there.AI-assisted (Claude Code); runs on my machine. No game files, captures or screenshots.
@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
mainmerged atc9c932c, plus a few Linux changes.What helped
VICTORY_INPLACE=2, thevkd3d_queuethread spent 100–130% of a core in kernel time, inamdgpu_cs→amdgpu_ttm_tt_get_user_pages. The kernel walks every userptr page at every submission./dev/udmabuf, so they are pinned once. That brought kernel time down to about 31%.int3of its own at startup. I haven't found out why yet.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.ByteAddressBufferuses toStructuredBuffer<uint>fixed it. The native d3dcompiler, as you used, is the cleaner fix.+crt-static: Wine's ucrtbasememcmpis 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.ps1settings 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 0xffffffffffffffffcrash 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.
@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'sd3dcompiler_47), which may be whymemcmpdoes not show.read 0xffffffffffffffffcrash: seen once in 21 runs here, atvictory-image-b99f876b74d4a77f.dll+0x53ec72b, 292 s in during play (not at shutdown), with novictory_gpu::timelinewait 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: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 oncomp_1.2.0(first timecomp_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, address0xfffffffff000), that would help to know.AI-assisted (Claude Code).