Linux/Proton: portable launcher, optional view-tree wineserver build, 64 MiB stack for pipeline workers #4219
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4219
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4218"
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?
@ProgramaGrueso on GitHub · 2026-11-30 17:30 UTC · original
ProgramaGrueso:linux-proton-launcher→main· +1143 −820 · 35 files · 11 commits · closed without mergingWhat it changes
Adds a small, self-contained Linux/Proton layer. Nothing under
apps/,crates/or the Windows launchers changes except the one 5-line edit incrates/victory-gpu/src/pipeline/make.rsdescribed below.linux/run-victory.sh: a portable launcher. It finds Proton (PROTON_DIR, a patched copy underlinux/proton-patched, or the usual Steam locations), keeps its own prefix underlinux/pfx, sets the NVIDIA/VKD3D-Proton environment (NVAPI, NGX updater, feature level 12_2, shader model 6_7, DLL overrides forruninprefix) and startsvictory.exewith--cwdpointing at the user's own dump. Every variable can be overridden from the environment. The extraplaysettings it adds can be turned off withVICTORY_LINUX_OPT=0.linux/wineserver/build-wineserver.sh+wineserver-view-tree.patch: optional script that builds a patchedwineserver(red-black-tree view lookup) against ValveSoftware/wineexperimental_11.0and installs it into a reflink copy of Proton Experimental. The patch is the one from FiveNine/victory-proton; credit to its author.crates/victory-gpu/src/pipeline/make.rs: thevictory-pipelines-*worker threads now reserve a 64 MiB stack (stack_size). Under Proton, vkd3d-proton's DXIL-to-SPIR-V recursion can overflow the default 2 MiB stack and silently kill workers. It is reserved address space, committed on demand. Note that this line is not Linux-only: it also applies on Windows..gitignore: ignoreslinux/pfx/,linux/proton-patched/andlinux/*.log.No game files, NVIDIA files or dumps are included.
How it was tested
bash -non both scripts, andpatch -p1 --dry-runof the wineserver patch againstserver/mapping.cfromexperimental_11.0(applies cleanly).make.rschange or run the title for this submission, so there are no before/after frame times or GPU numbers to report. The Rust edit is a plainstd::thread::Builder::stack_sizecall.cargo testfor the crates touched: not run.Checked for overlap
victory.exewithout PowerShell), #627, #1702, #4134. #3367 covers the same wineserver idea, so if it lands first I will drop that part from this PR.If this does not fit the main repository, that is fine: it stays available as a standalone Linux fork at https://github.com/ProgramaGrueso/LinuxVIctory-NVIDIA.
@Kassadd on GitHub · 2026-11-30 17:49 UTC · original
Thanks for putting this together, and especially for testing what you could check and saying
plainly what you could not — that made it easy to pick up and try.
I built the whole PR on
main(84bd61e) and ran it under Proton here, then separatelylooked at the three parts. A few observations that I hope are useful, and one suggestion at
the end.
Environment: RTX 4080 SUPER 16 GiB, i9-14900K, 62 GiB, CachyOS, NVIDIA 620.73.04,
Proton Experimental
experimental-bleeding-edge-11.0-482815-20261128-pdd4cb8-w0be231-d1011dd-v71cae0,Series X
1.0.2.1,--res 1440withVICTORY_NATIVE_1440P=0(draws and shows at 4K, noupscaler),
--dlss off.The
stack_sizechange is the one I was most interested in, because this title logs asteady
dropped N draws or dispatches (0 being made)and we have never worked out why. Thatlooked like a promising explanation. On this machine it did not move: 343 dropped a frame
with your build against 319 without it (medians over world frames, 7 and 27 samples). So
either the workers are not dying here, or the drops come from somewhere else — but I would
not read that as the change being pointless, only that it did not show up in this one
measurement.
The wineserver part did not get tested, and I think the reason may be worth knowing: the
script clones
experimental_11.0, and the installed Proton here is…-w0be231-d1011dd-…, which is newer. The build succeeded, but starting with it gaveWINE_BRANCHis already a variable, so pinning it to whatever the installed Proton'sversionfile names might be enough — the same trouble #3367 hit with tag names, where the-x86_64-unstrippedsuffix had to be trimmed before the tag resolved.A small thing about
VICTORY_PORT_CONSTANTS=1in the launcher's option set:mainturnedthat off by default in
ffe92c5("port constants off unless set (in-place memory read overthe bus: 3 fps)"), so the launcher currently asks for something the tree just decided against
by default. Maybe worth a re-measure before re-enabling it there.
What I did not see — and this is only my machine, one session, so take it as a question
rather than a finding — is a gain from the five
VICTORY_LINUX_OPTswitches together:13.9 fps against 15.4 without the PR. Seven samples is not enough to say anything solid. If
you have numbers from your own runs, they would be worth more than mine here.
A suggestion. The part that seems most likely to land on its own is
linux/run-victory.shas a convenience for people on Linux, without the two other pieces: it is self-contained, it
does not change anything under
crates/, and it is the sort of thing that is useful to havewhether or not the rest is accepted. The
stack_sizeline is a separate question worth itsown discussion, since it is not Linux-only and would want a measurement on the machine where
the workers actually died. And with #3367 open for the same wineserver idea, the third part
may be better off waiting for that one to settle.
Thanks again — the scripts are clear and the comments in them explain why, which is more than
a lot of launchers manage.
github-bot referenced this pull request2026-12-01 04:30:16 +00:00
@trustno1-coder on GitHub · 2026-12-01 18:45 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed