Docs: Linux and Wine setup guide (experimental) #3291

Open
neonbyte1 wants to merge 6 commits from upstream-pr/3291 into main
neonbyte1 commented 2026-11-26 16:06:28 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-26T16:06:28Z.


A setup guide for testers on Linux, in response to #340: docs/linux-wine.md. It describes how VIctory's Windows build is cross-compiled and run under Wine with vkd3d-proton (D3D12) and DXVK (DXGI). It's for testing, not a supported release.

What it covers:

  • Building: cross-compiling for x86_64-pc-windows-msvc with clang-cl and an xwin splat.
  • Prefix setup: the GE-Proton11-14 DLLs, and crash dialogs off.
  • Running: a headless gamescope run.
  • Caches:
    • never VKD3D_SHADER_CACHE_PATH=0: with it, runs start with minutes of pipeline backlog and drop draws until it drains;
    • NVIDIA's shader disk cache size.
  • NVIDIA specifics: 32-lane waves (#439 with #2118; the optional #2176 stack), the view-heap cap (#747), and not running GPU tests beside the game.
  • Unmerged PRs that a working NVIDIA/Wine build needs today: a dated table with what breaks without each.
  • Tests: running the suite with cargo xtask wine-test (#1218), and the known Wine gaps with the PRs that fix them.

Every statement was checked against the code, the PRs (state as of 2026-11-26) or our own runs on an RTX 5090. Anything I couldn't verify was left out. No game files, paths or personal setup details are included. The PR table will go stale as PRs land; it says so and is dated.

AI-assisted (Claude); measured on my machine, no game data shared.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5513354807 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3291). Originally posted by [neonbyte1](https://github.com/neonbyte1) on 2026-11-26T16:06:28Z. --- A setup guide for testers on Linux, in response to #340: `docs/linux-wine.md`. It describes how VIctory's Windows build is cross-compiled and run under Wine with vkd3d-proton (D3D12) and DXVK (DXGI). It's for testing, not a supported release. **What it covers:** - **Building:** cross-compiling for `x86_64-pc-windows-msvc` with clang-cl and an `xwin` splat. - **Prefix setup:** the GE-Proton11-14 DLLs, and crash dialogs off. - **Running:** a headless gamescope run. - **Caches:** - never `VKD3D_SHADER_CACHE_PATH=0`: with it, runs start with minutes of pipeline backlog and drop draws until it drains; - NVIDIA's shader disk cache size. - **NVIDIA specifics:** 32-lane waves (#439 with #2118; the optional #2176 stack), the view-heap cap (#747), and not running GPU tests beside the game. - **Unmerged PRs that a working NVIDIA/Wine build needs today:** a dated table with what breaks without each. - **Tests:** running the suite with `cargo xtask wine-test` (#1218), and the known Wine gaps with the PRs that fix them. Every statement was checked against the code, the PRs (state as of 2026-11-26) or our own runs on an RTX 5090. Anything I couldn't verify was left out. No game files, paths or personal setup details are included. The PR table will go stale as PRs land; it says so and is dated. _AI-assisted (Claude); measured on my machine, no game data shared._
Anzymanz commented 2026-11-26 16:07:30 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Anzymanz on 2026-11-26T16:07:30Z.


Thanks for writing this up. A few data points from the AMD side, in case they're useful for an AMD section later (RX 9070 XT, RADV / Mesa 26.3.1, GE-Proton11-14, vkd3d-proton master, CachyOS). All are from our own runs on the avatarmanz line, not upstream main, so take them as leads:

  • Native d3dcompiler_47 (winetricks d3dcompiler_47, override d3dcompiler_47=n): without it the world rendered black in our runs.
  • Wineserver: the view-tree patch from CachyOS/wine-cachyos#50 made the wineserver side roughly 8x faster for us; it's the single biggest Wine-side gain we've measured.
  • Don't force power_dpm_force_performance_level=high on RDNA4: it pinned the card at lower clocks (about 2.4 vs 3.4 GHz) and tripled GPU time. Leave it on auto.
  • Timing: the opening cutscene runs on wall-clock time, so single runs vary by up to about 25%; we compare interleaved runs.

One question, since you run an RTX 5090 under Wine: have you tried fxceless/victory-fork#927 (the 16-bit buffer fix for faces)? On three AMD cards under Proton the mouths move but over-drive, while NVIDIA under native Windows looks right. A run on NVIDIA under Wine would tell us whether that follows the vendor or the platform. If you have a moment, a note on #927 would help a lot.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7197213999 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3291#issuecomment-7197213999). Originally posted by [Anzymanz](https://github.com/Anzymanz) on 2026-11-26T16:07:30Z. --- Thanks for writing this up. A few data points from the AMD side, in case they're useful for an AMD section later (RX 9070 XT, RADV / Mesa 26.3.1, GE-Proton11-14, vkd3d-proton master, CachyOS). All are from our own runs on the avatarmanz line, not upstream `main`, so take them as leads: - **Native `d3dcompiler_47`** (`winetricks d3dcompiler_47`, override `d3dcompiler_47=n`): without it the world rendered black in our runs. - **Wineserver:** the view-tree patch from CachyOS/wine-cachyos#50 made the wineserver side roughly 8x faster for us; it's the single biggest Wine-side gain we've measured. - **Don't force `power_dpm_force_performance_level=high`** on RDNA4: it pinned the card at lower clocks (about 2.4 vs 3.4 GHz) and tripled GPU time. Leave it on `auto`. - **Timing:** the opening cutscene runs on wall-clock time, so single runs vary by up to about 25%; we compare interleaved runs. One question, since you run an RTX 5090 under Wine: have you tried fxceless/victory-fork#927 (the 16-bit buffer fix for faces)? On three AMD cards under Proton the mouths move but over-drive, while NVIDIA under native Windows looks right. A run on NVIDIA under Wine would tell us whether that follows the vendor or the platform. If you have a moment, a note on #927 would help a lot. *AI-assisted (Claude Code, Claude Opus 5.5).*
neonbyte1 commented 2026-11-26 16:11:11 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-26T16:11:11Z.


@Anzymanz thanks, these are useful.

On the guide: I'd like to keep it to what I've run myself. So I'd rather not add the AMD points under my name, since I can't verify them on this machine. An AMD section from you, with your runs behind it, would fit well, as a follow-up PR or a suggestion here. Two of your points I can say something about from NVIDIA:

  • d3dcompiler_47: we haven't needed native d3dcompiler_47. With #2969, VIctory's own run-time shaders build with Wine's compiler, and the world renders lit here.
  • Interleaved runs: agreed on run-to-run variance. Our frame-time comparisons alternate off and on runs, and the first run after a new build is often slower.

On fxceless/victory-fork#927: yes, I can try it on the RTX 5090 under Wine. It's a sizable change against our base, so it'll take a bit, and I'd rather get the comparison right than fast. To make the run useful:

  • Which scene and frames show the over-driven mouths best (the opening cutscene's waitress, or a specific line of dialogue)?
  • Is it visible in single frames, or only in motion?

If you can name a frame range, I'll capture the same frames with and without #927 and post them on #927.

AI-assisted (Claude); measured on my machine, no game data shared.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7197297961 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3291#issuecomment-7197297961). Originally posted by [neonbyte1](https://github.com/neonbyte1) on 2026-11-26T16:11:11Z. --- @Anzymanz thanks, these are useful. **On the guide:** I'd like to keep it to what I've run myself. So I'd rather not add the AMD points under my name, since I can't verify them on this machine. An AMD section from you, with your runs behind it, would fit well, as a follow-up PR or a suggestion here. Two of your points I can say something about from NVIDIA: - **`d3dcompiler_47`:** we haven't needed native `d3dcompiler_47`. With #2969, VIctory's own run-time shaders build with Wine's compiler, and the world renders lit here. - **Interleaved runs:** agreed on run-to-run variance. Our frame-time comparisons alternate off and on runs, and the first run after a new build is often slower. **On fxceless/victory-fork#927:** yes, I can try it on the RTX 5090 under Wine. It's a sizable change against our base, so it'll take a bit, and I'd rather get the comparison right than fast. To make the run useful: - Which scene and frames show the over-driven mouths best (the opening cutscene's waitress, or a specific line of dialogue)? - Is it visible in single frames, or only in motion? If you can name a frame range, I'll capture the same frames with and without #927 and post them on #927. _AI-assisted (Claude); measured on my machine, no game data shared._
fuzeofficlal commented 2026-11-26 22:29:01 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T22:29:01Z.

Review: CHANGES_REQUESTED


Verified cargo xtask policy passes (192 files ok) and cross-checked CLI/profile flags (cargo build --profile diag -p victory --features diagnostics, victory run <exe> --execute) against apps/victory/src/main.rs, Cargo.toml, and README.md.

One concrete issue and a few script/prerequisite fixes would make the guide safe to follow copy-paste:

  1. Example test command contradicts the doc's own hang/crash warning (docs/linux-wine.md:150-154 vs 172-175): The copyable snippet passes -p victory-gpu --lib with no module filter or skip, even though lines 172-175 warn that running the whole victory-gpu suite together can bring down the headless X server and that resource::tests::a_list_waiting_for_another_queues_write_reads_what_it_wrote hangs under Wine. Please put a single-module filter and -- --skip ... directly in the example command.
  2. POSIX sh brace expansion (docs/linux-wine.md:56-62): Line 59 uses {d3d12.dll,d3d12core.dll} inside a ```sh block; POSIX sh treats {...} literally. Expanding both source paths explicitly (or marking the block bash) avoids silent copy failures.
  3. Launch/prerequisite clarity: Line 79 references unassigned $VICTORY_EXE/$GAME_DIR with a hardcoded title executable filename without reminding users to run from an external working directory (so vkd3d-proton.cache does not land in the repo) or mentioning victory config / rustup target add x86_64-pc-windows-msvc / AVX2 / VICTORY_DXIL, and it would help to call out upfront that cargo xtask wine-test requires unmerged PR #1218.
<!-- greyfinch-sync:Marvisak/VIctory:review:6081128936 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3291#pullrequestreview-6081128936). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T22:29:01Z. **Review:** CHANGES_REQUESTED --- Verified `cargo xtask policy` passes (`192 files ok`) and cross-checked CLI/profile flags (`cargo build --profile diag -p victory --features diagnostics`, `victory run <exe> --execute`) against `apps/victory/src/main.rs`, `Cargo.toml`, and `README.md`. One concrete issue and a few script/prerequisite fixes would make the guide safe to follow copy-paste: 1. **Example test command contradicts the doc's own hang/crash warning (`docs/linux-wine.md:150-154` vs `172-175`)**: The copyable snippet passes `-p victory-gpu --lib` with no module filter or skip, even though lines `172-175` warn that running the whole `victory-gpu` suite together can bring down the headless X server and that `resource::tests::a_list_waiting_for_another_queues_write_reads_what_it_wrote` hangs under Wine. Please put a single-module filter and `-- --skip ...` directly in the example command. 2. **POSIX `sh` brace expansion (`docs/linux-wine.md:56-62`)**: Line `59` uses `{d3d12.dll,d3d12core.dll}` inside a ```` ```sh ```` block; POSIX `sh` treats `{...}` literally. Expanding both source paths explicitly (or marking the block `bash`) avoids silent copy failures. 3. **Launch/prerequisite clarity**: Line `79` references unassigned `$VICTORY_EXE`/`$GAME_DIR` with a hardcoded title executable filename without reminding users to run from an external working directory (so `vkd3d-proton.cache` does not land in the repo) or mentioning `victory config` / `rustup target add x86_64-pc-windows-msvc` / `AVX2` / `VICTORY_DXIL`, and it would help to call out upfront that `cargo xtask wine-test` requires unmerged PR `#1218`.
neonbyte1 commented 2026-11-26 22:35:18 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-26T22:35:18Z.


@fuzeofficlal thanks for checking the flags against the code. All four points are fixed in 8af5573:

  1. Test example: it now filters one module and skips the test that hangs: -- -p victory-gpu --lib resource:: -- --skip resource::tests::a_list_waiting_for_another_queues_write_reads_what_it_wrote. I picked resource:: because it contains that test, so the skip matters; the runner passes everything after -- straight to cargo test.
  2. Prefix copy: both vkd3d-proton DLL paths are spelled out, with no brace expansion in the sh block.
  3. Launch example:
    • VICTORY_EXE, GAME_DIR, TITLE_EXE and VICTORY_GAME_DIR are assigned, with no hardcoded title exe;
    • it starts in a directory outside the repository, because vkd3d-proton writes vkd3d-proton.cache to the working directory;
    • it runs wine "$VICTORY_EXE" config first, which exits nonzero when a path violates the asset policy.
      The prerequisites are now stated:
    • AVX2 (victory run --execute refuses to start without it; link to the README's requirements);
    • rustup target add x86_64-pc-windows-msvc for a toolchain without the target;
    • VICTORY_DXIL for DXIL validation (a Windows SDK dxil.dll, which a Wine prefix doesn't have; runtime doesn't need it).
  4. cargo xtask wine-test: both mentions now say it comes from #1218, which isn't merged.

cargo xtask policy: 192 files ok.

AI-assisted (Claude); no game data shared.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7204811894 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3291#issuecomment-7204811894). Originally posted by [neonbyte1](https://github.com/neonbyte1) on 2026-11-26T22:35:18Z. --- @fuzeofficlal thanks for checking the flags against the code. All four points are fixed in `8af5573`: 1. **Test example:** it now filters one module and skips the test that hangs: `-- -p victory-gpu --lib resource:: -- --skip resource::tests::a_list_waiting_for_another_queues_write_reads_what_it_wrote`. I picked `resource::` because it contains that test, so the skip matters; the runner passes everything after `--` straight to `cargo test`. 2. **Prefix copy:** both vkd3d-proton DLL paths are spelled out, with no brace expansion in the `sh` block. 3. **Launch example:** - `VICTORY_EXE`, `GAME_DIR`, `TITLE_EXE` and `VICTORY_GAME_DIR` are assigned, with no hardcoded title exe; - it starts in a directory outside the repository, because vkd3d-proton writes `vkd3d-proton.cache` to the working directory; - it runs `wine "$VICTORY_EXE" config` first, which exits nonzero when a path violates the asset policy. The prerequisites are now stated: - AVX2 (`victory run --execute` refuses to start without it; link to the README's requirements); - `rustup target add x86_64-pc-windows-msvc` for a toolchain without the target; - `VICTORY_DXIL` for DXIL validation (a Windows SDK `dxil.dll`, which a Wine prefix doesn't have; runtime doesn't need it). 4. **`cargo xtask wine-test`:** both mentions now say it comes from #1218, which isn't merged. `cargo xtask policy`: 192 files ok. _AI-assisted (Claude); no game data shared._
fuzeofficlal commented 2026-11-26 23:02:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T23:02:45Z.

Review: APPROVED


8af5573d cleanly resolves the previous blockers: the cargo xtask wine-test snippet at lines 160–165 now scopes to resource:: and passes --skip resource::tests::a_list_waiting_for_another_queues_write_reads_what_it_wrote in line with lines 189–192, the placeholder at line 81 avoids naming a commercial executable, cargo xtask policy passes (192 files ok), and all links/CLI/profile references match Cargo.toml and README.md.

Approving as-is since this is an experimental guide, with a few non-blocking polish suggestions if you update it further:

  • In lines 78–89, chaining wine "$VICTORY_EXE" config && gamescope ... (or noting set -e) prevents launching gamescope when config exits nonzero, and noting to cd back to a repo root with #1218 before cargo xtask wine-test avoids running cargo inside ~/victory-run.
  • At lines 171–175, README.md:166-182 also accepts an x64 dxil.dll from Microsoft's DirectX Shader Compiler releases (not just a Windows SDK).
  • At lines 84–92, mentioning that /usr/share/vulkan/icd.d/nvidia_icd.json is system-specific and 10de:2b85 is a PCI vendor:device ID would make adapting to another GPU clearer.
<!-- greyfinch-sync:Marvisak/VIctory:review:6081324751 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3291#pullrequestreview-6081324751). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T23:02:45Z. **Review:** APPROVED --- `8af5573d` cleanly resolves the previous blockers: the `cargo xtask wine-test` snippet at lines 160–165 now scopes to `resource::` and passes `--skip resource::tests::a_list_waiting_for_another_queues_write_reads_what_it_wrote` in line with lines 189–192, the placeholder at line 81 avoids naming a commercial executable, `cargo xtask policy` passes (`192 files ok`), and all links/CLI/profile references match `Cargo.toml` and `README.md`. Approving as-is since this is an experimental guide, with a few non-blocking polish suggestions if you update it further: - In lines 78–89, chaining `wine "$VICTORY_EXE" config && gamescope ...` (or noting `set -e`) prevents launching `gamescope` when `config` exits nonzero, and noting to `cd` back to a repo root with `#1218` before `cargo xtask wine-test` avoids running `cargo` inside `~/victory-run`. - At lines 171–175, `README.md:166-182` also accepts an x64 `dxil.dll` from Microsoft's DirectX Shader Compiler releases (not just a Windows SDK). - At lines 84–92, mentioning that `/usr/share/vulkan/icd.d/nvidia_icd.json` is system-specific and `10de:2b85` is a PCI vendor:device ID would make adapting to another GPU clearer.
andrewpozdnakov7-jpg commented 2026-11-26 23:10:28 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-26T23:10:28Z.


The launch block in 8af5573 continues to gamescope when either cd or victory config fails. Docs-only follow-up 0f83f37 puts that block in a fail-fast subshell. A failed check then stops the example and returns its exit status.

I ran both blocks under POSIX sh with stub commands. The original launched after simulated failures from cd and config. The follow-up stopped at each of those failures and at a failed mkdir. It launched once after all three steps succeeded. All five shell blocks passed sh -n, and cargo xtask policy passed.

The red check on this exact head passed the asset path tests. It failed frame::tests::waits_end_on_ticks_and_count_frames in a frame.rs blob identical to main. The controlled clock fixture in #2265 covers the timing assumption.

@neonbyte1, if you take the docs change, please retain the Git author or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7205317009 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3291#issuecomment-7205317009). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-26T23:10:28Z. --- The launch block in `8af5573` continues to gamescope when either `cd` or `victory config` fails. [Docs-only follow-up `0f83f37`](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/0f83f376cf567850d588279fbcd5871ea5962f4f) puts that block in a fail-fast subshell. A failed check then stops the example and returns its exit status. I ran both blocks under POSIX `sh` with stub commands. The original launched after simulated failures from `cd` and `config`. The follow-up stopped at each of those failures and at a failed `mkdir`. It launched once after all three steps succeeded. All five shell blocks passed `sh -n`, and `cargo xtask policy` passed. The [red check on this exact head](https://github.com/Marvisak/VIctory/actions/runs/45905752757/job/140201935197) passed the asset path tests. It failed `frame::tests::waits_end_on_ticks_and_count_frames` in a `frame.rs` blob identical to `main`. The controlled clock fixture in [#2265](https://github.com/Marvisak/VIctory/pull/2265#issuecomment-7172550467) covers the timing assumption. @neonbyte1, if you take the docs change, please retain the Git author or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>`.
neonbyte1 commented 2026-11-26 23:11:13 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-26T23:11:13Z.


@andrewpozdnakov7-jpg thanks, you're right that the example went on to launch after a failed check. I took 0f83f37 as is, keeping you as author (cb497ff3 on the branch).

@fuzeofficlal thanks for the approval. This last commit only wraps the launch example in a fail-fast subshell; nothing else changed.

AI-assisted (Claude); no game data shared.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7205327509 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3291#issuecomment-7205327509). Originally posted by [neonbyte1](https://github.com/neonbyte1) on 2026-11-26T23:11:13Z. --- @andrewpozdnakov7-jpg thanks, you're right that the example went on to launch after a failed check. I took `0f83f37` as is, keeping you as author (`cb497ff3` on the branch). @fuzeofficlal thanks for the approval. This last commit only wraps the launch example in a fail-fast subshell; nothing else changed. _AI-assisted (Claude); no game data shared._
Anzymanz commented 2026-11-27 05:56:57 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Anzymanz on 2026-11-27T05:56:57Z.


@neonbyte1, taking you up on the AMD section, as a suggestion here rather than a PR stacked on this one. It is written to drop in after "NVIDIA specifics"; edit or cut freely. Everything in it was measured on our machine. The runs were on a fork of VIctory, not on this repository's main, so I've left out every switch of ours that isn't here. The points below are about Wine, the driver and the CPU, not the tree.

## AMD specifics (RADV)

Measured on one machine: RX 9070 XT (16 GB), Ryzen 9 5950X (two CCDs of eight cores), CachyOS,
Mesa 26.3.1 RADV, GE-Proton11-14, vkd3d-proton master; Series X profile at 4K, ray tracing on.
The runs used forks of VIctory, not this repository's `main`; these points do not depend on the tree.
Full notes: https://github.com/Anzymanz/VIctory-ox/blob/main/docs/linux-findings.md

* **wineserver.** The stock server walks every view of the process on each map and unmap
  request, and the title keeps tens of thousands of views mapped: the world ran about eight
  times slower here (a median world frame of 8,442 ms against 1,041-1,061 ms with the fix).
  CachyOS/wine-cachyos#50 keeps the views in a tree; LooperSalty/AnyXboxX#261 builds that
  server for GE-Proton11-14. GE-Proton's own tree carries an equivalent fix since `d3b6ae7`,
  so a GE-Proton release after 11-14 that includes it needs no local build.
* **Leave `power_dpm_force_performance_level` on `auto`.** Forced to `high`, the RX 9070 XT
  stayed at 2.4 GHz against 3.4 GHz on `auto`, and GPU time per frame tripled.
* **Check the GPU clock.** Under VIctory's bursty submissions the driver can read the load
  as light and run the card at half clock (1.6 against 3.3 GHz here, about six times the GPU
  time per frame). `pp_dpm_sclk` under `/sys/class/drm/card*/device/` shows it.
* **Both CCDs.** The title gives its threads console affinity masks, and under Wine these land
  on both CCDs of a two-CCD Ryzen whatever `taskset` the launch used (of 184 threads, 110 were
  unrestricted and 39 held to one CCD). A `WINE_CPU_TOPOLOGY` map that shows the game one CCD
  keeps it there but gained nothing we could measure (244 and 192 ms a frame against 219 and
  216), nor did a map that pairs each core with its SMT sibling (mean 146 ms over four runs
  against 154 over six, inside the spread). Holding every game thread to one CCD cost time: in
  an on/off test inside one run (20 phases of 8 s) it was 8.6 ms a frame slower (124.7 against
  116.0 ms, slower in 9 of 10 pairs). Leave the game on both CCDs.
* **Run-to-run spread.** Identical whole runs differed by up to 50 ms a frame while other
  programs were busy; alternate off and on runs, as above, before trusting a difference.
  Most of the frame times above come from runs that also saved a picture every 8th frame, in
  both arms of each comparison: the differences stand, but the absolute times include that cost.

Thanks also to @fuzeofficlal for checking the guide's flags against the code.

Written with Claude Code.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7211083680 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3291#issuecomment-7211083680). Originally posted by [Anzymanz](https://github.com/Anzymanz) on 2026-11-27T05:56:57Z. --- @neonbyte1, taking you up on the AMD section, as a suggestion here rather than a PR stacked on this one. It is written to drop in after "NVIDIA specifics"; edit or cut freely. Everything in it was measured on our machine. The runs were on a fork of VIctory, not on this repository's `main`, so I've left out every switch of ours that isn't here. The points below are about Wine, the driver and the CPU, not the tree. ```markdown ## AMD specifics (RADV) Measured on one machine: RX 9070 XT (16 GB), Ryzen 9 5950X (two CCDs of eight cores), CachyOS, Mesa 26.3.1 RADV, GE-Proton11-14, vkd3d-proton master; Series X profile at 4K, ray tracing on. The runs used forks of VIctory, not this repository's `main`; these points do not depend on the tree. Full notes: https://github.com/Anzymanz/VIctory-ox/blob/main/docs/linux-findings.md * **wineserver.** The stock server walks every view of the process on each map and unmap request, and the title keeps tens of thousands of views mapped: the world ran about eight times slower here (a median world frame of 8,442 ms against 1,041-1,061 ms with the fix). CachyOS/wine-cachyos#50 keeps the views in a tree; LooperSalty/AnyXboxX#261 builds that server for GE-Proton11-14. GE-Proton's own tree carries an equivalent fix since `d3b6ae7`, so a GE-Proton release after 11-14 that includes it needs no local build. * **Leave `power_dpm_force_performance_level` on `auto`.** Forced to `high`, the RX 9070 XT stayed at 2.4 GHz against 3.4 GHz on `auto`, and GPU time per frame tripled. * **Check the GPU clock.** Under VIctory's bursty submissions the driver can read the load as light and run the card at half clock (1.6 against 3.3 GHz here, about six times the GPU time per frame). `pp_dpm_sclk` under `/sys/class/drm/card*/device/` shows it. * **Both CCDs.** The title gives its threads console affinity masks, and under Wine these land on both CCDs of a two-CCD Ryzen whatever `taskset` the launch used (of 184 threads, 110 were unrestricted and 39 held to one CCD). A `WINE_CPU_TOPOLOGY` map that shows the game one CCD keeps it there but gained nothing we could measure (244 and 192 ms a frame against 219 and 216), nor did a map that pairs each core with its SMT sibling (mean 146 ms over four runs against 154 over six, inside the spread). Holding every game thread to one CCD cost time: in an on/off test inside one run (20 phases of 8 s) it was 8.6 ms a frame slower (124.7 against 116.0 ms, slower in 9 of 10 pairs). Leave the game on both CCDs. * **Run-to-run spread.** Identical whole runs differed by up to 50 ms a frame while other programs were busy; alternate off and on runs, as above, before trusting a difference. Most of the frame times above come from runs that also saved a picture every 8th frame, in both arms of each comparison: the differences stand, but the absolute times include that cost. ``` Thanks also to @fuzeofficlal for checking the guide's flags against the code. Written with Claude Code.
Anzymanz commented 2026-11-27 05:57:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Anzymanz on 2026-11-27T05:57:24Z.


@neonbyte1, sorry, I missed your #927 questions here. Before I point you at frames, we're re-running our own control: the earlier one turned out invalid, because our shader cache didn't key on the switch. When it's in, I'll post the frame range, and whether the fault shows in single frames or only in motion, on fxceless/victory-fork#927. That way your RTX 5090 run has something solid to compare against.

Written with Claude Code.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7211089949 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3291#issuecomment-7211089949). Originally posted by [Anzymanz](https://github.com/Anzymanz) on 2026-11-27T05:57:24Z. --- @neonbyte1, sorry, I missed your #927 questions here. Before I point you at frames, we're re-running our own control: the earlier one turned out invalid, because our shader cache didn't key on the switch. When it's in, I'll post the frame range, and whether the fault shows in single frames or only in motion, on fxceless/victory-fork#927. That way your RTX 5090 run has something solid to compare against. Written with Claude Code.
neonbyte1 commented 2026-11-27 06:06:25 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-27T06:06:25Z.


@Anzymanz thank you. Taken in 8121ba6f with you as co-author: your section goes in as written under AMD specifics (RADV), with a line saying it's your measurements and that I have no AMD hardware.

The wineserver point turned out to apply here too: the "Wine 11.22" I listed was in fact 11.22 plus a one-commit server change that keeps the views in a tree, which the guide didn't say. It now does, in the setup section, with your numbers and the wine-cachyos/GE-Proton pointers, so NVIDIA readers see it as well.

On the GPU clock: I checked the RTX 5090 during a world run, and it holds P0 at 2.3-2.9 GHz at 14-17% utilisation (the frame is CPU-bound here now), so no NVIDIA note for that.

And thanks for re-running your #927 control first; I'll compare once the frame range is up.

AI-assisted (Claude); no game data shared.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7211221654 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3291#issuecomment-7211221654). Originally posted by [neonbyte1](https://github.com/neonbyte1) on 2026-11-27T06:06:25Z. --- @Anzymanz thank you. Taken in `8121ba6f` with you as co-author: your section goes in as written under **AMD specifics (RADV)**, with a line saying it's your measurements and that I have no AMD hardware. The wineserver point turned out to apply here too: the "Wine 11.22" I listed was in fact 11.22 plus a one-commit server change that keeps the views in a tree, which the guide didn't say. It now does, in the setup section, with your numbers and the wine-cachyos/GE-Proton pointers, so NVIDIA readers see it as well. On the GPU clock: I checked the RTX 5090 during a world run, and it holds P0 at 2.3-2.9 GHz at 14-17% utilisation (the frame is CPU-bound here now), so no NVIDIA note for that. And thanks for re-running your #927 control first; I'll compare once the frame range is up. _AI-assisted (Claude); no game data shared._
Anzymanz commented 2026-11-29 22:34:58 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Anzymanz on 2026-11-29T22:34:58Z.


@neonbyte1, two corrections to the AMD section I gave you, both from changes on our side since:

  • The "Full notes" link (Anzymanz/VIctory-ox/.../linux-findings.md) no longer works: that repository is private now. Please drop the line; everything the section relies on is already in it.
  • LooperSalty/AnyXboxX#261 is closed. GE-Proton11-15 carries the wineserver views-in-a-tree change, so the wineserver bullet can point there instead: "GE-Proton11-15 and later carry this; nothing to build." We haven't measured 11-15 against our own build of that server yet, so the 1,041-1,061 ms figure is still from our build.

Written with Claude Code.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7263788133 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3291#issuecomment-7263788133). Originally posted by [Anzymanz](https://github.com/Anzymanz) on 2026-11-29T22:34:58Z. --- @neonbyte1, two corrections to the AMD section I gave you, both from changes on our side since: - The "Full notes" link (`Anzymanz/VIctory-ox/.../linux-findings.md`) no longer works: that repository is private now. Please drop the line; everything the section relies on is already in it. - LooperSalty/AnyXboxX#261 is closed. GE-Proton11-15 carries the wineserver views-in-a-tree change, so the wineserver bullet can point there instead: "GE-Proton11-15 and later carry this; nothing to build." We haven't measured 11-15 against our own build of that server yet, so the 1,041-1,061 ms figure is still from our build. Written with Claude Code.
neonbyte1 commented 2026-11-29 22:53:16 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-29T22:53:16Z.


@Anzymanz thank you, both taken in dea1339f7 (you as co-author): the notes link is gone, and the wineserver bullet and the setup note now say GE-Proton11-15 and later carry the view tree, nothing to build. The 1,041-1,061 ms stays marked as from your own build.

AI-assisted (Claude); no game data shared.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7264027099 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3291#issuecomment-7264027099). Originally posted by [neonbyte1](https://github.com/neonbyte1) on 2026-11-29T22:53:16Z. --- @Anzymanz thank you, both taken in `dea1339f7` (you as co-author): the notes link is gone, and the wineserver bullet and the setup note now say GE-Proton11-15 and later carry the view tree, nothing to build. The 1,041-1,061 ms stays marked as from your own build. _AI-assisted (Claude); no game data shared._
Anzymanz commented 2026-12-01 15:04:33 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Anzymanz on 2026-12-01T15:04:33Z.


@neonbyte1, one more AMD item, if you want it in the AMD section. It applies to RDNA4 only (RX 9000 series, GFX12); RADV ignores the setting on older cards.

  • radv_gfx12_hiz_wa=full_rez (environment variable, Mesa 26.3 and later). RDNA4 has a hierarchical-depth hardware bug, and RADV works around it by default (full, since Mesa MR !36174). The workaround turns hierarchical depth off for some draws. Where such a draw's pixel shader also needs a late depth test (for example one that discards pixels), the only per-pixel depth test then comes after the shader, so hidden pixels get shaded too. full_rez (MR !44383) keeps exactly the same workaround, but in those draws it switches the depth order to early Z then re-Z, so the per-pixel test also runs before the shader. On an RX 9070 XT (Mesa 26.3.1, GE-Proton, 1440p render, ray tracing off, one walking route): pixel-shader invocations per pixel went from 18.9 to 15.1 (-20 %) with the samples passing the depth test unchanged; the picture looked the same; and there was no hang in 10.5 min in the world. One known RADV depth artefact (Mesa issue #17062) happens under the default full as well, so it isn't caused by this. Don't use partial or disabled instead: those drop the hang workaround.

Written with Claude Code.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7315303341 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3291#issuecomment-7315303341). Originally posted by [Anzymanz](https://github.com/Anzymanz) on 2026-12-01T15:04:33Z. --- @neonbyte1, one more AMD item, if you want it in the AMD section. It applies to RDNA4 only (RX 9000 series, GFX12); RADV ignores the setting on older cards. * **`radv_gfx12_hiz_wa=full_rez` (environment variable, Mesa 26.3 and later).** RDNA4 has a hierarchical-depth hardware bug, and RADV works around it by default (`full`, since Mesa MR !36174). The workaround turns hierarchical depth off for some draws. Where such a draw's pixel shader also needs a late depth test (for example one that discards pixels), the only per-pixel depth test then comes after the shader, so hidden pixels get shaded too. `full_rez` (MR !44383) keeps exactly the same workaround, but in those draws it switches the depth order to early Z then re-Z, so the per-pixel test also runs before the shader. On an RX 9070 XT (Mesa 26.3.1, GE-Proton, 1440p render, ray tracing off, one walking route): pixel-shader invocations per pixel went from 18.9 to 15.1 (-20 %) with the samples passing the depth test unchanged; the picture looked the same; and there was no hang in 10.5 min in the world. One known RADV depth artefact (Mesa issue #17062) happens under the default `full` as well, so it isn't caused by this. Don't use `partial` or `disabled` instead: those drop the hang workaround. Written with Claude Code.
neonbyte1 commented 2026-12-01 16:15:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-12-01T16:15:05Z.


@Anzymanz thanks, added to the AMD section as an RDNA4-only item with your numbers (-20 % pixel-shader invocations, same picture, no hang in 10.5 min, Mesa issue #17062 noted, partial/disabled warned against): 19bf8ea0d on this PR's branch. (Late: our connection was down for a day.)

AI-assisted (Claude), posted for neonbyte1.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7317288661 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3291#issuecomment-7317288661). Originally posted by [neonbyte1](https://github.com/neonbyte1) on 2026-12-01T16:15:05Z. --- @Anzymanz thanks, added to the AMD section as an RDNA4-only item with your numbers (-20 % pixel-shader invocations, same picture, no hang in 10.5 min, Mesa issue #17062 noted, `partial`/`disabled` warned against): `19bf8ea0d` on this PR's branch. (Late: our connection was down for a day.) _AI-assisted (Claude), posted for neonbyte1._
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3291:upstream-pr/3291'
git switch 'upstream-pr/3291'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3291'
git switch 'upstream-pr/3291'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3291'
git switch 'upstream-pr/3291'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3291'
git switch 'main'
git merge --squash 'upstream-pr/3291'
git switch 'main'
git merge --ff-only 'upstream-pr/3291'
git switch 'main'
git merge 'upstream-pr/3291'
git push origin 'main'
Sign in to join this conversation.
No reviewers
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
Marvisak/VIctory!3291
No description provided.