play-foxhound.ps1's preload and warm-up translate under a key its game start never asks for (VICTORY_BVH_MISS, NAN_SCRUB, SAMPLED_MARKS since 38671a8b) #4067

Closed
opened 2026-11-30 15:35:23 +00:00 by github-bot · 4 comments
Owner

@⁠HQasper on GitHub · 2026-11-30 15:29 UTC · original

What you see

Shaders translated ahead of the game (victory shaders, victory warm --used, or the victory preload that play-foxhound.ps1 -Preload runs) are not found when play-foxhound.ps1 then starts the game. The first start translates every shader it meets again, and the driver builds those pipelines again during play.

Since 38671a8b ("Launcher: shaders, warm and preload run on their own apply the defaults play applies", from #1971), those three commands put victory play's defaults (SETTINGS in play.rs) into their environment where a variable is not set. Three of those defaults are in the translation key (KEYED in shader_cache.rs): VICTORY_BVH_MISS=1, VICTORY_NAN_SCRUB=1 and VICTORY_SAMPLED_MARKS=1. play-foxhound.ps1 does not set them, and it starts the game with victory run, which does not apply play's defaults. So the preload or warm-up runs under one key and the game under another. (VICTORY_EARLY_DEPTH, the third switch #1971 names, matches: the script sets it.)

#1971 fixed this for victory play, which now matches what the commands prepare. For the script launcher it turned the gap around. This reaches the one-click PLAY_FRAMEGEN.cmd and PLAY_FACES_FIX.cmd (play-gta6-framegen.ps1 → play-foxhound.ps1) with the preload or -WarmUsed. Play-MyRig.cmd (play-rig.ps1) starts victory play and is not affected.

Measured (the counter the game logs, shaders from the cache and translated so far; the same exe, cache folder and switches file for all of these):

Build Prepared with Start with the script's switches Counter at the end
v2026.11.30.01 (c71899d9) + local commits victory shaders (all 25,789 translated afresh, 42 s; 196 do not translate), then victory warm --used (3,167 pipelines) the first hits=0 misses=3,285
the same exe nothing more the next with the same switches hits=3,235 misses=0
three of our builds of 2026-11-29, before 38671a8b the same two commands, each translated afresh (34-35 s) the first of each hits=3,625 misses=0

Our starts set what play-foxhound.ps1 sets (the switch list its log writes on its first line) and run victory run <game> --console series-x --execute, as the script does. Our local commits do not touch play.rs, main.rs or the scripts. They add keyed switches of their own, which are set the same for the commands and the game.

Where in the code (c71899d9)

  • apps/victory/src/main.rs:650: play::apply_defaults() for Shaders, Warm and Preload.
  • apps/victory/src/play.rs:116, 119, 130: ("VICTORY_BVH_MISS", "1"), ("VICTORY_NAN_SCRUB", "1"), ("VICTORY_SAMPLED_MARKS", "1") in SETTINGS.
  • crates/victory-gpu/src/shader_cache.rs:87, 89, 103: the same three in KEYED. append_setting_value tells an absent variable from any value, so setting them empty does not get the key the game uses.
  • scripts/play-foxhound.ps1: none of the three in its table; the game starts with "%VFG_BIN%" run ... (line 432); the preload is & $victory preload ... and the warm-up & $victory warm --used.

Possible fixes (for whoever picks it up)

  • Make the script's table match play.rs for the keyed switches. #2722 (draft, stacked on #2718) does that for these three and adds a parity test; its note measured -1.57 fps on an RTX 2060 SUPER for the visual defaults it aligns, so the keyed ones might go in on their own.
  • Or have play-foxhound.ps1 tell the commands not to apply play's defaults, for example a variable the script sets that apply_defaults respects. A script that sets every switch itself then keeps one key for both.

GPU and driver

NVIDIA GeForce RTX 5090, driver 621.24.

CPU, RAM and Windows version

AMD Ryzen 9 9950X3D, 64 GB, Windows 11 Pro.

(The counter is the game's own log line shaders from the cache and translated so far, printed at frames 256, 512, 1024 and on; the last one printed is given.)

VIctory release or commit

v2026.11.30.01 (c71899d9) with local commits. The code path is upstream's alone.

Settings

Series X, 1440p, DLSS Quality, no frame generation, ray tracing off.

#1971 (the change), #2722 (the parity PR), #2323 (launcher desync), #3548 (a custom launcher that started victory run, whose preload warmed nothing).


🤖 Generated with Claude Code

**@⁠HQasper** on GitHub · 2026-11-30 15:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4067) ### What you see Shaders translated ahead of the game (`victory shaders`, `victory warm --used`, or the `victory preload` that `play-foxhound.ps1 -Preload` runs) are not found when `play-foxhound.ps1` then starts the game. The first start translates every shader it meets again, and the driver builds those pipelines again during play. Since 38671a8b ("Launcher: shaders, warm and preload run on their own apply the defaults play applies", from #1971), those three commands put `victory play`'s defaults (`SETTINGS` in `play.rs`) into their environment where a variable is not set. Three of those defaults are in the translation key (`KEYED` in `shader_cache.rs`): `VICTORY_BVH_MISS=1`, `VICTORY_NAN_SCRUB=1` and `VICTORY_SAMPLED_MARKS=1`. `play-foxhound.ps1` does not set them, and it starts the game with `victory run`, which does not apply `play`'s defaults. So the preload or warm-up runs under one key and the game under another. (`VICTORY_EARLY_DEPTH`, the third switch #1971 names, matches: the script sets it.) #1971 fixed this for `victory play`, which now matches what the commands prepare. For the script launcher it turned the gap around. This reaches the one-click `PLAY_FRAMEGEN.cmd` and `PLAY_FACES_FIX.cmd` (`play-gta6-framegen.ps1` → `play-foxhound.ps1`) with the preload or `-WarmUsed`. `Play-MyRig.cmd` (`play-rig.ps1`) starts `victory play` and is not affected. **Measured** (the counter the game logs, `shaders from the cache and translated so far`; the same exe, cache folder and switches file for all of these): | Build | Prepared with | Start with the script's switches | Counter at the end | |---|---|---|---| | v2026.11.30.01 (c71899d9) + local commits | `victory shaders` (all 25,789 translated afresh, 42 s; 196 do not translate), then `victory warm --used` (3,167 pipelines) | the first | **hits=0 misses=3,285** | | the same exe | nothing more | the next with the same switches | hits=3,235 misses=0 | | three of our builds of 2026-11-29, before 38671a8b | the same two commands, each translated afresh (34-35 s) | the first of each | hits=3,625 misses=0 | Our starts set what `play-foxhound.ps1` sets (the switch list its log writes on its first line) and run `victory run <game> --console series-x --execute`, as the script does. Our local commits do not touch `play.rs`, `main.rs` or the scripts. They add keyed switches of their own, which are set the same for the commands and the game. ### Where in the code (c71899d9) - `apps/victory/src/main.rs:650`: `play::apply_defaults()` for `Shaders`, `Warm` and `Preload`. - `apps/victory/src/play.rs:116, 119, 130`: `("VICTORY_BVH_MISS", "1")`, `("VICTORY_NAN_SCRUB", "1")`, `("VICTORY_SAMPLED_MARKS", "1")` in `SETTINGS`. - `crates/victory-gpu/src/shader_cache.rs:87, 89, 103`: the same three in `KEYED`. `append_setting_value` tells an absent variable from any value, so setting them empty does not get the key the game uses. - `scripts/play-foxhound.ps1`: none of the three in its table; the game starts with `"%VFG_BIN%" run ...` (line 432); the preload is `& $victory preload ...` and the warm-up `& $victory warm --used`. ### Possible fixes (for whoever picks it up) - Make the script's table match `play.rs` for the keyed switches. #2722 (draft, stacked on #2718) does that for these three and adds a parity test; its note measured -1.57 fps on an RTX 2060 SUPER for the visual defaults it aligns, so the keyed ones might go in on their own. - Or have `play-foxhound.ps1` tell the commands not to apply `play`'s defaults, for example a variable the script sets that `apply_defaults` respects. A script that sets every switch itself then keeps one key for both. ### GPU and driver NVIDIA GeForce RTX 5090, driver 621.24. ### CPU, RAM and Windows version AMD Ryzen 9 9950X3D, 64 GB, Windows 11 Pro. (The counter is the game's own log line `shaders from the cache and translated so far`, printed at frames 256, 512, 1024 and on; the last one printed is given.) ### VIctory release or commit v2026.11.30.01 (c71899d9) with local commits. The code path is upstream's alone. ### Settings Series X, 1440p, DLSS Quality, no frame generation, ray tracing off. ### Related #1971 (the change), #2722 (the parity PR), #2323 (launcher desync), #3548 (a custom launcher that started `victory run`, whose preload warmed nothing). --- 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 15:35:23 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-30 15:29 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-30 15:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4067#issuecomment-7283084693) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠cloph-dsp on GitHub · 2026-11-30 15:31 UTC · original

finding: source-level and synthetic-testable, but both fixes you list are already in flight and the choice is a maintainer contract call. Option 2 (a script-set variable apply_defaults respects) is exactly the VICTORY_MENU_PLAY early-return guard in open PR #1971; option 1 (script table matching play.rs) is draft PR #2722, already CONFLICTING/DIRTY with 3 files +383/-161 and a parity guard. Implementing either here would collide with one of those. Holding off until the maintainer picks which contract keeps the preload key and the victory run key identical. (AI-assisted: Hy4 flash; no game data.)

**@⁠cloph-dsp** on GitHub · 2026-11-30 15:31 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4067#issuecomment-7283137698) finding: source-level and synthetic-testable, but both fixes you list are already in flight and the choice is a maintainer contract call. Option 2 (a script-set variable `apply_defaults` respects) is exactly the `VICTORY_MENU_PLAY` early-return guard in open PR #1971; option 1 (script table matching `play.rs`) is draft PR #2722, already CONFLICTING/DIRTY with 3 files +383/-161 and a parity guard. Implementing either here would collide with one of those. Holding off until the maintainer picks which contract keeps the preload key and the `victory run` key identical. (AI-assisted: Hy4 flash; no game data.)
Author
Owner

@⁠HQasper on GitHub · 2026-11-30 15:38 UTC · original

Not a crash, so there is no crash log or crashes.log: the game runs normally, it just translates shaders the preload did not prepare. The evidence is the game's own counter line, shaders from the cache and translated so far, in the run's stderr log (hits=0 misses=3,285 on the first start after a full victory shaders). Those lines are quoted in the issue body.

GPU and Windows are in the issue: RTX 5090, driver 621.24, Windows 11 Pro.

If it helps, I can attach the stderr logs of the two runs (before and after the key matches). Say which you want.

**@⁠HQasper** on GitHub · 2026-11-30 15:38 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4067#issuecomment-7283341951) Not a crash, so there is no crash log or `crashes.log`: the game runs normally, it just translates shaders the preload did not prepare. The evidence is the game's own counter line, `shaders from the cache and translated so far`, in the run's stderr log (hits=0 misses=3,285 on the first start after a full `victory shaders`). Those lines are quoted in the issue body. GPU and Windows are in the issue: RTX 5090, driver 621.24, Windows 11 Pro. If it helps, I can attach the stderr logs of the two runs (before and after the key matches). Say which you want.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-30 16:38 UTC · original

This should be fixed in v2026.11.30.02. If it still happens on the latest version, please open a new issue with the logs from a run on that version (the play log from %LOCALAPPDATA%\victory\logs and crashes.log).

**@⁠trustno1-coder** on GitHub · 2026-11-30 16:38 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4067#issuecomment-7285009512) This should be fixed in [v2026.11.30.02](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.30.02). If it still happens on the latest version, please open a new issue with the logs from a run on that version (the play log from `%LOCALAPPDATA%\victory\logs` and `crashes.log`).
This discussion has been locked. Commenting is limited to contributors.
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#4067
No description provided.