Launcher: ray activation by default (-Rays) and victory warm before the game; warm --used covers the pipelines the switches let in #64

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

@⁠wasonidas on GitHub · 2026-11-27 15:39 UTC · original
wasonidas:launcher/rays-and-warm-used → main · +220 −24 · 5 files · 1 commits · closed without merging

Problem

  1. Violet stain on paper, posters and signs (RTX 5080, Series X and S profiles). Without the BVH builder the screen probes' ray activation (CS_ScreenProbes_ActivateRays) is left out, and the stain is there. With VICTORY_ACTIVATE_RAYS=1 it is gone.
  2. victory warm --used passes over the pipelines a switch lets in. --used makes only what earlier runs drew with (the early list). A run with VICTORY_ACTIVATE_RAYS=1, VICTORY_RT_RESOLVE=1 or VICTORY_BVH_BUILDER=1 draws with some 1,000 pipelines that runs without the switch never drew with, so the first run with the switch makes them while it draws.

Change

  • victory warm --used also makes the pipelines whose compute program this process's switches let in (known::let_in, make::let_in_names; the two skips in make.rs are now functions so that both sides read the same switches). It says how many it let in.
  • victory warm --stamp <text>: nothing is done if the last whole warm in this cache was given the same text (pipelines/warm-stamp.txt); a warm cut short by --limit writes none. Progress is told every 5 s as well as every 1,000.
  • scripts/play-foxhound.ps1:
    • -Rays both|resolve|activate|off, default activate (VICTORY_ACTIVATE_RAYS=1); off is the launcher as before.
    • victory warm --used --stamp <hash> runs before the game. The hash is of victory.exe, the display driver's version and the settings that matter to the warm, so after the first time it takes seconds. -SkipWarm, -WarmOnly, -Victory <path>.
    • Settings that change neither the translated shaders nor which pipelines are made (VICTORY_MENU_*, DLSS, frame generation, frame interval) are kept out of the stamp and are not given to victory warm.

victory play (apps/victory/src/play.rs) has its own settings list and is not changed here.

Relation to #29

#29 (merged) drops the violet leftovers where the ambient raise reads them. This runs the pass whose absence leaves them there. Our measurements are from a tree without #29, and we have not measured on top of it: if #29 alone is enough here, the -Rays default can go to off and the rest of this PR (the warm) stands as it is.

Measured

RTX 5080, Ryzen 7 9800X3D, 32 GB, Series X profile, 2560x1440, DLSS Quality, diagnostics build, 294 s unattended runs of the prologue; cell scene at 135-145 s:

FPS p95 p99
first run with a ray switch (VICTORY_RT_RESOLVE=1), cache warmed without it 3.9 504 ms 537 ms
launcher of this PR (-Rays activate, warm before the game) 27.0 45 ms 91 ms
  • Capture review of the stain: gone with VICTORY_ACTIVATE_RAYS=1 alone; VICTORY_RT_RESOLVE=1 alone does not remove it and costs about 2 FPS, hence the default.
  • The second run of the table: route (199-226 s) 28.5 FPS; no device removed, no out-of-memory lines; peak commit 31.4 GiB.

Checks

  • On main (d12eb1b2); one conflict in apps/victory/src/main.rs (the Warm arm beside the new Play and GetDlss arms), resolved by keeping both.
  • cargo check --workspace --all-targets --locked: passes. cargo clippy --workspace --all-targets --all-features gives the same findings as main (none new).
  • cargo test -p victory-gpu --lib -- pipeline::known::tests pipeline::make::tests (with the new pipelines_are_found_by_their_compute_programs_name) and cargo test -p xtask (asset policy): pass.
  • The script parses (PowerShell 5.1). No GPU run was made on top of current main; the measurements above are from our RTX 5080 branch, whose base is this repository's 9d6300fa.
