fix(warm): inherit victory-settings.txt and play shader defaults #1001
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1001"
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 adwen-007 on 2026-11-28T10:57:07Z.
Problem
victory playautomatically sets shader-affecting defaults such asVICTORY_EARLY_DEPTH=1and loadsvictory-settings.txt(which may setVICTORY_AMBIENT,VICTORY_NAN_SCRUB=1, etc.), all of which are hashed into the shader cache key (shader_cache.rs).victory warmdoes not set those defaults or readvictory-settings.txt, so runningvictory warm --usedwarms all pipelines under a different cache key. On the nextvictory playlaunch, hundreds of pipelines miss the cache and compile live during gameplay ((761 being made)-> single-digit FPS).Fix
warm::run(before spawning worker processes), load unsetVICTORY_*values fromvictory-settings.txt(VICTORY_MENU_FILE/VICTORY_HOME/%LOCALAPPDATA%\victory\victory-settings.txt) and apply theplayshader defaults (VICTORY_EARLY_DEPTH=1,VICTORY_AMBIENT_SPECULAR=1,VICTORY_WATER_LIGHT=1) without overriding any env vars explicitly set by the caller.Verification
victory.exe warm --usednow logsVICTORY_EARLY_DEPTH=1, warms 4,542/4,542 used pipelines under the exactplaycache key, and subsequent gameplay starts with0 being made.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eleboucher on 2026-11-29T04:57:33Z.
Related: #1971 does the same for
shaders,warmandpreloadby calling play's ownsettings()instead of copying defaults. That also coversVICTORY_NAN_SCRUBandVICTORY_BVH_MISS, which are in the shader cache key and are not in this PR's list. Measured on an RTX 4070 Ti SUPER: before,hits=0 misses=1709aftershaders+warm --used; after,hits=1924 misses=0.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by adwen-007 on 2026-12-01T14:43:33Z.
Closing as superseded by #1971 and #4067, which reuse play's own settings() directly and cover all keyed shader settings including VICTORY_NAN_SCRUB and VICTORY_BVH_MISS. Thanks!
Pull request closed