Add an opt-in full pipeline warm-up #26

Closed
github-bot wants to merge 0 commits from github-bot/gh-26 into main AGit
Owner

@⁠tharun-37 on GitHub · 2026-12-03 13:49 UTC · original
tharun-37:full-pipeline-warmup → main · +109 −9 · 6 files · 8 commits · closed without merging

Fixes #25

Leila's normal preload keeps building only the small early-pipeline set, which stays the default. This adds an explicit, opt-in full warm-up for people who want to build every recorded pipeline before playing.

  • New full_preload Tauri command (api.fullPreload()), registered with the launcher.
  • Reuses the launcher's own environment, install folder, cache and data paths.
  • Runs only victory.exe preload <game dir> with VICTORY_PRELOAD_ALL=1; it does not start or stop the game, change saves or settings, delete caches, or download anything. Missing prerequisites are reported instead of fetched.
  • Writes a separate preload-all-<time>.log and shows the same progress as the normal preload, with its own label.
  • Settings -> Engine -> Shaders and files gets a Build all pipelines button behind a confirmation dialog that warns it can take hours and needs free disk space. It stays off unless requested.
  • On success the existing preloaded mark is updated, so a later normal launch does not repeat the smaller preload.

Validation:

  • cargo check --manifest-path launcher/src-tauri/Cargo.toml passes.
  • npm run build (tsc + vite) passes.
  • Confirmed by inspection that the new path reuses the normal command() / environment() path.

AI-assisted (OpenCode)

**@⁠tharun-37** on GitHub · 2026-12-03 13:49 UTC · [original](https://github.com/tshadofr/Leila/pull/26) `tharun-37:full-pipeline-warmup` → `main` · +109 −9 · 6 files · 8 commits · closed without merging Fixes #25 Leila's normal preload keeps building only the small early-pipeline set, which stays the default. This adds an explicit, opt-in full warm-up for people who want to build every recorded pipeline before playing. - New `full_preload` Tauri command (`api.fullPreload()`), registered with the launcher. - Reuses the launcher's own environment, install folder, cache and data paths. - Runs only `victory.exe preload <game dir>` with `VICTORY_PRELOAD_ALL=1`; it does not start or stop the game, change saves or settings, delete caches, or download anything. Missing prerequisites are reported instead of fetched. - Writes a separate `preload-all-<time>.log` and shows the same progress as the normal preload, with its own label. - Settings -> Engine -> Shaders and files gets a **Build all pipelines** button behind a confirmation dialog that warns it can take hours and needs free disk space. It stays off unless requested. - On success the existing `preloaded` mark is updated, so a later normal launch does not repeat the smaller preload. Validation: - `cargo check --manifest-path launcher/src-tauri/Cargo.toml` passes. - `npm run build` (tsc + vite) passes. - Confirmed by inspection that the new path reuses the normal `command()` / `environment()` path. AI-assisted (OpenCode)
Leila's normal preload keeps building only the early-pipeline set. Settings, Engine now offers Build all pipelines, which runs the same preload with VICTORY_PRELOAD_ALL=1 using the launcher's own environment and cache paths, with its own log and progress.

Co-authored-by: andrewpozdnakov7-jpg <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 13:53:06 +00:00
github-bot closed this pull request 2026-12-04 22:08:53 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.