Under Wine a stack overflow in vkd3d-proton's DXIL-to-SPIR-V ends the
worker thread without unwinding. The pipeline was then failed at once and
its dispatch dropped: #39 (CS_Prop_BatchNoCull under Proton, PR #71's
build), right before the title's write to 0 at +0x23cf683.
- reap() makes such a pipeline once more on a thread with a 4 GiB stack
(reserved only; VICTORY_PIPELINE_RESCUE=0: not), and gives it up (failed,
refused-pipelines.txt) only if that thread ends too.
- make_with() no longer makes a pipeline inside its OnceLock's
initialisation: a thread that ended there held it for good, and a later
caller (a dispatch waiting for its compute pipeline, on the title's
thread) waited for ever. A 'building' flag says one is being made;
others wait for it to be made or given up.
Test: a maker that ends its thread with ExitThread leaves the pipeline
being made; a second caller waits; the rescue makes it and wakes it, or,
ending its thread too, has reap give it up. Passes under Wine and
vkd3d-proton (RTX A3000); the GPU suite as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Against GE-Proton11-14's wine (ValveSoftware/wine a47c73f with GE's
protonprep wine section applied): a process's views in a tree by base
as well as the list, so map_view's overlap check and unmap_view's
lookup no longer walk all of them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Wine maps thread priorities to niceness only with a hard RLIMIT_NICE
above 20; without, the title's threads compete for eight cores with our
pipeline workers and streaming on equal terms. With the limit raised
(prlimit, as the gamemode group gives): 104 and 106 ms a frame in two
runs, p90 113 and 114, against 118-122 and 134-143 without.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under GE-Proton11-14 on an RTX 5060 (8 GB), Series S at 1080p:
- Log to a file (VICTORY_LOG_FILE): Proton passes no stderr through;
crash reports and panics go there too.
- Pipeline library: ask vkd3d-proton for an empty one with a null
pointer; it refused a non-null pointer of length 0, so no pipeline
was ever kept between runs.
- Pipeline workers that end while making a pipeline (a stack overflow
in vkd3d-proton's DXIL-to-SPIR-V; Wine ends the thread silently) are
noticed, replaced, and their pipeline is left out from then on
(refused-pipelines.txt); a full-budget wait names what is stalled.
- Wine's memory lock: placeholders the runtime reserved are known
without asking (Wine lacks that information class); write watches
are asked in 8 MiB pieces; VICTORY_COMMITTED_QUERY=1 in the script
(QueryWorkingSetEx reads /proc/self/pagemap under the lock).
- Texture pool: a freed piece is used again once every submission
begun before has finished (with retire()'s margin), not only after
2.5 s; cards under 12 GiB keep a tenth of their budget in empty
blocks, not 4 GiB. Loading took 2.7 GB of staging and 4.1 GB of
blocks on the card before.
- Under Wine plan with the card's budget less 1 GiB
(VICTORY_CARD_BUDGET_MB): Linux moves nothing to the PC's memory.
- play-proton.sh: VICTORY_CONSOLE, vkd3d-proton's cache beside ours,
and the GE-Proton11-14-victory compat tool when installed (a
wineserver that keeps a process's views in a tree; the list walk at
every map and unmap was the largest cost of all).
- docs/linux.md: what was found.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scripts/play-proton.sh starts victory.exe under umu-run (Proton) or Wine
with Play-VIctory.cmd's pareto-residency settings. It turns Linux paths
into Wine Z: paths, and keeps the shader cache and saves under XDG folders
outside the prefix. docs/linux.md covers the build with cargo-xwin, the
NVIDIA driver, Steam as an alternative, and what was and was not tested
under Wine.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>