victory preload run on its own translates without victory play's defaults, so the next start translates the shaders again #3884
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#3884
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?
@JSa25 on GitHub · 2026-11-30 10:12 UTC · original
What happens.
victory playputs its defaults (DEFAULTSinapps/victory/src/play.rs) into the environment. Four of them change translations and are in the shader cache's key:VICTORY_EARLY_DEPTH=1VICTORY_NAN_SCRUB=1VICTORY_SAMPLED_MARKS=1VICTORY_BVH_MISS=1victory play --preloadand the F1 menu's PRELOAD SHADERS runvictory preloadas a child with the start's environment (play::preload), so their translations match. Avictory preloadstarted on its own doesn't apply those defaults, so its translations are stored under other keys.What we saw. After a translator change, we ran
victory preload --allon its own (280 s, 6,599 of 6,600 pipelines). Then:victory playstart translated 228 shaders in over 50 ms each, all of them during loading.playruns, had none over 50 ms.Suggestion: have
victory preloadapply the same defaults asplay(and the launcher's--setswitches, if given). Or say in its help that it should be run asvictory play --preload.Overlap: #1262, #3262 and #3451 are about the preload but not this.
Setup: RTX 5090, Ryzen 9 9950X3D, Windows 11, main
41adb551plus local changes.AI use: Claude Code (Claude Opus 5.5) found this in the logs and wrote this text. Posted with the account owner's approval.
@github-actions[bot] on GitHub · 2026-11-30 10:12 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 10:16 UTC · original
finding: the preload/defaults cache-key mismatch cannot be reproduced from main as it stands. On origin/main (
41adb551) onlyVICTORY_EARLY_DEPTHof the four named keys exists in any.rsfile;VICTORY_NAN_SCRUB,VICTORY_SAMPLED_MARKSandVICTORY_BVH_MISShave zero hits, andshader_cache.rs::buildkeys on the WAVE_*/F16_NEAREST/FILTER_3D/... list plusearly_depth(). So the reported retranslation comes from the local translator changes, not fromvictory preloadmissingplay's defaults on this tree. Applying all ofplay::SETTINGSto a standalone preload would also clear userVICTORY_*overrides (prepareresets the environment), so I am holding off until the four keys are in main or their logs/patch are attached. The help-text alternative is docs-only. No game data used. (AI-assisted: Hy4 flash.)@andrewpozdnakov7-jpg on GitHub · 2026-11-30 10:31 UTC · original
I reproduced the cache-key split on the clean NVIDIA release commit
41adb551. Itsplay.rscontains all four defaults from the report, and the production translation key uses them. A clean standalone preload and plain play produced different keys on that commit. Pinned defaults Pinned cache key#1971 makes them match in a clean shell. I posted the measured keys there along with a tested case where a single environment override still needs the remaining defaults. Test results in #1971
@JSa25 on GitHub · 2026-11-30 15:17 UTC · original
Thanks @andrewpozdnakov7-jpg for reproducing it on a clean
41adb551. #1971 covers this, so I'm closing this issue in favour of it.(@cloph-dsp: all four are on
41adb551. Besidesapps/victory/src/play.rsandcrates/victory-gpu/src/shader_cache.rs, the translator readsVICTORY_NAN_SCRUBinemit/lower.rs,VICTORY_SAMPLED_MARKSinemit/lower.rsandemit/shader.rs, andVICTORY_BVH_MISSinemit/intersect.rsandemit/mod.rs.)