Launcher: shaders, warm and preload run on their own apply the defaults play applies #1971

Open
eleboucher wants to merge 42 commits from upstream-pr/1971 into main
eleboucher commented 2026-11-29 04:57:12 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eleboucher on 2026-11-29T04:57:12Z.


Fixes #

What it changes

victory play puts its defaults table (SETTINGS in play.rs) into the environment. Three of those defaults are part of the shader cache key in shader_cache.rs build(): VICTORY_EARLY_DEPTH=1, VICTORY_NAN_SCRUB=1 and VICTORY_BVH_MISS=1. victory shaders, victory warm and victory preload run on their own did not apply them, so they translated and made pipelines under another key. A default play afterwards missed every translation and the driver compiled again during the start; on a new translator that can last long enough for the title's 30 s hang watchdog (+0x23cf683, see #628).

These three commands now apply what a plain play applies, through the same settings() (defaults table plus victory-settings.txt). A variable already set in the environment is kept, so warming under another value still works. play --preload is unchanged: the preload it starts already has the start's environment.

How it was tested

  • GPU and profile: RTX 4070 Ti SUPER 16 GB, 16 GB RAM, Windows 11, Series X profile, native 1440p, no DLSS or frame generation, default play
  • Before (our test queue runs victory shaders then victory warm --used, then play): shaders from the cache and translated so far hits=0 misses=1709, and some pipelines took 20-44 s to make during the start
  • After, this branch on main 568c5e5d, same sequence with none of the three variables set in the shell: shaders translated 25763 shaders fresh (116 s), then play logged hits=1924 misses=0 and host pipelines all made made=1621 loaded=1113
  • Shader wave sizes: not touched
  • cargo test: not run for apps/victory; cargo xwin check --workspace --all-targets and clippy on victory pass

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #1001 (covers warm only and copies EARLY_DEPTH, AMBIENT_SPECULAR and WATER_LIGHT by hand, so it misses NAN_SCRUB and BVH_MISS; this one reuses settings() and covers shaders, warm and preload), #549 (closed)
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5547719952 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1971). Originally posted by [eleboucher](https://github.com/eleboucher) on 2026-11-29T04:57:12Z. --- Fixes # ## What it changes `victory play` puts its defaults table (`SETTINGS` in `play.rs`) into the environment. Three of those defaults are part of the shader cache key in `shader_cache.rs` `build()`: `VICTORY_EARLY_DEPTH=1`, `VICTORY_NAN_SCRUB=1` and `VICTORY_BVH_MISS=1`. `victory shaders`, `victory warm` and `victory preload` run on their own did not apply them, so they translated and made pipelines under another key. A default `play` afterwards missed every translation and the driver compiled again during the start; on a new translator that can last long enough for the title's 30 s hang watchdog (`+0x23cf683`, see #628). These three commands now apply what a plain `play` applies, through the same `settings()` (defaults table plus `victory-settings.txt`). A variable already set in the environment is kept, so warming under another value still works. `play --preload` is unchanged: the `preload` it starts already has the start's environment. ## How it was tested - GPU and profile: RTX 4070 Ti SUPER 16 GB, 16 GB RAM, Windows 11, Series X profile, native 1440p, no DLSS or frame generation, default `play` - Before (our test queue runs `victory shaders` then `victory warm --used`, then `play`): `shaders from the cache and translated so far hits=0 misses=1709`, and some pipelines took 20-44 s to make during the start - After, this branch on main 568c5e5d, same sequence with none of the three variables set in the shell: `shaders` translated 25763 shaders fresh (116 s), then `play` logged `hits=1924 misses=0` and `host pipelines all made made=1621 loaded=1113` - Shader wave sizes: not touched - `cargo test`: not run for `apps/victory`; `cargo xwin check --workspace --all-targets` and clippy on `victory` pass ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #1001 (covers `warm` only and copies EARLY_DEPTH, AMBIENT_SPECULAR and WATER_LIGHT by hand, so it misses NAN_SCRUB and BVH_MISS; this one reuses `settings()` and covers `shaders`, `warm` and `preload`), #549 (closed)
davemathews12 commented 2026-11-30 06:03:20 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by davemathews12 on 2026-11-30T06:03:20Z.


This fixes a real problem. #3451 is full of people who ran victory.exe preload / warm by hand from a plain shell. Their caches are keyed without play's translator switches (VICTORY_BVH_MISS, VICTORY_NAN_SCRUB, VICTORY_EARLY_DEPTH, VICTORY_SAMPLED_MARKS are all named in the translator, so all are in translation_fingerprint), and the game then compiles everything again in play.

One interaction to guard against: the script launcher. scripts\play-foxhound.ps1 sets its own switch table, runs victory preload in that environment, and then starts the game with victory run. run doesn't call apply_defaults. Because apply_defaults fills in every play default the environment lacks, the launcher's preload would gain any translator switch that play sets and the launcher doesn't. Its cache would then no longer match the game the launcher starts.

That's already the case on main for VICTORY_SAMPLED_MARKS (and VICTORY_BVH_MISS / VICTORY_NAN_SCRUB until #3411 or #2722 lands). #3411 leaves SAMPLED_MARKS out of the launcher on purpose ("with them the save point took 2.7 GB more"), so the gap is meant to stay.

Suggestion: apply the defaults only when none of play's settings are in the environment. That is a command typed in a plain shell; the launcher, victory play and the F1 restart always set them. For example:

let (s, _) = settings(&Plain::parse_from(["play"]).play, &menu, None);
if s.keys().any(|k| std::env::var_os(k).is_some()) {
    return; // started by play or a launcher: its switches stand
}

With that, a hand-typed preload matches victory play, and a launcher's preload keeps matching the launcher's own game.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7270258715 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1971#issuecomment-7270258715). Originally posted by [davemathews12](https://github.com/davemathews12) on 2026-11-30T06:03:20Z. --- This fixes a real problem. #3451 is full of people who ran `victory.exe preload` / `warm` by hand from a plain shell. Their caches are keyed without play's translator switches (`VICTORY_BVH_MISS`, `VICTORY_NAN_SCRUB`, `VICTORY_EARLY_DEPTH`, `VICTORY_SAMPLED_MARKS` are all named in the translator, so all are in `translation_fingerprint`), and the game then compiles everything again in play. One interaction to guard against: **the script launcher.** `scripts\play-foxhound.ps1` sets its own switch table, runs `victory preload` in that environment, and then starts the game with `victory run`. `run` doesn't call `apply_defaults`. Because `apply_defaults` fills in every play default the environment lacks, the launcher's preload would gain any translator switch that play sets and the launcher doesn't. Its cache would then no longer match the game the launcher starts. That's already the case on `main` for `VICTORY_SAMPLED_MARKS` (and `VICTORY_BVH_MISS` / `VICTORY_NAN_SCRUB` until #3411 or #2722 lands). #3411 leaves `SAMPLED_MARKS` out of the launcher on purpose ("with them the save point took 2.7 GB more"), so the gap is meant to stay. Suggestion: apply the defaults only when **none** of play's settings are in the environment. That is a command typed in a plain shell; the launcher, `victory play` and the F1 restart always set them. For example: ```rust let (s, _) = settings(&Plain::parse_from(["play"]).play, &menu, None); if s.keys().any(|k| std::env::var_os(k).is_some()) { return; // started by play or a launcher: its switches stand } ``` With that, a hand-typed preload matches `victory play`, and a launcher's preload keeps matching the launcher's own game.
eleboucher commented 2026-11-30 07:08:33 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eleboucher on 2026-11-30T07:08:33Z.


Thanks, done as you suggested: apply_defaults now returns when any of play's settings is already in the environment, and otherwise fills them all. A hand-typed preload/warm/shaders gets play's keys; play, the F1 restart and play-foxhound.ps1 keep their own switch table, so the launcher's cache still matches the game it starts with victory run. Also merged main. The red check is main's own clippy errors (unwind_copy, victory-shader analysis.rs/native.rs), which #2048 clears.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7271401402 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1971#issuecomment-7271401402). Originally posted by [eleboucher](https://github.com/eleboucher) on 2026-11-30T07:08:33Z. --- Thanks, done as you suggested: `apply_defaults` now returns when any of play's settings is already in the environment, and otherwise fills them all. A hand-typed `preload`/`warm`/`shaders` gets play's keys; `play`, the F1 restart and `play-foxhound.ps1` keep their own switch table, so the launcher's cache still matches the game it starts with `victory run`. Also merged main. The red `check` is main's own clippy errors (`unwind_copy`, `victory-shader` analysis.rs/native.rs), which #2048 clears.
andrewpozdnakov7-jpg commented 2026-11-30 10:28:45 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-11-30T10:28:45Z.

Code review location: apps/victory/src/play.rs; line 1386

@@ -1366,6 +1366,34 @@ fn keep_ram() {
     }
 }
 