**@⁠wasonidas** on GitHub · 2026-11-27 15:39 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/64) `wasonidas:launcher/rays-and-warm-used` → `main` · +220 −24 · 5 files · 1 commits · closed without merging ## Problem 1. **Violet stain on paper, posters and signs** (RTX 5080, Series X and S profiles). Without the BVH builder the screen probes' ray activation (`CS_ScreenProbes_ActivateRays`) is left out, and the stain is there. With `VICTORY_ACTIVATE_RAYS=1` it is gone. 2. **`victory warm --used` passes over the pipelines a switch lets in.** `--used` makes only what earlier runs drew with (the early list). A run with `VICTORY_ACTIVATE_RAYS=1`, `VICTORY_RT_RESOLVE=1` or `VICTORY_BVH_BUILDER=1` draws with some 1,000 pipelines that runs without the switch never drew with, so the first run with the switch makes them while it draws. ## Change - `victory warm --used` also makes the pipelines whose compute program this process's switches let in (`known::let_in`, `make::let_in_names`; the two skips in `make.rs` are now functions so that both sides read the same switches). It says how many it let in. - `victory warm --stamp <text>`: nothing is done if the last whole warm in this cache was given the same text (`pipelines/warm-stamp.txt`); a warm cut short by `--limit` writes none. Progress is told every 5 s as well as every 1,000. - `scripts/play-foxhound.ps1`: - `-Rays both|resolve|activate|off`, default `activate` (`VICTORY_ACTIVATE_RAYS=1`); `off` is the launcher as before. - `victory warm --used --stamp <hash>` runs before the game. The hash is of `victory.exe`, the display driver's version and the settings that matter to the warm, so after the first time it takes seconds. `-SkipWarm`, `-WarmOnly`, `-Victory <path>`. - Settings that change neither the translated shaders nor which pipelines are made (`VICTORY_MENU_*`, DLSS, frame generation, frame interval) are kept out of the stamp and are not given to `victory warm`. `victory play` (`apps/victory/src/play.rs`) has its own settings list and is not changed here. ## Relation to #29 #29 (merged) drops the violet leftovers where the ambient `raise` reads them. This runs the pass whose absence leaves them there. Our measurements are from a tree without #29, and we have not measured on top of it: if #29 alone is enough here, the `-Rays` default can go to `off` and the rest of this PR (the warm) stands as it is. ## Measured RTX 5080, Ryzen 7 9800X3D, 32 GB, Series X profile, 2560x1440, DLSS Quality, diagnostics build, 294 s unattended runs of the prologue; cell scene at 135-145 s: | | FPS | p95 | p99 | |---|---|---|---| | first run with a ray switch (`VICTORY_RT_RESOLVE=1`), cache warmed without it | 3.9 | 504 ms | 537 ms | | launcher of this PR (`-Rays activate`, warm before the game) | 27.0 | 45 ms | 91 ms | - Capture review of the stain: gone with `VICTORY_ACTIVATE_RAYS=1` alone; `VICTORY_RT_RESOLVE=1` alone does not remove it and costs about 2 FPS, hence the default. - The second run of the table: route (199-226 s) 28.5 FPS; no device removed, no out-of-memory lines; peak commit 31.4 GiB. ## Checks - On `main` (`d12eb1b2`); one conflict in `apps/victory/src/main.rs` (the `Warm` arm beside the new `Play` and `GetDlss` arms), resolved by keeping both. - `cargo check --workspace --all-targets --locked`: passes. `cargo clippy --workspace --all-targets --all-features` gives the same findings as `main` (none new). - `cargo test -p victory-gpu --lib -- pipeline::known::tests pipeline::make::tests` (with the new `pipelines_are_found_by_their_compute_programs_name`) and `cargo test -p xtask` (asset policy): pass. - The script parses (PowerShell 5.1). No GPU run was made on top of current `main`; the measurements above are from our RTX 5080 branch, whose base is this repository's `9d6300fa`.
The violet stain on paper, posters and signs goes with the screen probes'
ray activation run (VICTORY_ACTIVATE_RAYS=1); the ray-tracing resolve
alone (VICTORY_RT_RESOLVE=1) does not remove it and costs about 2 FPS, so
-Rays defaults to activate (both, resolve and off are there too).

A run with such a switch draws with some 1,000 pipelines that runs without
it left out, so the early list does not have them and victory warm --used
passed them over: the first run with the switch made them while it drew
(3 to 9 fps for minutes). warm --used now makes them too (known::let_in,
make::let_in_names).

The launcher runs victory warm --used before the game; --stamp makes it a
no-op when the last whole warm in this cache was for the same build, driver
and settings (pipelines/warm-stamp.txt). -SkipWarm, -WarmOnly, -Victory.
Progress is told every 5 s as well as every 1,000.

From 96fb3e55 and 95f0bec1 of the RTX 5080 branch, without the frame
interval part.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 15:50:30 +00:00
github-bot closed this pull request 2026-11-27 19:24:25 +00:00
Author
Owner

@⁠wasonidas on GitHub · 2026-11-27 19:22 UTC · original

Closing this one, for the reason #78 was closed: victory preload and the launcher's -Preload (29d8dbf, 10862a6) landed after it and cover the same ground more completely.

  • The preload runs with the start's switches and makes every known pipeline, not only those earlier runs drew with. So the pipelines a switch lets in (VICTORY_ACTIVATE_RAYS=1, VICTORY_RT_RESOLVE=1, VICTORY_BVH_BUILDER=1) are made by it. This PR's let_in mattered only under warm --used, which the launcher has no need of now.
  • The stamp was there to make a warm at every start cost seconds. The preload is asked for, so nothing needs it.
  • The -Rays activate default was for the violet stain, which #29 takes away where it is read. We never measured it on top of #29.

For the record, the measurement holds on the commit before: the first run with a ray switch on a cache warmed without it gave 3.9 FPS in the prologue's cell (p95 504 ms), and 27.0 FPS once the pipelines the switch lets in were made ahead (RTX 5080, Series X profile, 1440p).

One thing is left over and is not this PR's: a warm without a switch writes the pipelines it left out down as done, so a later one with the switch passes over them. #89 has that.

**@⁠wasonidas** on GitHub · 2026-11-27 19:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/64#issuecomment-7226465251) Closing this one, for the reason #78 was closed: `victory preload` and the launcher's `-Preload` (29d8dbf, 10862a6) landed after it and cover the same ground more completely. - The preload runs with the start's switches and makes every known pipeline, not only those earlier runs drew with. So the pipelines a switch lets in (`VICTORY_ACTIVATE_RAYS=1`, `VICTORY_RT_RESOLVE=1`, `VICTORY_BVH_BUILDER=1`) are made by it. This PR's `let_in` mattered only under `warm --used`, which the launcher has no need of now. - The stamp was there to make a warm at every start cost seconds. The preload is asked for, so nothing needs it. - The `-Rays activate` default was for the violet stain, which #29 takes away where it is read. We never measured it on top of #29. For the record, the measurement holds on the commit before: the first run with a ray switch on a cache warmed without it gave 3.9 FPS in the prologue's cell (p95 504 ms), and 27.0 FPS once the pipelines the switch lets in were made ahead (RTX 5080, Series X profile, 1440p). One thing is left over and is not this PR's: a warm without a switch writes the pipelines it left out down as done, so a later one with the switch passes over them. #89 has that.

Pull request closed

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