Launcher: pipelines are made ahead of every start, with the start's switches (victory warm --used) #78

Closed
github-bot wants to merge 1 commit from gh-pr/78/head into gh-pr/78/base
Owner

@⁠1mosce on GitHub · 2026-11-27 17:08 UTC · original
1mosce:launcher-warm-with-switches → main · +37 −1 · 2 files · 1 commits · closed without merging

What

scripts/play-foxhound.ps1 now runs victory warm --used before every start, after it has set the start's switches. -NoWarm leaves it out, -WarmOnly does only that and does not start the title. docs/README-foxhound.md says what to set when victory warm is run by hand.

Why

A translation, and so the pipeline the driver keeps, depends on some switches. VICTORY_EARLY_DEPTH=1, which the launcher sets, is part of the shader cache's key (shader_cache.rs, build). The README's bare victory warm therefore makes another form of every pipeline than the one a start of the launcher draws with.

Measured

RTX 4070 Laptop (8 GiB), Ryzen 9 8945HS, 32 GB, Series S profile, the 3,492 pipelines earlier runs drew with:

fingerprint time new files in the shader cache
bare victory warm --used (VICTORY_HOST_WAVE=32 only) 5d2d9f9d446a6054 284 s 3,397 (every shader translated a second time)
from the launcher, with its switches dba8223fadb5f411 249 s 0
the same at the next start same 2.6 s (0 to make) 0

400 of them made again in fresh processes: median 15.6 ms each where the first pass took 148.2. The slow ones are not served from the driver's cache (p90 1,423 ms against 2,078, p99 5,467 against 5,574).

In play the gain is small so far, and I do not want to oversell it: in the one run after the warm-up the queue of pipelines being made was empty 5.5 minutes after the start, where the run before had 130 left after 6 minutes. The first half minute of the world looked the same.

Notes

  • Streamline is left out of the warm-up's processes (VICTORY_DLSS, VICTORY_FRAMEGEN, VICTORY_FRAMEGEN_X are unset for it and set again): nothing is presented there.
  • A start costs 2 to 3 seconds more when there is nothing to make. If you would rather have it opt-in, say so and I will turn the default around.
  • CI: on main (d12eb1b) cargo clippy --workspace --all-targets -- -D warnings stops at crates/victory-formats/src/texture.rs:1346 (clippy::precedence), and two tests fail on this machine with and without this change: indirect::tests::host_list_budget_starts_empty_at_each_submission and indirect::tests::warp_batch_charges_every_execution. This change touches a script and a document only.
