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
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#4067
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 thevictory preloadthatplay-foxhound.ps1 -Preloadruns) are not found whenplay-foxhound.ps1then 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 putvictory play's defaults (SETTINGSinplay.rs) into their environment where a variable is not set. Three of those defaults are in the translation key (KEYEDinshader_cache.rs):VICTORY_BVH_MISS=1,VICTORY_NAN_SCRUB=1andVICTORY_SAMPLED_MARKS=1.play-foxhound.ps1does not set them, and it starts the game withvictory run, which does not applyplay'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-clickPLAY_FRAMEGEN.cmdandPLAY_FACES_FIX.cmd(play-gta6-framegen.ps1→play-foxhound.ps1) with the preload or-WarmUsed.Play-MyRig.cmd(play-rig.ps1) startsvictory playand 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):c71899d9) + local commitsvictory shaders(all 25,789 translated afresh, 42 s; 196 do not translate), thenvictory warm --used(3,167 pipelines)38671a8bOur starts set what
play-foxhound.ps1sets (the switch list its log writes on its first line) and runvictory run <game> --console series-x --execute, as the script does. Our local commits do not touchplay.rs,main.rsor 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()forShaders,WarmandPreload.apps/victory/src/play.rs:116, 119, 130:("VICTORY_BVH_MISS", "1"),("VICTORY_NAN_SCRUB", "1"),("VICTORY_SAMPLED_MARKS", "1")inSETTINGS.crates/victory-gpu/src/shader_cache.rs:87, 89, 103: the same three inKEYED.append_setting_valuetells 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)
play.rsfor 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.play-foxhound.ps1tell the commands not to applyplay's defaults, for example a variable the script sets thatapply_defaultsrespects. 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
@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.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@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_defaultsrespects) is exactly theVICTORY_MENU_PLAYearly-return guard in open PR #1971; option 1 (script table matchingplay.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 thevictory runkey identical. (AI-assisted: Hy4 flash; no game data.)@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 fullvictory 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.
@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\logsandcrashes.log).