Run on Proton: a Windows build of victory, launched inside a Proton prefix #179
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!179
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-179"
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?
@LazyHatGuy on GitHub · 2026-11-24 22:15 UTC · original
LazyHatGuy:proton→main· +967 −78 · 41 files · 16 commits · closed without mergingDepends on #128 (the Linux build work): these commits sit on top of its
linuxbranch, so until that merges this PR's diff also shows those changes.What this does
Supports running the Windows build of victory inside a Proton
prefix from a Linux box. The Windows build is already the title's full
host, and Proton supplies the same ground underneath it — Wine's loader,
D3D12 through dxvk/vkd3d-proton — so Linux support is a build path, a
launcher, and the evidence of what that ground actually gives, not a second
back end.
cargo wincross-buildsvictory.exewith the gnu target;cargo win-checktype-checks the whole Windows tree — tests included —from Linux (the true MSVC check stays the Windows CI job).
proton/run.shstarts it in a prefix. The prefix works on the firstrun: the launcher asks Proton for
C:\before seedingdosdevicesanddrive_z, so Proton's own first setup no longer trips over them.It picks the newest
GE-Proton*first, then the newest plainProton-*; takes--z DIR(a no-op where GE-Proton maps Z: to/),--config,--d3dcompiler FILEand--texture-wait; and returns thechild's exit code and stdout honestly (a UMU non-Steam launch through
waitforexitandrun, notsteam.exeinjection).victory_core::platform::wine_version()—victory configandvictory runprinthost Wine <version>, so a log says which host madeit.
docs/proton.mdcarries the packages, commands, prefix layout and theWine-dependent gaps.
What a GE-Proton11-11 run proved on a real box
proton/smoke.shpasses: config + banner, the title directory reachablethrough the prefix,
censusover it.victory-gpusuite as a Windows binary under the prefix:109 of 111 pass — device creation, every device level, fences, heaps,
copies, queue submission. Proton really does provide the D3D12 ground.
pipeline::library::tests::a_rejected_blob_gives_an_empty_library:vkd3d-proton errors on
OpenPipelineLibraryof a garbage blob where realD3D12 hands back an empty library. A platform expectation, not ours
(fxceless/victory-fork#64).
cs_5_1tests depend on whichd3dcompiler_47is loaded.Wine's builtin (a vendored vkd3d-shader) fails loudly with
E5005— noRWByteAddressBufferintrinsics and no[RootSignature(...)]; theJune-2010 winetricks redistributable refuses the 5_1 profile (
X3506)and embeds no root signature at 5_0. A Win8.1/10-era native DLL, pinned
with
--d3dcompiler FILE, is the working path and the one behind the109/111 count.
victory rununder Proton works on AMD/RADV: menus, intro,loading, then world streaming at 1 777–5 292 draws a frame (#41). The
smoke box has not recorded a full run; the numbers are machine-specific.
Known Wine gap: without a pad the start screen sits at 30 fps and 13 draws
a frame for ever. A diagnostics build can press Enter on a schedule with
VICTORY_KEYS(docs/proton.md); the release build has no scripted keys.Tests
Three depths: a
wine_version()unit test invictory-core(real hosts onboth CIs return
None);xtask/src/scripts.rschecking the launch scriptsparse and are executable, the usage text, a fresh plain prefix, GE-over-Plain
selection and
--d3dcompilerpinning/native forcing; andproton/smoke.shas the end-to-end Proton check.
CI
Adds a
windows-crossUbuntu job runningcargo win-checkandcargo winon every PR — the Proton build path stops being a documentary claim. The
smoke itself needs a GPU and a Proton install, so it stays manual.
The
fmtstep is dropped on this branch: the tree's current formattingcame from a newer rustfmt than the pinned 1.98.1, so
cargo fmt --all -- --checkreports hundreds of files. Reformatting is aseparate change.
This PR was AI assisted
@rostaddotcc on GitHub · 2026-11-24 22:17 UTC · original
Three of your four Proton failures have a cause I measured on this box (CachyOS, RX 7900 XT, Mesa 26.3.1 RADV, Proton Experimental
experimental-11.0-20261112, vkd3d-proton 3.2.0), and two of them do not need the DXC fallback:The two
cs_5_1failures are not Wine refusing the profile — it is whichd3dcompiler_47is loaded. This prefix has winetricks' native Microsoft DLL insystem32, and the test suite is green; force Wine's builtin and the same test fails with exactly the error you saw:The builtin is the vendored vkd3d-shader, which has no
RWByteAddressBuffer.Interlocked*()orLoad*()methods and no[RootSignature(handling; no Wine/vkd3d release has them (Load*since vkd3d 1.14, theInterlocked*intrinsics since 1.15, the buffer methods only upstream since 2026-11-04 and in no tag). So the Linux path iswinetricks d3dcompiler_47— pinned in the run script, not left to the prefix — and the same requirement is written up in #41'sdocs/linux-proton.md.The empty-pipeline-library one is not yours either: at
4e17478on this box the suite is 109 passed, 1 failed, and the failure ispipeline::library::tests::a_rejected_blob_gives_an_empty_librarypanicking atlibrary.rs:731because vkd3d-proton refuses the garbage blob where native D3D12 hands back an empty library. Same onmain, same on two open PRs — it is a platform expectation, not a regression (noted in #64 too).And "a full
victory rununder Proton is deliberately not claimed" can be upgraded. It runs here: menus, the intro, loading, then world streaming with 1 777–5 292 draws a frame,0.1–0.5 fpsin the streaming phase, GPU 87–241 ms of it. The two things that make it work and are not obvious:WINEDLLOVERRIDES="d3d12=n;d3d12core=n;dxgi=n"(Wine'sd3d12stub givesE_INVALIDARGand zero draws) and HDR off on the display (with HDR on, present throttles to ~400 ms a frame and the 30 s watchdog kills the run at frame 64). Both are in #41.One more Linux-only lever while you are here:
VICTORY_TEXTURE_NO_WAIT=1takes the texture lane's remap-lock wait from a median 20 ms / max 4 076 ms to 0.0 ms in all 94 sampled windows, at the cost of 0–2 textures a frame deferred to the next frame (#178). That is worth folding intoproton/run.shas a default on this ground, since the wait is a Wine-side mapping lock and costs seconds in the phase where the world streams.@rostaddotcc on GitHub · 2026-11-25 07:16 UTC · original
A trap worth putting in
proton/run.sh's notes, because I lost two runs to it today (both commits,8dd30abanda26859f, on Linux/Proton):Without scripted input the title sits at its start screen for ever — 30 fps, 13 draws a frame,
proving 0.1 ms, nothing loading and no error in the log. It is not a hang and not a regression by any commit: the title's start screen listens to the pad, and on a machine with no pad the stand-in gets nothing. In a diagnostics buildVICTORY_KEYSpresses the first pad's buttons as well as the keys (gameinput.rs:1149-1160), sotakes it out of the menu into the world (2 067–2 752 draws a frame, 3 275–5 267 ms frames on this box). Two presses are not always enough; four at ~15-second spacing worked twice.
That matters for anyone comparing runs on this ground: a run that never pressed anything looks identical to one where the loader is slow, and both look like "the PR made it stop loading" if you only read the frame line. For the launcher, pressing Enter on a schedule in a diagnostics build (or documenting the variable) would remove the whole class of confusion — the release build does not have the scripted keys, so a normal run needs them built with
--features diagnostics, or needs a pad.The rest of the run, for the record, with keys:
a26859f, 49 world frames at ~1 400 draws a frame, median deep frame 2 830 ms, write-watch watches median 488 ms, texture lane waiting-for-remap median 322 ms (max 2 978). Same session an hour earlier,8dd30abat ~1 487 draws a frame had a median deep frame of 5 365 ms — comparable draws, so that is worth a proper A/B on the next quiet machine, not a claim.@slauko on GitHub · 2026-11-25 14:01 UTC · original
The "Known Wine gap: without a pad the start screen sits at 30 fps and 13 draws a frame for ever" has a cause on the host side, and needs no change in the runtime.
Under Wine, XInput reported a gamepad that never presses a button: the keyboard interface of a Logitech G502, an HID interface with
BTN_GAMEPAD, which Linux exposes as/dev/input/js0. The runtime gives the title its keyboard stand-in pad only while XInput has no pad at all (any_padincrates/victory-hle/src/modules/gameinput.rs), so with that device connected the title listens to pad 0 for ever.The runtime's log tells the two apart:
SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT=0000/0000(a vendor/product pair no device has) keeps every pad from Wine's side. With it the stand-in is back and the start screen takes Return.With that, the native
d3d12/d3d12core/dxgioverrides, vkd3d-protonmaster@ec20719, the DXC fallback of #20 and the null-blob pipeline library (VIctory#1722), the first-boot screens, the loading art and the intro rendered on an RTX 3080 Ti under Proton Experimental.@ErRusso on GitHub · 2026-11-24 23:46 UTC · original · requested changes
Reviewed at
0f45997against2119b0e.The Windows-build-in-Proton approach is sound and the smoke/test coverage is useful, but the launcher does not work as documented:
proton/run.shuses"$proton/proton" waitforexitandrun "$wexe". Proton'swaitforexitandruncallsg_session.run(), which invokessteam.exewith the arguments; it does not run the supplied executable.UMU_IDis not consulted by the Proton script. My own Proton Experimental test ofproton run ./victory.exelaunchedsteam.exe, whileruninprefixran victory. Useproton runinprefix(with the Wine-side exe) or$proton/files/bin/winedirectly, and adjustdocs/proton.md/smoke.shaccordingly.cargo fmt --all -- --checkCI step; that will block this PR too. Fix #128 or drop the fmt step before this lands.getcompatpath/getnativepathprobing beforeSTEAM_COMPAT_DATA_PATH/WINEPREFIXare exported can fall back to the wrong prefix; export the environment first, then probe.The
wine_version()change and the Windows-tree CI job are otherwise fine.@ErRusso on GitHub · 2026-11-25 11:15 UTC · original · approved these changes
Reviewed the changes since
0f45997(41c06a0..f23a465). My three blockers are addressed:UMU_IDexported,waitforexitandrunruns the supplied Windows-side exe, notsteam.exe. I verified this against the installed GE-Proton11-14protonscript:run()setsumu_without_steamwhenUMU_IDis present and then usesargv = [wine] + sys.argv[2:]. My earlierruninprefixsuggestion was wrong for theUMU_IDpath; keepingwaitforexitandrunis correct because it still performs Proton's prefix setup. Thegetcompatpathargument is used correctly for the Wine side.STEAM_COMPAT_DATA_PATH/WINEPREFIXare now exported beforegetnativepath/getcompatpath, so a fresh prefix cannot resolve through the wrong root.cargo fmt --all -- --check.The start-screen/
VICTORY_KEYSnote and the pinned natived3dcompiler_47path indocs/proton.mdmatch what the Linux reports found. The PR isCONFLICTINGwithmainand still stacks on #128; rebase before merging.LGTM once rebased.
Pull request closed