Docs: Linux and Wine setup guide (experimental) #3291
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3291"
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?
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:
x86_64-pc-windows-msvcwith clang-cl and anxwinsplat.VKD3D_SHADER_CACHE_PATH=0: with it, runs start with minutes of pipeline backlog and drop draws until it drains;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.
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:d3dcompiler_47(winetricks d3dcompiler_47, overrided3dcompiler_47=n): without it the world rendered black in our runs.power_dpm_force_performance_level=highon RDNA4: it pinned the card at lower clocks (about 2.4 vs 3.4 GHz) and tripled GPU time. Leave it onauto.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).
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 natived3dcompiler_47. With #2969, VIctory's own run-time shaders build with Wine's compiler, and the world renders lit here.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:
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.
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T22:29:01Z.
Review: CHANGES_REQUESTED
Verified
cargo xtask policypasses (192 files ok) and cross-checked CLI/profile flags (cargo build --profile diag -p victory --features diagnostics,victory run <exe> --execute) againstapps/victory/src/main.rs,Cargo.toml, andREADME.md.One concrete issue and a few script/prerequisite fixes would make the guide safe to follow copy-paste:
docs/linux-wine.md:150-154vs172-175): The copyable snippet passes-p victory-gpu --libwith no module filter or skip, even though lines172-175warn that running the wholevictory-gpusuite together can bring down the headless X server and thatresource::tests::a_list_waiting_for_another_queues_write_reads_what_it_wrotehangs under Wine. Please put a single-module filter and-- --skip ...directly in the example command.shbrace expansion (docs/linux-wine.md:56-62): Line59uses{d3d12.dll,d3d12core.dll}inside a```shblock; POSIXshtreats{...}literally. Expanding both source paths explicitly (or marking the blockbash) avoids silent copy failures.79references unassigned$VICTORY_EXE/$GAME_DIRwith a hardcoded title executable filename without reminding users to run from an external working directory (sovkd3d-proton.cachedoes not land in the repo) or mentioningvictory config/rustup target add x86_64-pc-windows-msvc/AVX2/VICTORY_DXIL, and it would help to call out upfront thatcargo xtask wine-testrequires unmerged PR#1218.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:-- -p victory-gpu --lib resource:: -- --skip resource::tests::a_list_waiting_for_another_queues_write_reads_what_it_wrote. I pickedresource::because it contains that test, so the skip matters; the runner passes everything after--straight tocargo test.shblock.VICTORY_EXE,GAME_DIR,TITLE_EXEandVICTORY_GAME_DIRare assigned, with no hardcoded title exe;vkd3d-proton.cacheto the working directory;wine "$VICTORY_EXE" configfirst, which exits nonzero when a path violates the asset policy.The prerequisites are now stated:
victory run --executerefuses to start without it; link to the README's requirements);rustup target add x86_64-pc-windows-msvcfor a toolchain without the target;VICTORY_DXILfor DXIL validation (a Windows SDKdxil.dll, which a Wine prefix doesn't have; runtime doesn't need it).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.
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T23:02:45Z.
Review: APPROVED
8af5573dcleanly resolves the previous blockers: thecargo xtask wine-testsnippet at lines 160–165 now scopes toresource::and passes--skip resource::tests::a_list_waiting_for_another_queues_write_reads_what_it_wrotein line with lines 189–192, the placeholder at line 81 avoids naming a commercial executable,cargo xtask policypasses (192 files ok), and all links/CLI/profile references matchCargo.tomlandREADME.md.Approving as-is since this is an experimental guide, with a few non-blocking polish suggestions if you update it further:
wine "$VICTORY_EXE" config && gamescope ...(or notingset -e) prevents launchinggamescopewhenconfigexits nonzero, and noting tocdback to a repo root with#1218beforecargo xtask wine-testavoids runningcargoinside~/victory-run.README.md:166-182also accepts an x64dxil.dllfrom Microsoft's DirectX Shader Compiler releases (not just a Windows SDK)./usr/share/vulkan/icd.d/nvidia_icd.jsonis system-specific and10de:2b85is a PCI vendor:device ID would make adapting to another GPU clearer.Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-26T23:10:28Z.
The launch block in
8af5573continues to gamescope when eithercdorvictory configfails. Docs-only follow-up0f83f37puts 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
shwith stub commands. The original launched after simulated failures fromcdandconfig. The follow-up stopped at each of those failures and at a failedmkdir. It launched once after all three steps succeeded. All five shell blocks passedsh -n, andcargo xtask policypassed.The red check on this exact head passed the asset path tests. It failed
frame::tests::waits_end_on_ticks_and_count_framesin aframe.rsblob identical tomain. 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]>.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
0f83f37as is, keeping you as author (cb497ff3on 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.
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.Thanks also to @fuzeofficlal for checking the guide's flags against the code.
Written with Claude Code.
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.
Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-27T06:06:25Z.
@Anzymanz thank you. Taken in
8121ba6fwith 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.
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:
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.Written with Claude Code.
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.
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 defaultfullas well, so it isn't caused by this. Don't usepartialordisabledinstead: those drop the hang workaround.Written with Claude Code.
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/disabledwarned against):19bf8ea0don this PR's branch. (Late: our connection was down for a day.)AI-assisted (Claude), posted for neonbyte1.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.