perf(launcher): restrict warm-state fingerprint to shader-cache variables #434
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!434
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-434"
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?
@mauroalvare on GitHub · 2026-11-26 18:43 UTC · original
mauroalvare:perf/launcher-warm-state-cache-keys→main· +221 −16 · 1 files · 5 commits · openChange
Restricts
warm_state::env_key()incrates/anyxboxx-launcher/src/warm_state.rsto theVICTORY_*variables that actually affectvictory warm(basec3cc029).Previously,
warm_state::env_key()excluded onlyVICTORY_GAME_DIRandVICTORY_LOGand hashed every otherVICTORY_*variable intowarm-state.txt. As a result, changing any runtime-only Play-page option — Resolution (VICTORY_DISPLAY_MODE), Windowed/Borderless (VICTORY_WINDOW_MODE), Keyboard layout (VICTORY_KEYBOARD), Stats overlay (VICTORY_OVERLAY), Auto-A (VICTORY_AUTO_A), Frametime CSV (VICTORY_FRAMETIME_DUMP), Preset (Fast/Quality/12 GB card/8 GB card), XG library (VICTORY_XG_DLL,VICTORY_XG_MODE), or non-shader runtime switches likeVICTORY_RELAY— changed the smart-warm fingerprint and forced a redundant ~7-minutevictory warmpass on the next launch, even though VIctory's shader cache key (shader_cache::build+victory_shader::emit::translation_fingerprint) and compute pipeline warm filters (pipeline/make.rs::left_out) were identical.What changed:
warm_state::env_key()now hashes onlyVICTORY_*keys that can changevictory warm's output:VICTORY_CACHE_DIR,VICTORY_CONFIG,VICTORY_SHADER_CACHE_KEY),VICTORY_ACTIVATE_RAYS,VICTORY_BVH_BUILDER,VICTORY_RT_RESOLVE,VICTORY_SKIP_PIPELINES),VICTORY_HOST_MAX_WAVE,VICTORY_HOST_WAVE,VICTORY_VIEW_LIMIT,VICTORY_WARP),third_party/victory/crates/victory-shader/src.warm_state::tests::every_shader_translator_switch_is_in_the_warm_key, which scansthird_party/victory/crates/victory-shader/src(following the same pattern asoptions::tests::every_variable_an_option_names_exists_in_victorys_sources) so any future shader translator switch added to VIctory cannot be missed.Linked issue: N/A
Verification
Base reproduction (
c3cc029, before the fix):After the fix:
Note:
detached::tests::sleeperis the launcher's helper test marked#[ignore]. Pure CPU launcher unit tests on Windows x64 (Ryzen 7 9700X, RTX 5070 Ti, 32 GB RAM).Oracle and test data
New unit tests in
crates/anyxboxx-launcher/src/warm_state.rsuse synthetic temporary directories and checkfingerprintacross Play-page runtime options, presets (Quality,MidVram,LowVram), and real cache-affecting switches (VICTORY_SHADER_OPT,VICTORY_RT_RESOLVE,VICTORY_CACHE_DIR,VICTORY_SKIP_PIPELINES), plus a source check againstthird_party/victory/crates/victory-shader/src. Fails on basec3cc029and passes with this change. No game, console, or SDK files were used.Checklist
E_NOTIMPL), never a fake success.test_readme_sync.pychecks it).AGENTS.mdallows (names, slots, argument shapes, flag values, HRESULTs, IIDs, counts), with how they were obtained; no address or RVA.THIRD_PARTY.md.Made with AI assistance (Antigravity).
ac568c361bto34d23eacf0perf(launcher): restrict warm-state fingerprint to shader-cache variablesto perf(launcher): key shader precompilation on cache-relevant settingsperf(launcher): key shader precompilation on cache-relevant settingsto perf(launcher): restrict warm-state fingerprint to shader-cache variables34d23eacf0to488ad7401d@LooperSalty on GitHub · 2026-11-26 23:21 UTC · original
Thanks! After #454 moved
third_party/victoryto the Vice-Tay base, this PR's own test (every_shader_translator_switch_is_in_the_warm_key) fails in CI: eleven translator switches of the new base are missing fromCACHE_KEYS. Adding them makes the test pass locally (17/17 inwarm_state):VICTORY_WAVE_WIDE_ONLYmatters most:anyxboxx runsets it now. Could you add them after"VICTORY_WAVE_WIDE",? Then it is ready to merge.🤖 Review by Claude Code on behalf of the maintainer
@mauroalvare on GitHub · 2026-11-26 23:37 UTC · original
Thanks for updating the branch against #454 and checking the new switch set.
488ad74includes the Vice-Tay options that affect warming, includingVICTORY_WAVE_WIDE_ONLY, and usesVICTORY_SHADER_KEYfor the cache mode.VICTORY_WAVE_DUMPonly emits diagnostics, so its value stays out of the fingerprint. All 17 warm-state tests passed locally.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.