Launcher: retry failed automatic shader preloads #2283

Manually merged
github merged 1 commit from github-bot/gh-2283 into main 2026-11-30 14:14:36 +00:00 AGit
Owner

@⁠yumaste on GitHub · 2026-11-29 11:22 UTC · original
yumaste:nvidia/fix-preload-completion → main · +54 −26 · 2 files · 1 commits · merged 2026-11-30 14:12 UTC

What it changes

victory play writes its per-version warm-up marker before it starts the automatic shader preload. If the child fails to start, exits with an error, or is interrupted, the next launch sees the marker and skips the preload.

Carry the pending marker through launcher setup and create it only after the preload process exits successfully. A failed attempt still proceeds to the title with any cache data already produced. The next eligible launch retries. Explicit --preload still runs when the automatic preload has already completed.

How it was tested

  • Windows, using a synthetic launcher file and simulated process exit statuses. The regression test covers a spawn error, a nonzero exit and a successful retry that records completion.
  • cargo test --locked -p victory passed all 82 tests. No title assets or gameplay run were needed.
  • The staged asset-policy check passed for both changed files. The full-tree check reports the existing crates/victory-loader/src/heap_sites/frame_users.rs hex-run finding on the base commit.

Checked for overlap

  • Checked the open preload and warm-up PRs. #1897 introduces the first-run preload and #1971 covers settings for standalone preload. This PR handles completion of the automatic preload run by play.
**@⁠yumaste** on GitHub · 2026-11-29 11:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2283) `yumaste:nvidia/fix-preload-completion` → `main` · +54 −26 · 2 files · 1 commits · merged 2026-11-30 14:12 UTC ## What it changes `victory play` writes its per-version warm-up marker before it starts the automatic shader preload. If the child fails to start, exits with an error, or is interrupted, the next launch sees the marker and skips the preload. Carry the pending marker through launcher setup and create it only after the preload process exits successfully. A failed attempt still proceeds to the title with any cache data already produced. The next eligible launch retries. Explicit `--preload` still runs when the automatic preload has already completed. ## How it was tested - Windows, using a synthetic launcher file and simulated process exit statuses. The regression test covers a spawn error, a nonzero exit and a successful retry that records completion. - `cargo test --locked -p victory` passed all 82 tests. No title assets or gameplay run were needed. - The staged asset-policy check passed for both changed files. The full-tree check reports the existing `crates/victory-loader/src/heap_sites/frame_users.rs` hex-run finding on the base commit. ## Checked for overlap - [x] Checked the open preload and warm-up PRs. #1897 introduces the first-run preload and #1971 covers settings for standalone preload. This PR handles completion of the automatic preload run by `play`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 11:28:05 +00:00
github manually merged commit f84a7064bf into main 2026-11-30 14:14:36 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2283
No description provided.