feat: build the view-tree wineserver for a GE-Proton release (Linux, ~8x world frame) #261

Open
github-bot wants to merge 3 commits from github-bot/gh-261 into main AGit
Owner

@⁠Anzymanz on GitHub · 2026-11-25 22:20 UTC · original
Anzymanz:feat/ge-view-tree-wineserver → main · +194 −0 · 5 files · 3 commits · open

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.so installé), 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's protonprep-valve-staging.sh, applies the view-tree patch, builds only server/wineserver, checks its SERVER_PROTOCOL_VERSION against the installed Proton's ntdll.so (stops on a mismatch), and copies the Proton folder with only files/bin/wineserver replaced. About 75 s from scratch here; bash -n and shellcheck -S warning clean.
  • docs/running-gta6.md and docs/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, only wineserver swapped; numbers from tools/resume_journal_victory.py.

stock view tree
World reached (100+ draws a frame) not after 600 s (still loading, ~187 ms a frame); an earlier stock run: ~270 s 76 s and 104 s
Median world frame 8442 ms (earlier stock run, 3 world lines) 1061 ms (64 lines), 1041 ms (50 lines)
wineserver CPU 146 s over the 600 s run ~0.07 core in the world (perf, 20 s)
MapViewOfFile+UnmapViewOfFile pair with 0 / 5k / 20k / 50k other views 42 / 174 / 139 / 314 µs 46 / 54 / 42 / 59 µs

Caveat: 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.
  • The script was run end to end from an empty folder; the resulting Proton was used for the runs above.

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

