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

Open
opened 2026-11-30 18:52:37 +00:00 by github-bot · 1 comment
Owner

@⁠Fedalv on GitHub · 2026-11-30 18:49 UTC · original

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.

**@⁠Fedalv** on GitHub · 2026-11-30 18:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4316) 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 18:52:37 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-30 18:49 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-30 18:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4316#issuecomment-7288415054) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
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/trustno1-coder--VIctory-NVIDIA#4317
No description provided.