Linux/RADV findings: measured settings, Wine gotchas, open texture-corruption lead #29

Open
opened 2026-11-30 18:49:02 +00:00 by Fedalv · 1 comment
Fedalv commented 2026-11-30 18:49:02 +00:00 (Migrated from github.com)
Contributor

Imported from Slaktarn700/SlaktarnVI. Originally posted by Fedalv on 2026-11-30T18:49:02Z.


Sharing what we measured running VIctory on Linux (Proton Experimental 11.0 + vkd3d-proton 71cae09, RADV, RX 7900 XTX 24 GB, Zen 4 8 cores), Series X profile at native 1440p. It may save you some time. Patches and our settings file are in this gist: https://gist.github.com/Fedalv/6e833ccda05fbbab7335433a27988e24

Our build: upstream 014d52d + #440 (Wine: WINE_MAP, PORT_HOME, CLAMP_SYNC) + #437 #434 #436 #438 #376 #372 #330 #423 #443 #474 #451 #446 #296 #308 #419 #377 + #454.

Linux / Wine gotchas

  • Silent exits with no log or core were the kernel, not the game: an RLIMIT_RTTIME hard limit of 0 inherited from Electron apps (VS Code; Brave too) → the first CPU-time timer on a thread SIGKILLs the process. systemd-run --user --scope keeps the 0; launching as a systemd-run --user service gets unlimited. Check grep 'realtime timeout' /proc/<pid>/limits. About half our scripted runs died early before this fix; none since.
  • Valve Proton's default verb swallows stdout → PROTON_VERB=runinprefix, which then needs WINEDLLOVERRIDES=dxgi=n. Proton re-copies d3d12 into system32 on every launch, so copy yours after it. vkd3d writes its shader cache to the cwd unless VKD3D_SHADER_CACHE_PATH is set.
  • GE-Proton's vkd3d is too old (exits at the first PSO). The winetricks d3dcompiler_47 lacks cs_5_1; the Windows 11 one works.
  • Two whole-GPU resets on RADV (~3 min in, identical): CPC write to 0xfffffffff000 on a compute ring, queue reset fails → full reset, which took the compositor down. Patch 0002 bounds-checks every card-step copy (it never fired, so the copies weren't the cause); nothing since we put copies on SDMA. VKD3D_CONFIG=single_queue avoids compute rings but costs 5× the frame time.

Settings measured (median frame time, scripted save path, ≥240 s runs)

Setting Effect here
RADV_EXPERIMENTAL=transfer_queue (vkd3d copy queue on SDMA) −4 ms
VICTORY_LAND_THREADS=4 (8 CPUs, no SMT) −1.5 ms
VICTORY_PORT_CBV=1 −4.7 ms
VICTORY_PORT_CONSTANTS_ORDER_BATCH=1 (#438) heavy scenes 63–65 → 54–57 ms
VICTORY_CARD_STEPS_LEARN=0 (#434) its learning costs ~25 ms GPU wait per frame here
VICTORY_CARD_STEPS=0 +60 ms (keep 2)
#206's INPLACE / PORT_ALL / WINDOW_KB / RESIDENCY 2.5× slower (133 vs 52 ms)
placed heap in VRAM / write-combined 252 ms / +7 ms
VICTORY_FILL_FORWARD (#436), VICTORY_PARTIAL_WRITTEN=1, PAINTED_EVERY=4 no measurable effect

Correctness on Wine/RADV: VICTORY_LAND_ECHO=0 (faces lose their skin otherwise), VICTORY_FETCH_CHECK=1, port 2 off (distant trees flicker, #122), and patch 0003 for faces (fxceless#927 half views + #114 table view kinds + raw typed loads, taken from bordersky/victory-linux 2294b83).

Where the time goes (timeline): ~44 ms serial chain per frame. Title CPU ~16, copy-back ~8, card copies ~6, submit ~4. The submit thread is saturated; the GPU itself is busy ~6 ms. Heavy scenes add 15–30 ms of card waits from 2,500–3,000 lone in-place clamps per frame.

Open: texture corruption (help welcome)

In roughly half of our runs, on every build and setting we tried, some texture slot shows wrong or stale contents: rainbow/flat-colour blocks, porcelain or glowing skin, glowing white eyes, the wrong texture on a shirt, a black bottle label. It hits the same assets each time (a face behind sunglasses, a floral shirt in a close-up), which points at a per-texture streaming/upload race.

  • Not ORDER_BATCH: noisy with it off ~5/20 runs, on ~6/15. Batch caps of 4 and 8 corrupt too.
  • Tried, no lasting effect: VIctory-NVIDIA dbba4ad7 partial-written (patch 0006), cool_fox 872c383 + 43ec622 (block noise 0/3 vs 2/3 in one bench, but artifacts stayed in other runs, and the title asserted in 2/12 launches with them), PAINTED_EVERY, ending batches at image stores. Heap/room fixes from other forks don't apply here (0 slots refused, 24 GB).
  • Hypothesis: Translated::stores (pipeline.rs) ignores image (MIMG) stores and render-target writes, which alias buffer memory on the console. Next on our list: the bindless "textures picked by index" fixes (Slaktarn 6990246, cool_fox ddb4443, VIctory-NVIDIA d7c2d8a7).

If you've seen the same thing, or fixed it, we'd like to hear about it.

<!-- greyfinch-sync:Slaktarn700/SlaktarnVI:issue:6703730969 --> Imported from [Slaktarn700/SlaktarnVI](https://github.com/Slaktarn700/SlaktarnVI/issues/29). Originally posted by [Fedalv](https://github.com/Fedalv) on 2026-11-30T18:49:02Z. --- Sharing what we measured running VIctory on Linux (Proton Experimental 11.0 + vkd3d-proton 71cae09, RADV, RX 7900 XTX 24 GB, Zen 4 8 cores), Series X profile at native 1440p. It may save you some time. Patches and our settings file are in this gist: https://gist.github.com/Fedalv/6e833ccda05fbbab7335433a27988e24 Our build: upstream 014d52d + #440 (Wine: WINE_MAP, PORT_HOME, CLAMP_SYNC) + #437 #434 #436 #438 #376 #372 #330 #423 #443 #474 #451 #446 #296 #308 #419 #377 + #454. ## Linux / Wine gotchas - **Silent exits with no log or core** were the kernel, not the game: an `RLIMIT_RTTIME` hard limit of 0 inherited from Electron apps (VS Code; Brave too) → the first CPU-time timer on a thread SIGKILLs the process. `systemd-run --user --scope` keeps the 0; launching as a `systemd-run --user` **service** gets unlimited. Check `grep 'realtime timeout' /proc/<pid>/limits`. About half our scripted runs died early before this fix; none since. - Valve Proton's default verb swallows stdout → `PROTON_VERB=runinprefix`, which then needs `WINEDLLOVERRIDES=dxgi=n`. Proton re-copies d3d12 into system32 on every launch, so copy yours after it. vkd3d writes its shader cache to the cwd unless `VKD3D_SHADER_CACHE_PATH` is set. - GE-Proton's vkd3d is too old (exits at the first PSO). The winetricks d3dcompiler_47 lacks cs_5_1; the Windows 11 one works. - **Two whole-GPU resets on RADV** (~3 min in, identical): CPC write to `0xfffffffff000` on a compute ring, queue reset fails → full reset, which took the compositor down. Patch 0002 bounds-checks every card-step copy (it never fired, so the copies weren't the cause); nothing since we put copies on SDMA. `VKD3D_CONFIG=single_queue` avoids compute rings but costs 5× the frame time. ## Settings measured (median frame time, scripted save path, ≥240 s runs) | Setting | Effect here | |---|---| | `RADV_EXPERIMENTAL=transfer_queue` (vkd3d copy queue on SDMA) | −4 ms | | `VICTORY_LAND_THREADS=4` (8 CPUs, no SMT) | −1.5 ms | | `VICTORY_PORT_CBV=1` | −4.7 ms | | `VICTORY_PORT_CONSTANTS_ORDER_BATCH=1` (#438) | heavy scenes 63–65 → 54–57 ms | | `VICTORY_CARD_STEPS_LEARN=0` (#434) | its learning costs ~25 ms GPU wait per frame here | | `VICTORY_CARD_STEPS=0` | +60 ms (keep 2) | | #206's `INPLACE` / `PORT_ALL` / `WINDOW_KB` / `RESIDENCY` | 2.5× slower (133 vs 52 ms) | | placed heap in VRAM / write-combined | 252 ms / +7 ms | | `VICTORY_FILL_FORWARD` (#436), `VICTORY_PARTIAL_WRITTEN=1`, `PAINTED_EVERY=4` | no measurable effect | Correctness on Wine/RADV: `VICTORY_LAND_ECHO=0` (faces lose their skin otherwise), `VICTORY_FETCH_CHECK=1`, port 2 off (distant trees flicker, #122), and patch 0003 for faces (fxceless#927 half views + #114 table view kinds + raw typed loads, taken from bordersky/victory-linux 2294b83). Where the time goes (timeline): ~44 ms serial chain per frame. Title CPU ~16, copy-back ~8, card copies ~6, submit ~4. The submit thread is saturated; the GPU itself is busy ~6 ms. Heavy scenes add 15–30 ms of card waits from 2,500–3,000 lone in-place clamps per frame. ## Open: texture corruption (help welcome) In roughly half of our runs, on **every build and setting** we tried, some texture slot shows wrong or stale contents: rainbow/flat-colour blocks, porcelain or glowing skin, glowing white eyes, the wrong texture on a shirt, a black bottle label. It hits the same assets each time (a face behind sunglasses, a floral shirt in a close-up), which points at a per-texture streaming/upload race. - **Not** ORDER_BATCH: noisy with it off ~5/20 runs, on ~6/15. Batch caps of 4 and 8 corrupt too. - **Tried, no lasting effect:** VIctory-NVIDIA dbba4ad7 partial-written (patch 0006), cool_fox 872c383 + 43ec622 (block noise 0/3 vs 2/3 in one bench, but artifacts stayed in other runs, and the title asserted in 2/12 launches with them), PAINTED_EVERY, ending batches at image stores. Heap/room fixes from other forks don't apply here (0 slots refused, 24 GB). - Hypothesis: `Translated::stores` (pipeline.rs) ignores image (MIMG) stores and render-target writes, which alias buffer memory on the console. Next on our list: the bindless "textures picked by index" fixes (Slaktarn 6990246, cool_fox ddb4443, VIctory-NVIDIA d7c2d8a7). If you've seen the same thing, or fixed it, we'd like to hear about it.
Slaktarn700 commented 2026-12-01 02:18:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Slaktarn700/SlaktarnVI. Originally posted by Slaktarn700 on 2026-12-01T02:18:16Z.


Thank you, two of your findings are in bd906bd: the realtime limit of 0 (it is said in the log and the README), and faces: a pass run once was dropped on cold caches.

<!-- greyfinch-sync:Slaktarn700/SlaktarnVI:comment:7298463359 --> Imported from [Slaktarn700/SlaktarnVI](https://github.com/Slaktarn700/SlaktarnVI/issues/29#issuecomment-7298463359). Originally posted by [Slaktarn700](https://github.com/Slaktarn700) on 2026-12-01T02:18:16Z. --- Thank you, two of your findings are in bd906bd: the realtime limit of 0 (it is said in the log and the README), and faces: a pass run once was dropped on cold caches.
Sign in to join this conversation.
No labels
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.

Reference
Slaktarn700/SlaktarnVI#29
No description provided.