**@⁠Anzymanz** on GitHub · 2026-11-25 22:20 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/261) `Anzymanz:feat/ge-view-tree-wineserver` → `main` · +194 −0 · 5 files · 3 commits · open **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.so` installé), 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's `protonprep-valve-staging.sh`, applies the view-tree patch, builds only `server/wineserver`, checks its `SERVER_PROTOCOL_VERSION` against the installed Proton's `ntdll.so` (stops on a mismatch), and copies the Proton folder with only `files/bin/wineserver` replaced. About 75 s from scratch here; `bash -n` and `shellcheck -S warning` clean. - `docs/running-gta6.md` and `docs/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](https://github.com/CachyOS/wine-cachyos/pull/50) (Wine bug [60868](https://bugs.winehq.org/show_bug.cgi?id=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, only `wineserver` swapped; numbers from `tools/resume_journal_victory.py`. | | stock | view tree | | --- | ---: | ---: | | World reached (100+ draws a frame) | not after 600 s (still loading, ~187 ms a frame); an earlier stock run: ~270 s | 76 s and 104 s | | Median world frame | 8442 ms (earlier stock run, 3 world lines) | 1061 ms (64 lines), 1041 ms (50 lines) | | wineserver CPU | 146 s over the 600 s run | ~0.07 core in the world (`perf`, 20 s) | | `MapViewOfFile`+`UnmapViewOfFile` pair with 0 / 5k / 20k / 50k other views | 42 / 174 / 139 / 314 µs | 46 / 54 / 42 / 59 µs | Caveat: 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. - The script was run end to end from an empty folder; the resulting Proton was used for the runs above. ## 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](https://claude.com/claude-code)
tools/build_ge_wineserver.sh builds wineserver with the view-tree patch
(CachyOS/wine-cachyos#50, Wine bug 60868, by ajsem1337 from a version by
neonbyte1) from a GE-Proton tag's own Wine tree, checks its protocol
against the installed Proton's ntdll.so, and copies that Proton with only
files/bin/wineserver replaced. The running guide names the patch, says
how to build and use it, and gives an A/B measured with GE-Proton11-14
on an RX 9070 XT (English and French).

AI-assisted: Claude Code (Claude Opus 5.5) wrote the script, ran the
measurements and wrote the docs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:40:52 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 22:20 UTC · original · edited 2026-11-25 22:24 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T22:24:58.698166Z 69be361 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 22:20 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/261#issuecomment-7176246934) · edited 2026-11-25 22:24 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"69be361aba79393292f6e4b10e952b3f4b19e2bc","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-25T22:24:58.698166Z">2026-11-25T22:24:58.698166Z</relative-time> | `69be361` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Author
Owner

@⁠LooperSalty on GitHub · 2026-11-26 00:06 UTC · original

Thanks for the Linux work. Before it can go in: (1) tools/build_ge_wineserver.sh:5 usage says scripts/ but the file is in tools/; (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.

**@⁠LooperSalty** on GitHub · 2026-11-26 00:06 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/261#issuecomment-7178409091) Thanks for the Linux work. Before it can go in: (1) `tools/build_ge_wineserver.sh:5` usage says `scripts/` but the file is in `tools/`; (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.
Author
Owner

@⁠mancube on GitHub · 2026-11-26 00:08 UTC · original

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.

**@⁠mancube** on GitHub · 2026-11-26 00:08 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/261#issuecomment-7178441631) 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.
Author
Owner

@⁠Foxiquek on GitHub · 2026-11-26 05:25 UTC · original

I've proposed the view-tree patch to GE-Proton so it can ship there without a local build: GloriousEggroll/proton-ge-custom#1016.

**@⁠Foxiquek** on GitHub · 2026-11-26 05:25 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/261#issuecomment-7183478041) I've proposed the view-tree patch to GE-Proton so it can ship there without a local build: GloriousEggroll/proton-ge-custom#1016.
@ -0,0 +45,4 @@
make -j"$(nproc)" server/wineserver > make.log 2>&1
strip -o wineserver server/wineserver
OUT="$WORK/$(basename "$INST")-viewtree"
cp -a "$INST" "$OUT"; cp wineserver "$OUT/files/bin/wineserver"
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 22:24 UTC · original

P1 Badge Add a regression test for the copied Proton tree

This 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 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 22:24 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/261#discussion_r4701588217) **<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Add a regression test for the copied Proton tree** This 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](https://github.com/LooperSalty/AnyXboxX/blob/69be361aba79393292f6e4b10e952b3f4b19e2bc/AGENTS.md#L54-L54) Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 22:24 UTC · original · reviewed

💡 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

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review".

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".

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 22:24 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/261#pullrequestreview-6065831523) · **reviewed** <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `69be361aba` <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review". 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". </details>
- build_ge_wineserver.sh: usage names tools/; the patch is refused unless its
  sha256 is the pinned one; GE-Proton is fetched at the commit pinned for its
  tag (GE-Proton11-14 only), not at the tag; the protocol check and the copy
  are functions, and sourcing the script only defines them.
- tests/test_build_ge_wineserver.py: the protocol check passes and fails on a
  fake objdump's output, the copy replaces only files/bin/wineserver and
  refuses an existing folder, unpinned tags are refused before any fetch.
- THIRD_PARTY.md: the patch's row (CachyOS/wine-cachyos#50, ajsem1337 from
  neonbyte1's version, LGPL-2.1-or-later; downloaded, not copied).
- docs: the numbers are the contributor's, not reproduced by the project;
  GE-Proton's tree has an equivalent fix since d3b6ae7.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠Anzymanz on GitHub · 2026-11-27 01:31 UTC · original

Updated: main merged in, plus 8858f44 for the review points.

@⁠LooperSalty, your four points:

  1. Usage path. The usage line now names tools/.
  2. Patch hash. The patch is pinned by sha256 (9ee40d56…a74b). The script refuses it if the download differs.
  3. GE-Proton commit. GE-Proton is fetched at a pinned commit, not the tag: GE-Proton11-14 → 777d72b4. Any other tag is refused until its commit is added to ge_commit.
  4. Credit. THIRD_PARTY.md has a row for CachyOS/wine-cachyos#50: ajsem1337, from neonbyte1's version, LGPL-2.1-or-later. The patch is downloaded, not copied.

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.py covers three cases:

  • the check passes and fails on a fake objdump's output;
  • the copy replaces only files/bin/wineserver and leaves the source alone, and it refuses an existing folder;
  • an unpinned tag is refused before anything is fetched.

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.

**@⁠Anzymanz** on GitHub · 2026-11-27 01:31 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/261#issuecomment-7207361007) Updated: `main` merged in, plus 8858f44 for the review points. @⁠LooperSalty, your four points: 1. **Usage path.** The usage line now names `tools/`. 2. **Patch hash.** The patch is pinned by sha256 (`9ee40d56…a74b`). The script refuses it if the download differs. 3. **GE-Proton commit.** GE-Proton is fetched at a pinned commit, not the tag: `GE-Proton11-14` → `777d72b4`. Any other tag is refused until its commit is added to `ge_commit`. 4. **Credit.** THIRD_PARTY.md has a row for CachyOS/wine-cachyos#50: ajsem1337, from neonbyte1's version, LGPL-2.1-or-later. The patch is downloaded, not copied. 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.py` covers three cases: - the check passes and fails on a fake `objdump`'s output; - the copy replaces only `files/bin/wineserver` and leaves the source alone, and it refuses an existing folder; - an unpinned tag is refused before anything is fetched. 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.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/261/head:github-bot/gh-261'
git switch 'github-bot/gh-261'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-261'
git switch 'github-bot/gh-261'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-261'
git switch 'github-bot/gh-261'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-261'
git switch 'main'
git merge --squash 'github-bot/gh-261'
git switch 'main'
git merge --ff-only 'github-bot/gh-261'
git switch 'main'
git merge 'github-bot/gh-261'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.