feat: build the view-tree wineserver for a GE-Proton release (Linux, ~8x world frame) #261
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/261"
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 LooperSalty/AnyXboxX. Originally posted by Anzymanz on 2026-11-25T22:20:30Z.
Pour le mainteneur : bonjour ! Le guide parle d'un « correctif communautaire view-tree du wineserver » sans dire où le trouver ni comment le construire. Cette PR ajoute un script qui le construit pour n'importe quelle version de GE-Proton (en vérifiant le protocole contre le
ntdll.soinstallé), le lien vers le correctif et ses auteurs, et une mesure A/B sur une RX 9070 XT. Pas de code de jeu ni de données du jeu : seulement des comptes et des temps. Code et texte écrits avec Claude Code (voir plus bas).What
tools/build_ge_wineserver.sh <GE tag> <installed GE-Proton folder> <empty work folder>: fetches the tag of proton-ge-custom and the Wine / wine-staging commits it pins, runs the Wine section of GE'sprotonprep-valve-staging.sh, applies the view-tree patch, builds onlyserver/wineserver, checks itsSERVER_PROTOCOL_VERSIONagainst the installed Proton'sntdll.so(stops on a mismatch), and copies the Proton folder with onlyfiles/bin/wineserverreplaced. About 75 s from scratch here;bash -nandshellcheck -S warningclean.docs/running-gta6.mdanddocs/fr/lancer-gta6.md: a short section naming the patch, why it helps VIctory, how to build and use it (and the "a new launch joins a running stock wineserver" trap), and the A/B below.The patch itself is CachyOS/wine-cachyos#50 (Wine bug 60868) by @ajsem1337, from a version by @neonbyte1; it is downloaded by the script, not copied into this repository.
Measured
GE-Proton11-14 (protocol 938), CachyOS, Ryzen 9 5950X, RX 9070 XT, Mesa 26.3.1; this repository's VIctory plus Marvisak/VIctory#454 (watchdog off); Wine's own
d3dcompiler_47, so indirect draws were dropped in every run; same binary and prefix, onlywineserverswapped; numbers fromtools/resume_journal_victory.py.perf, 20 s)MapViewOfFile+UnmapViewOfFilepair with 0 / 5k / 20k / 50k other viewsCaveat: both view-tree runs ended after about 8 and 7 minutes on the title's own breakpoint ("Unsignaled CrossQueueBarrier" in its crash report). The stock run never got that far, so it is not known yet whether the patch plays a part.
Checks
pytest: 1092 passed, 322 skipped (Linux, no runtime build).ruff check --select W605,F,E9 PrototypeScarlett tests tools: clean.AI use
Claude Code (Claude Opus 5.5) wrote the script and the docs, built the server, ran the game measurements on my PC and wrote this description.
🤖 Generated with Claude Code
Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T22:20:48Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
69be361ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T22:24:56Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
69be361abaℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T22:24:56Z.
Code review location:
tools/build_ge_wineserver.sh; line 48This new build path replaces the wineserver in a Proton copy, but the diff adds no test for its protocol-check and replacement contract. If that logic regresses, the helper could produce an incompatible or unusable copy without a test catching it. Please add a focused test that stubs the fetch and build steps and verifies the validation and replacement behavior; this repository requires each new behavior to have a test.
AGENTS.md reference: AGENTS.md:L54-L54
Useful? React with 👍 / 👎.
Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-26T00:06:51Z.
Thanks for the Linux work. Before it can go in: (1)
tools/build_ge_wineserver.sh:5usage saysscripts/but the file is intools/; (2) the CachyOS patch is downloaded with curl at line 30 without a sha256 check — please pin it by hash (or vendor it with its licence and a Source line, rule 10); (3) GE-Proton is cloned at a mutable tag — please pin a commit SHA; (4) please credit the patch's origin in THIRD_PARTY.md. The measurements are welcome as reported by you; say so in the docs.Imported from LooperSalty/AnyXboxX. Originally posted by mancube on 2026-11-26T00:08:41Z.
I've tested this on my CachyOS machine - it built correctly for GE-Proton11-14 and I now get playable ~4fps with no glitches on my 7900X/RX9700XT, as compared to 1 frame every ~20s before the wineserver patch.
Imported from LooperSalty/AnyXboxX. Originally posted by Foxiquek on 2026-11-26T05:25:50Z.
I've proposed the view-tree patch to GE-Proton so it can ship there without a local build: GloriousEggroll/proton-ge-custom#1016.
Imported from LooperSalty/AnyXboxX. Originally posted by Anzymanz on 2026-11-27T01:31:49Z.
Updated:
mainmerged in, plus8858f44for the review points.@LooperSalty, your four points:
tools/.9ee40d56…a74b). The script refuses it if the download differs.GE-Proton11-14→777d72b4. Any other tag is refused until its commit is added toge_commit.The docs (EN and FR) now say the numbers are the contributor's own and not reproduced by the project.
Codex review (a test). The protocol check and the copy are now functions; sourcing the script only defines them.
tests/test_build_ge_wineserver.pycovers three cases:objdump's output;files/bin/wineserverand leaves the source alone, and it refuses an existing folder;3 passed locally, and ruff with the CI's rules is clean. The build itself (fetch, GE prep, compile) isn't covered by the test. I haven't re-run the build since this change.
@mancube, thank you for testing it on another machine.
@Foxiquek, thanks for taking it to GE. GloriousEggroll closed #1016 as a duplicate of the same fix, which landed in GE's tree on 27 Nov as
d3b6ae7. The docs now say so: a GE-Proton release after 11-14 that includes it needs no local build, and this script is only for 11-14.Written with Claude Code.
Imported from LooperSalty/AnyXboxX. Originally posted by Anzymanz on 2026-11-27T19:59:24Z.
GE-Proton now has the same wineserver change on its master: d3b6ae738 (
em-fixups/0078-server-store-process-views-in-an-rb-tree.patch, from GloriousEggroll/proton-ge-custom#1013; GloriousEggroll/proton-ge-custom#1016 was closed as its duplicate). It isn't in a release yet: GE-Proton11-14 doesn't carry it. Once a release does, the build step this PR adds isn't needed, and I'll close the PR then, unless you'd rather have the docs point at that release instead.mainis merged in again (3be9fc5); the script's tests pass (3 of 3).Written with Claude Code.
Imported from LooperSalty/AnyXboxX. Originally posted by Anzymanz on 2026-11-29T14:37:52Z.
Superseded by GE-Proton11-15, which carries this fix; closing.
Written with Claude Code.
Pull request closed