**@⁠1mosce** on GitHub · 2026-11-27 17:08 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/78) `1mosce:launcher-warm-with-switches` → `main` · +37 −1 · 2 files · 1 commits · closed without merging ## What `scripts/play-foxhound.ps1` now runs `victory warm --used` before every start, after it has set the start's switches. `-NoWarm` leaves it out, `-WarmOnly` does only that and does not start the title. `docs/README-foxhound.md` says what to set when `victory warm` is run by hand. ## Why A translation, and so the pipeline the driver keeps, depends on some switches. `VICTORY_EARLY_DEPTH=1`, which the launcher sets, is part of the shader cache's key (`shader_cache.rs`, `build`). The README's bare `victory warm` therefore makes another form of every pipeline than the one a start of the launcher draws with. ## Measured RTX 4070 Laptop (8 GiB), Ryzen 9 8945HS, 32 GB, Series S profile, the 3,492 pipelines earlier runs drew with: | | fingerprint | time | new files in the shader cache | |---|---|---|---| | bare `victory warm --used` (`VICTORY_HOST_WAVE=32` only) | `5d2d9f9d446a6054` | 284 s | 3,397 (every shader translated a second time) | | from the launcher, with its switches | `dba8223fadb5f411` | 249 s | 0 | | the same at the next start | same | 2.6 s (0 to make) | 0 | 400 of them made again in fresh processes: median 15.6 ms each where the first pass took 148.2. The slow ones are not served from the driver's cache (p90 1,423 ms against 2,078, p99 5,467 against 5,574). In play the gain is small so far, and I do not want to oversell it: in the one run after the warm-up the queue of pipelines being made was empty 5.5 minutes after the start, where the run before had 130 left after 6 minutes. The first half minute of the world looked the same. ## Notes - Streamline is left out of the warm-up's processes (`VICTORY_DLSS`, `VICTORY_FRAMEGEN`, `VICTORY_FRAMEGEN_X` are unset for it and set again): nothing is presented there. - A start costs 2 to 3 seconds more when there is nothing to make. If you would rather have it opt-in, say so and I will turn the default around. - CI: on `main` (d12eb1b) `cargo clippy --workspace --all-targets -- -D warnings` stops at `crates/victory-formats/src/texture.rs:1346` (`clippy::precedence`), and two tests fail on this machine with and without this change: `indirect::tests::host_list_budget_starts_empty_at_each_submission` and `indirect::tests::warp_batch_charges_every_execution`. This change touches a script and a document only.
A translation, and so the pipeline the driver keeps, depends on some switches: VICTORY_EARLY_DEPTH=1, which play-foxhound.ps1 sets, is part of the shader cache's key. The README's bare `victory warm` therefore made another form of every pipeline than the one a start of the launcher draws with.

Measured on an RTX 4070 Laptop (8 GiB), Series S profile, 3,492 pipelines earlier runs drew with:
- bare `victory warm --used` (VICTORY_HOST_WAVE=32 only): fingerprint 5d2d9f9d446a6054, 284 s, and 3,397 new files in the shader cache (every shader translated a second time);
- from the launcher, with its switches set: fingerprint dba8223fadb5f411, 249 s, no new file in the shader cache;
- the same again at the next start: 0 to make, 2.6 s;
- 400 of them made again in fresh processes: median 15.6 ms each where the first pass took 148.2 (p90 1,423 against 2,078: the slow ones are not served from the driver's cache).

play-foxhound.ps1 now runs `victory warm --used` after it has set the start's switches and before it starts the title, without Streamline (nothing is presented). -NoWarm leaves it out, -WarmOnly does only that. The README says what to set when it is run by hand.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 17:15:16 +00:00
github-bot closed this pull request 2026-11-27 17:15:16 +00:00
Author
Owner

@⁠1mosce on GitHub · 2026-11-27 17:10 UTC · original

Closing this one. 29d8dbf landed while I was preparing it and covers the same ground more completely: victory preload and the launcher's -Preload run with the start's switches, which was the point here, and they also translate every shader and fill the pipeline library.

For the record, the measurement that led to it still holds on the commit before: a bare victory warm --used translated all 3,397 shaders a second time and compiled 3,492 pipelines in a form the launcher does not draw with, because VICTORY_EARLY_DEPTH=1 is part of the shader cache's key.

One thing is left over: the Warming up section of docs/README-foxhound.md still shows the bare victory warm. It may be worth pointing it at -Preload, or naming the switch to set.

**@⁠1mosce** on GitHub · 2026-11-27 17:10 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/78#issuecomment-7224116556) Closing this one. 29d8dbf landed while I was preparing it and covers the same ground more completely: `victory preload` and the launcher's `-Preload` run with the start's switches, which was the point here, and they also translate every shader and fill the pipeline library. For the record, the measurement that led to it still holds on the commit before: a bare `victory warm --used` translated all 3,397 shaders a second time and compiled 3,492 pipelines in a form the launcher does not draw with, because `VICTORY_EARLY_DEPTH=1` is part of the shader cache's key. One thing is left over: the *Warming up* section of `docs/README-foxhound.md` still shows the bare `victory warm`. It may be worth pointing it at `-Preload`, or naming the switch to set.

Pull request closed

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