Wine fixes: pipeline worker stack, hot guard blocks, no reserved buffers; opt-in preload #135
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/gamingwithhomie--larp!135
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-135"
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?
@r32601366 on GitHub · 2026-12-05 19:23 UTC · original
r32601366:linux-wine-fixes→main· +142 −3 · 4 files · 1 commits · merged 2026-12-05 20:42 UTCAll three Wine fixes default on only when Wine is detected
(host::on_wine); Windows behaviour is unchanged unless the variable is set.
(vkd3d-proton's DXIL to SPIR-V translation can recurse past 2 MiB).
Reserved, not committed. 0 = Rust default.
guarding stays unguarded for 20 ms and is reported written at every
guarding, so no write is missed; fewer faults and protection changes,
which are expensive under Wine. 0 = off.
NVIDIA GPU VA mapping failure under Proton + vkd3d-proton that took the
whole machine down. =0 keeps reserved buffers.
pipelines, save list and blobs, exit before input.
Documented in docs/environment-variables.md. Split from #89.
Build: cross-built for x86_64-pc-windows-gnullvm, no errors. Not run in game on this branch.
@Kassadd on GitHub · 2026-12-05 19:39 UTC · original
Ran this on CachyOS + Proton Experimental 11.0, RTX 4080 SUPER, vkd3d-proton 3.2.0 — your note says it was not run in game, so here is one.
All three Wine fixes come up on their own (
WINE_NO_SPARSE: no reserved buffers, worker stack, guard hot at its 20 ms default), no switches needed. World frames only, >1000 draws/frame, same route and same build otherwise:The median is the title's own 30 fps cap either way; what moved is the tail, which is the part that felt like a stutter. That is consistent with what you describe: the hot-guard change removes protection faults, and those are expensive under Wine.
No
Xid 31in this run, where every other build here took one within 4 to 8 minutes of world play —NVRM: Xid (PCI:0000:01:00): 31, MMU Faultfollowed byrelay: the device was lost before fence value …. IfLARP_WINE_NO_SPARSEis what stopped it, that is the single most useful thing in this PR for Linux users. I have not run it long enough to call it fixed rather than delayed, so treat it as promising rather than confirmed.One caveat on the numbers: 92 pipelines were still being made during the run, so the p99 (821 ms) is compile work and not a steady-state frame. I will re-measure once the cache settles.
@r32601366 on GitHub · 2026-12-05 19:57 UTC · original
Thanks for running it, that's the measurement this PR was missing.
The tail moving while the median stays at the 30 fps cap is what we saw here too. On the Xid 31: our crash was the same family (
NVRM: intermapRegisterDmaMapping: Failed to insert new mapping nodebefore the machine went down), and it went away with reserved buffers off. To pin which fix stops it on your side: a run with onlyLARP_WINE_NO_SPARSE=0(the other two fixes still on) should bring the MMU fault back within your usual 4–8 min if it is the reserved buffers. I can tighten the comment and docs around that switch once you have it.