perf(gpu): memoize shared shader containers during known pipeline prewarm #627
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!627
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-627"
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?
@chefulano on GitHub · 2026-12-05 20:27 UTC · original
chefulano:perf/warm-memoize-shaders→main· +52 −9 · 2 files · 1 commits · openDuring
victory warm,pipeline::known::make()re-reads and re-hashes the same shared shader container bytes from disk for every pipeline that references a given(stage, hash)pair.This change memoizes resolved
Arc<Shader>containers per(stage_idx, hash)insideknown::make()and addspipeline::shader_hashed()so each unique shader container is read from disk and hashed once per prewarm pass instead of once per pipeline entry.Ported cleanly from
gamingwithhomie/larp(PR #29).Queue check
apps/victory/src/warm.rsCLI flags and route filtering; this PR touches onlycrates/victory-gpu/src/pipeline.rsandcrates/victory-gpu/src/pipeline/known.rs).Checks
cargo xtask policy— pass (368 files ok)cargo check --locked --release --target x86_64-pc-windows-msvc -p victory-gpu -p victory --tests— passcargo clippy --no-deps --locked --release --target x86_64-pc-windows-msvc -p victory-gpu --all-targets— 0 new warningsPKG=victory-gpu ./build.sh test --lib -- pipeline::known::tests::— 6/6 passed (including newparse_memoizes_shared_shader_containersverifying repeated(stage, hash)entries hit the memoized cache and return identicalArcpointers)HashMap<(u8, [u8; 32]), Arc<Shader>>scoped toknown::make(); dropped when prewarm finishes.Created with Gemini 4 Neon in T3 Code.
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.