preload: --jobs / VICTORY_PRELOAD_JOBS to leave the rest of the PC free #382

Closed
github-bot wants to merge 1 commit from github-bot/gh-382 into main AGit
Owner

@⁠fromrivertothesea on GitHub · 2026-11-27 21:45 UTC · original
fromrivertothesea:pr/preload-jobs → main · +16 −4 · 1 files · 1 commits · closed without merging

Problem

victory preload passed no thread count to any of its three steps. Translating took every logical core, and making pipelines took two thirds of them, so the PC couldn't be used for anything else (playing, building) while a preload ran. The step commands shaders and warm already take --jobs; preload didn't pass it on.

Change

  • victory preload --jobs N, or the switch VICTORY_PRELOAD_JOBS=N (which the launcher's -More and the F1 menu's restart carry like any other VICTORY_ switch), gives each step N threads or processes: translate::precompile, warm::run and warm::into_library.
  • Unset or 0: each step's own default, as before.
  • It prints Preloading on N threads at a time when set.

apps/victory/src/main.rs only, +16/-4.

Tested

On an RTX 5070 / 32 GB PC: an interrupted preload resumed with VICTORY_PRELOAD_JOBS=3 (at idle priority), and logged Preloading on 3 threads at a time, ... 3 processes and into the pipeline library: 5386 pipelines (loading and slow ones), 3 threads. The game stayed playable alongside it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FsQtBz4aDhUTip3jBagKEX

**@⁠fromrivertothesea** on GitHub · 2026-11-27 21:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/382) `fromrivertothesea:pr/preload-jobs` → `main` · +16 −4 · 1 files · 1 commits · closed without merging ## Problem `victory preload` passed no thread count to any of its three steps. Translating took every logical core, and making pipelines took two thirds of them, so the PC couldn't be used for anything else (playing, building) while a preload ran. The step commands `shaders` and `warm` already take `--jobs`; `preload` didn't pass it on. ## Change - `victory preload --jobs N`, or the switch `VICTORY_PRELOAD_JOBS=N` (which the launcher's `-More` and the F1 menu's restart carry like any other `VICTORY_` switch), gives each step N threads or processes: `translate::precompile`, `warm::run` and `warm::into_library`. - Unset or 0: each step's own default, as before. - It prints `Preloading on N threads at a time` when set. `apps/victory/src/main.rs` only, +16/-4. ## Tested On an RTX 5070 / 32 GB PC: an interrupted preload resumed with `VICTORY_PRELOAD_JOBS=3` (at idle priority), and logged `Preloading on 3 threads at a time`, `... 3 processes` and `into the pipeline library: 5386 pipelines (loading and slow ones), 3 threads`. The game stayed playable alongside it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FsQtBz4aDhUTip3jBagKEX
The preload passed no thread count to any of its three steps, so it took
every core to translate and two thirds of them to make pipelines, with no
way to play or work beside it. `victory preload --jobs N` (or the switch
VICTORY_PRELOAD_JOBS=N, which the launcher's -More and the F1 menu's
restart carry) now gives each step N threads or processes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FsQtBz4aDhUTip3jBagKEX
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 21:46:57 +00:00
github-bot closed this pull request 2026-11-28 02:54:39 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-28 02:49 UTC · original

Merged into main (8fc2254) and shipped in v2026.11.27.10. The commit keeps you as its author, so it counts toward the contributors list. GitHub shows this as closed rather than merged only because the commits were applied on top of the newest main (new commit IDs). Thank you!

**@⁠trustno1-coder** on GitHub · 2026-11-28 02:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/382#issuecomment-7232619849) Merged into main (8fc2254) and shipped in [v2026.11.27.10](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.27.10). The commit keeps you as its author, so it counts toward the contributors list. GitHub shows this as closed rather than merged only because the commits were applied on top of the newest main (new commit IDs). Thank you!

Pull request closed

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!382
No description provided.