Launcher: retry failed automatic shader preloads #2283

Merged
yumaste merged 1 commit from upstream-pr/2283 into main 2026-11-30 14:12:03 +00:00
yumaste commented 2026-11-29 11:22:57 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by yumaste on 2026-11-29T11:22:57Z.


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.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5550218707 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2283). Originally posted by [yumaste](https://github.com/yumaste) on 2026-11-29T11:22:57Z. --- ## 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`.
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
trustno1-coder/VIctory-NVIDIA!2283
No description provided.