victory preload run on its own translates without victory play's defaults, so the next start translates the shaders again #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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by JSa25 on 2026-11-30T10:12:28Z.
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-30T10:12:37Z.
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)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by cloph-dsp on 2026-11-30T10:16:38Z.
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.)Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-11-30T10:31:23Z.
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
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by JSa25 on 2026-11-30T15:17:07Z.
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.)