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

Open
github-bot wants to merge 1 commit from github-bot/gh-3291 into main AGit
Owner

@⁠neonbyte1 on GitHub · 2026-11-26 16:06 UTC · original
neonbyte1:docs/linux-wine → main · +171 −0 · 1 files · 1 commits · open

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.

**@⁠neonbyte1** on GitHub · 2026-11-26 16:06 UTC · [original](https://github.com/Marvisak/VIctory/pull/3291) `neonbyte1:docs/linux-wine` → `main` · +171 −0 · 1 files · 1 commits · open 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._
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 16:10:17 +00:00
Author
Owner

@⁠Anzymanz on GitHub · 2026-11-26 16:07 UTC · original

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).

**@⁠Anzymanz** on GitHub · 2026-11-26 16:07 UTC · [original](https://github.com/Marvisak/VIctory/pull/3291#issuecomment-7197213999) 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).*
Author
Owner

@⁠neonbyte1 on GitHub · 2026-11-26 16:11 UTC · original

@⁠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.

**@⁠neonbyte1** on GitHub · 2026-11-26 16:11 UTC · [original](https://github.com/Marvisak/VIctory/pull/3291#issuecomment-7197297961) @⁠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._
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3291/head:github-bot/gh-3291'
git switch 'github-bot/gh-3291'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3291'
git switch 'github-bot/gh-3291'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3291'
git switch 'github-bot/gh-3291'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3291'
git switch 'main'
git merge --squash 'github-bot/gh-3291'
git switch 'main'
git merge --ff-only 'github-bot/gh-3291'
git switch 'main'
git merge 'github-bot/gh-3291'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/Marvisak--VIctory!3291
No description provided.