fix: translate shaders then warm only used pipelines on the Vice-Tay base #575

Open
LooperSalty wants to merge 2 commits from upstream-pr/575 into main
LooperSalty commented 2026-11-28 01:16:04 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-28T01:16:04Z.


Summary

Since #563, victory warm makes the host pipelines of every pipeline ever created (about 80,000, roughly 6 a second: hours), and the launcher's "Preloading shaders" step and anyxboxx run --warm/--precompile ran it, so a first launch after an update blocked for hours.

  • Launcher: the step becomes "Translating shaders" (victory shaders --if-needed <game folder>, about 30 minutes once per translator version) then "Preparing the pipelines you used" (victory warm --used). The warm marker still skips both when nothing changed.
  • anyxboxx run --warm/--precompile: the same two steps; --warm-all keeps the old full warm with a "several hours" warning.
  • Docs: docs/launcher.md, docs/fr/lanceur.md.

Draft: victory shaders froze twice tonight on the full game (after 45,000 then 25,000 shaders: no progress, no CPU, no error). Until that is fixed (being investigated), this step could hang instead of taking hours.

Test plan

  • cargo test --release -p anyxboxx-launcher (234 passed) and -p anyxboxx (31 passed)
  • CI
  • Fix the victory shaders freeze, then a first launch from the launcher end to end

🤖 Generated with Claude Code

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:5535278769 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/575). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-28T01:16:04Z. --- ## Summary Since #563, `victory warm` makes the host pipelines of **every** pipeline ever created (about 80,000, roughly 6 a second: hours), and the launcher's "Preloading shaders" step and `anyxboxx run --warm/--precompile` ran it, so a first launch after an update blocked for hours. - Launcher: the step becomes **"Translating shaders"** (`victory shaders --if-needed <game folder>`, about 30 minutes once per translator version) then **"Preparing the pipelines you used"** (`victory warm --used`). The warm marker still skips both when nothing changed. - `anyxboxx run --warm/--precompile`: the same two steps; `--warm-all` keeps the old full warm with a "several hours" warning. - Docs: `docs/launcher.md`, `docs/fr/lanceur.md`. **Draft:** `victory shaders` froze twice tonight on the full game (after 45,000 then 25,000 shaders: no progress, no CPU, no error). Until that is fixed (being investigated), this step could hang instead of taking hours. ## Test plan - [x] `cargo test --release -p anyxboxx-launcher` (234 passed) and `-p anyxboxx` (31 passed) - [ ] CI - [ ] Fix the `victory shaders` freeze, then a first launch from the launcher end to end 🤖 Generated with [Claude Code](https://claude.com/claude-code)
akimfomin commented 2026-11-28 02:53:41 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by akimfomin on 2026-11-28T02:53:41Z.


The vendored pipeline-library code in your exact #575 head still makes unrelated pipeline names share one of 64 load locks. I checked both 132da615 and c1ba6458 through PortBridge. The source file has the same SHA-256, and two distinct names from victory-fork's synthetic regression hash to slot 0 in both.

This gives a separate test for the warm-used path once translation completes. Hold one name's load and check whether the other name can enter before releasing it. Two loads of the identical name should still serialize. victory-fork #1442 has a candidate fix and driver-side timing. The source comparison does not explain the earlier victory shaders stall.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7232661796 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/575#issuecomment-7232661796). Originally posted by [akimfomin](https://github.com/akimfomin) on 2026-11-28T02:53:41Z. --- The vendored pipeline-library code in [your exact #575 head](https://github.com/LooperSalty/AnyXboxX/blob/c1ba64581b14885c4c565ec239bed149dd7677a9/third_party/victory/crates/victory-gpu/src/pipeline/library.rs#L424-L431) still makes unrelated pipeline names share one of 64 load locks. I checked both `132da615` and `c1ba6458` through PortBridge. The source file has the same SHA-256, and two distinct names from [victory-fork's synthetic regression](https://github.com/fxceless/victory-fork/blob/c13e2a390930cacfa68fb27a3341445b18c71c2e/crates/victory-gpu/src/pipeline/library.rs#L756-L789) hash to slot 0 in both. This gives a separate test for the warm-used path once translation completes. Hold one name's load and check whether the other name can enter before releasing it. Two loads of the identical name should still serialize. [victory-fork #1442](https://github.com/fxceless/victory-fork/pull/1442) has a candidate fix and driver-side timing. The source comparison does not explain the earlier `victory shaders` stall.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/575:upstream-pr/575'
git switch 'upstream-pr/575'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/575'
git switch 'upstream-pr/575'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/575'
git switch 'upstream-pr/575'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/575'
git switch 'main'
git merge --squash 'upstream-pr/575'
git switch 'main'
git merge --ff-only 'upstream-pr/575'
git switch 'main'
git merge 'upstream-pr/575'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LooperSalty/AnyXboxX!575
No description provided.