warm: --import another install's pipeline book (keeps every pipeline across builds/forks) #99
No reviewers
Labels
No labels
accessibility
bug
crash
documentation
duplicate
enhancement
good first issue
graphics
help wanted
invalid
needs logs
performance
question
rdna2
rdna3
rdna4
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/eikkapine--victory-amd!99
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-99"
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?
@don-ous on GitHub · 2026-12-01 11:39 UTC · original
don-ous:warm-import→main· +221 −2 · 4 files · 23 commits · closed without mergingWhy
Most of the stutter is pipelines built the first time a place is seen.
victory warmfixes that, but only for pipelines this install has already met. People hop between builds and forks a lot. Each new install starts with an empty book and stutters for hours again, even though the previous install's book already knew those pipelines.The book holds the title's own records (key, shader stages and hashes, graphics state, shader containers). It means the same in any build. I checked that VIctory-NVIDIA's and victory-amd's books have the same format and identical records for the shaders both had. Merging VIctory-NVIDIA's book by hand gave about 10k extra pipelines here. After a full warm (93,854 pipelines), the freezes went from constant to rare.
Full setup guide and measurements from my PC (frame generation 23 → 50 fps on screen, full warm, freezes from constant to rare): #97
What
victory warm --import <FOLDER>cache\pipelines.--limit 0only imports.How it behaves
walk_shaders,walk_pipelinesandappend_bytes(known::import).Tests
apps/victory/tests/warm_import.rscovers a torn end, an early list without a final newline, a second import, and the refusals.warm_badstill passes.Checks
cargo build --release --locked -p victory: no new warnings.cargo test --release -p victory --test warm_import --test warm_bad: both pass.warm.rs/known.rs, for a different thing (--library). The two do not overlap in logic, and I will rebase on whichever lands first.A launcher button ("Import shaders…" with a folder picker) could follow. I left the UI to you, since the button row is full.
🤖 Generated with Claude Code
Pull request closed