+/// What a plain `victory play` puts into the environment, for `shaders`, `warm` and
+/// `preload` run on their own: several of these switches are part of the shader cache
+/// key, so translations and pipelines made without them are not the ones a start looks for.
+/// Only for a command typed in a plain shell: when any of play's settings is already in
+/// the environment, `play`, the F1 restart or a launcher started it with its own switch
+/// table, and adding the ones it left out would key a cache that its game does not use
+/// (a launcher that starts the game with `victory run` may leave some out on purpose).
+pub(crate) fn apply_defaults() {
+    #[derive(clap::Parser)]
+    struct Plain {
+        #[command(flatten)]
+        play: Play,
+    }
+    use clap::Parser;
+    let Ok(home) = home() else { return };
+    let menu = parse_menu(&std::fs::read_to_string(home.join("victory-settings.txt")).unwrap_or_default());
+    let (s, _) = settings(&Plain::parse_from(["play"]).play, &menu, None);
+    if s.keys().any(|k| std::env::var_os(k).is_some()) {

#3884 reproduces on the exact release/main 41adb551. All four listed switches are present in play and in the cache-key path. I ran the production settings logic and shader_cache::translation() in separate Windows fixture processes. Play defaults Cache key inputs

Scenario Standalone preload key prefix Matching play key prefix
Main, clean environment 43ddf8eba9a8c027 01189934b9bc314f
#1971 a6e5ddb, clean environment 01189934b9bc314f 01189934b9bc314f
#1971, standalone shell with only VICTORY_EARLY_DEPTH=0 43ddf8eba9a8c027 125747ae336d4ee0

The last case exits here because one setting is present. The override survives, but NAN_SCRUB, SAMPLED_MARKS, and BVH_MISS remain unset. Its matching launch uses play --set VICTORY_EARLY_DEPTH=0 and has all three at 1.

I tested using the existing VICTORY_MENU_PLAY marker to recognize the two launchers' prepared environment, and filling only missing variables in a standalone shell. Clean preload still matches play. The single override now matches 125747ae336d4ee0. A launcher-marked child retains its deliberately partial table and the same key 8e34f419fb8fc944. The 28 existing play::tests passed. Script launcher marker

Could we use the launcher marker here, or have the existing launchers pass an explicit equivalent, so a standalone caller can keep one override and fill the remaining defaults? The fixture checked key equality. A gameplay preload run remains a separate check.

If you reuse this regression case or follow-up, please retain its authorship with Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:review-comment:4737831286 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1971#discussion_r4737831286). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-30T10:28:45Z. **Code review location:** `apps/victory/src/play.rs`; line 1386 ~~~~diff @@ -1366,6 +1366,34 @@ fn keep_ram() { } } +/// What a plain `victory play` puts into the environment, for `shaders`, `warm` and +/// `preload` run on their own: several of these switches are part of the shader cache +/// key, so translations and pipelines made without them are not the ones a start looks for. +/// Only for a command typed in a plain shell: when any of play's settings is already in +/// the environment, `play`, the F1 restart or a launcher started it with its own switch +/// table, and adding the ones it left out would key a cache that its game does not use +/// (a launcher that starts the game with `victory run` may leave some out on purpose). +pub(crate) fn apply_defaults() { + #[derive(clap::Parser)] + struct Plain { + #[command(flatten)] + play: Play, + } + use clap::Parser; + let Ok(home) = home() else { return }; + let menu = parse_menu(&std::fs::read_to_string(home.join("victory-settings.txt")).unwrap_or_default()); + let (s, _) = settings(&Plain::parse_from(["play"]).play, &menu, None); + if s.keys().any(|k| std::env::var_os(k).is_some()) { ~~~~ --- #3884 reproduces on the exact release/main `41adb551`. All four listed switches are present in `play` and in the cache-key path. I ran the production settings logic and `shader_cache::translation()` in separate Windows fixture processes. [Play defaults](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/41adb55167fa778fcaa5dc36fa18a1fa8dacd657/apps/victory/src/play.rs#L116-L130) [Cache key inputs](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/41adb55167fa778fcaa5dc36fa18a1fa8dacd657/crates/victory-gpu/src/shader_cache.rs#L122-L157) | Scenario | Standalone preload key prefix | Matching `play` key prefix | | --- | --- | --- | | Main, clean environment | `43ddf8eba9a8c027` | `01189934b9bc314f` | | #1971 `a6e5ddb`, clean environment | `01189934b9bc314f` | `01189934b9bc314f` | | #1971, standalone shell with only `VICTORY_EARLY_DEPTH=0` | `43ddf8eba9a8c027` | `125747ae336d4ee0` | The last case exits here because one setting is present. The override survives, but `NAN_SCRUB`, `SAMPLED_MARKS`, and `BVH_MISS` remain unset. Its matching launch uses `play --set VICTORY_EARLY_DEPTH=0` and has all three at `1`. I tested using the existing `VICTORY_MENU_PLAY` marker to recognize the two launchers' prepared environment, and filling only missing variables in a standalone shell. Clean preload still matches play. The single override now matches `125747ae336d4ee0`. A launcher-marked child retains its deliberately partial table and the same key `8e34f419fb8fc944`. The 28 existing `play::tests` passed. [Script launcher marker](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/41adb55167fa778fcaa5dc36fa18a1fa8dacd657/scripts/play-foxhound.ps1#L309-L311) Could we use the launcher marker here, or have the existing launchers pass an explicit equivalent, so a standalone caller can keep one override and fill the remaining defaults? The fixture checked key equality. A gameplay preload run remains a separate check. If you reuse this regression case or follow-up, please retain its authorship with `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>`.
eleboucher commented 2026-11-30 10:30:26 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eleboucher on 2026-11-30T10:30:26Z.

Code review location: apps/victory/src/play.rs; line 1386

@@ -1366,6 +1366,34 @@ fn keep_ram() {
     }
 }
 
+/// What a plain `victory play` puts into the environment, for `shaders`, `warm` and
+/// `preload` run on their own: several of these switches are part of the shader cache
+/// key, so translations and pipelines made without them are not the ones a start looks for.
+/// Only for a command typed in a plain shell: when any of play's settings is already in
+/// the environment, `play`, the F1 restart or a launcher started it with its own switch
+/// table, and adding the ones it left out would key a cache that its game does not use
+/// (a launcher that starts the game with `victory run` may leave some out on purpose).
+pub(crate) fn apply_defaults() {
+    #[derive(clap::Parser)]
+    struct Plain {
+        #[command(flatten)]
+        play: Play,
+    }
+    use clap::Parser;
+    let Ok(home) = home() else { return };
+    let menu = parse_menu(&std::fs::read_to_string(home.join("victory-settings.txt")).unwrap_or_default());
+    let (s, _) = settings(&Plain::parse_from(["play"]).play, &menu, None);
+    if s.keys().any(|k| std::env::var_os(k).is_some()) {

Thanks, that is the better rule; done in 8b5d771d following your suggestion (credit for the regression case and the marker idea is yours): apply_defaults returns when VICTORY_MENU_PLAY is set (play/F1 restart set it at play.rs:1149, play-foxhound.ps1 at line 310), and otherwise fills only the variables the shell did not set. So a clean standalone preload keys like play, a standalone shell with one override keeps it and gets the other defaults, and a launcher-marked child keeps its own table. victory clippy is clean here; I have not re-run your key fixture.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:review-comment:4737851198 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1971#discussion_r4737851198). Originally posted by [eleboucher](https://github.com/eleboucher) on 2026-11-30T10:30:26Z. **Code review location:** `apps/victory/src/play.rs`; line 1386 ~~~~diff @@ -1366,6 +1366,34 @@ fn keep_ram() { } } +/// What a plain `victory play` puts into the environment, for `shaders`, `warm` and +/// `preload` run on their own: several of these switches are part of the shader cache +/// key, so translations and pipelines made without them are not the ones a start looks for. +/// Only for a command typed in a plain shell: when any of play's settings is already in +/// the environment, `play`, the F1 restart or a launcher started it with its own switch +/// table, and adding the ones it left out would key a cache that its game does not use +/// (a launcher that starts the game with `victory run` may leave some out on purpose). +pub(crate) fn apply_defaults() { + #[derive(clap::Parser)] + struct Plain { + #[command(flatten)] + play: Play, + } + use clap::Parser; + let Ok(home) = home() else { return }; + let menu = parse_menu(&std::fs::read_to_string(home.join("victory-settings.txt")).unwrap_or_default()); + let (s, _) = settings(&Plain::parse_from(["play"]).play, &menu, None); + if s.keys().any(|k| std::env::var_os(k).is_some()) { ~~~~ --- Thanks, that is the better rule; done in 8b5d771d following your suggestion (credit for the regression case and the marker idea is yours): `apply_defaults` returns when `VICTORY_MENU_PLAY` is set (`play`/F1 restart set it at play.rs:1149, `play-foxhound.ps1` at line 310), and otherwise fills only the variables the shell did not set. So a clean standalone preload keys like `play`, a standalone shell with one override keeps it and gets the other defaults, and a launcher-marked child keeps its own table. `victory` clippy is clean here; I have not re-run your key fixture.
andrewpozdnakov7-jpg commented 2026-11-30 10:35:46 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-11-30T10:35:46Z.

Code review location: apps/victory/src/play.rs; line 1386

@@ -1366,6 +1366,34 @@ fn keep_ram() {
     }
 }
 
+/// What a plain `victory play` puts into the environment, for `shaders`, `warm` and
+/// `preload` run on their own: several of these switches are part of the shader cache
+/// key, so translations and pipelines made without them are not the ones a start looks for.
+/// Only for a command typed in a plain shell: when any of play's settings is already in
+/// the environment, `play`, the F1 restart or a launcher started it with its own switch
+/// table, and adding the ones it left out would key a cache that its game does not use
+/// (a launcher that starts the game with `victory run` may leave some out on purpose).
+pub(crate) fn apply_defaults() {
+    #[derive(clap::Parser)]
+    struct Plain {
+        #[command(flatten)]
+        play: Play,
+    }
+    use clap::Parser;
+    let Ok(home) = home() else { return };
+    let menu = parse_menu(&std::fs::read_to_string(home.join("victory-settings.txt")).unwrap_or_default());
+    let (s, _) = settings(&Plain::parse_from(["play"]).play, &menu, None);
+    if s.keys().any(|k| std::env::var_os(k).is_some()) {

Retested the exact updated head 8b5d771d on Windows. All five fixture processes produced the expected keys. Clean preload and play both used 01189934b9bc314f. With only VICTORY_EARLY_DEPTH=0, preload and the matching play launch both used 125747ae336d4ee0. The launcher-marked child kept its partial environment and 8e34f419fb8fc944.

This resolves the environment-override case I raised. Thanks for the update.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:review-comment:4737935839 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1971#discussion_r4737935839). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-30T10:35:46Z. **Code review location:** `apps/victory/src/play.rs`; line 1386 ~~~~diff @@ -1366,6 +1366,34 @@ fn keep_ram() { } } +/// What a plain `victory play` puts into the environment, for `shaders`, `warm` and +/// `preload` run on their own: several of these switches are part of the shader cache +/// key, so translations and pipelines made without them are not the ones a start looks for. +/// Only for a command typed in a plain shell: when any of play's settings is already in +/// the environment, `play`, the F1 restart or a launcher started it with its own switch +/// table, and adding the ones it left out would key a cache that its game does not use +/// (a launcher that starts the game with `victory run` may leave some out on purpose). +pub(crate) fn apply_defaults() { + #[derive(clap::Parser)] + struct Plain { + #[command(flatten)] + play: Play, + } + use clap::Parser; + let Ok(home) = home() else { return }; + let menu = parse_menu(&std::fs::read_to_string(home.join("victory-settings.txt")).unwrap_or_default()); + let (s, _) = settings(&Plain::parse_from(["play"]).play, &menu, None); + if s.keys().any(|k| std::env::var_os(k).is_some()) { ~~~~ --- Retested the exact updated head `8b5d771d` on Windows. All five fixture processes produced the expected keys. Clean preload and play both used `01189934b9bc314f`. With only `VICTORY_EARLY_DEPTH=0`, preload and the matching play launch both used `125747ae336d4ee0`. The launcher-marked child kept its partial environment and `8e34f419fb8fc944`. This resolves the environment-override case I raised. Thanks for the update.
eleboucher commented 2026-11-30 14:58:20 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eleboucher on 2026-11-30T14:58:20Z.


Merged main (c71899d9), no conflicts. Main already carries apply_defaults and its call, so this PR's diff is now only the VICTORY_MENU_PLAY early return in play.rs. apply_defaults reads play's current SETTINGS, so the 14 entries c71899d9 turned on are covered; none of them is in the translation cache key. Windows cargo xwin check -p victory (with and without diagnostics) passes; the play:: and warm:: tests pass on Windows.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7282222224 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1971#issuecomment-7282222224). Originally posted by [eleboucher](https://github.com/eleboucher) on 2026-11-30T14:58:20Z. --- Merged main (c71899d9), no conflicts. Main already carries `apply_defaults` and its call, so this PR's diff is now only the `VICTORY_MENU_PLAY` early return in play.rs. `apply_defaults` reads play's current `SETTINGS`, so the 14 entries c71899d9 turned on are covered; none of them is in the translation cache key. Windows `cargo xwin check -p victory` (with and without diagnostics) passes; the play:: and warm:: tests pass on Windows.
andrewpozdnakov7-jpg commented 2026-11-30 15:34:48 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-11-30T15:34:48Z.


I reran the five Windows cache-key scenarios on release main c71899d and the exact PR head 2c45596. The fixture uses the launcher defaults and the production shader translation key.

Scenario Release main This PR
Clean shell: preload and play Both 8e237e33026210df Both 8e237e33026210df
Standalone VICTORY_EARLY_DEPTH=0: preload and play Both d9b08adeabe58304 Both d9b08adeabe58304
Prepared launcher with VICTORY_MENU_PLAY and SAMPLED_MARKS absent Preload adds SAMPLED_MARKS=1, key d9b08adeabe58304 Preload leaves it absent, key b5e4de90a09821ac

The remaining guard in this PR fixes the prepared-launcher case on release main. Standalone commands still fill in missing defaults and preserve explicit overrides. The scoped Windows test runs on the PR passed 29 launcher tests and 12 warm-up tests.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7283227327 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1971#issuecomment-7283227327). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-30T15:34:48Z. --- I reran the five Windows cache-key scenarios on release main `c71899d` and the exact PR head `2c45596`. The fixture uses the launcher defaults and the production shader translation key. | Scenario | Release main | This PR | | --- | --- | --- | | Clean shell: preload and play | Both `8e237e33026210df` | Both `8e237e33026210df` | | Standalone `VICTORY_EARLY_DEPTH=0`: preload and play | Both `d9b08adeabe58304` | Both `d9b08adeabe58304` | | Prepared launcher with `VICTORY_MENU_PLAY` and `SAMPLED_MARKS` absent | Preload adds `SAMPLED_MARKS=1`, key `d9b08adeabe58304` | Preload leaves it absent, key `b5e4de90a09821ac` | The remaining guard in this PR fixes the prepared-launcher case on release main. Standalone commands still fill in missing defaults and preserve explicit overrides. The scoped Windows test runs on the PR passed 29 launcher tests and 12 warm-up tests.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1971:upstream-pr/1971'
git switch 'upstream-pr/1971'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1971'
git switch 'upstream-pr/1971'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1971'
git switch 'upstream-pr/1971'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1971'
git switch 'main'
git merge --squash 'upstream-pr/1971'
git switch 'main'
git merge --ff-only 'upstream-pr/1971'
git switch 'main'
git merge 'upstream-pr/1971'
git push origin 'main'
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!1971
No description provided.