perf(gpu): add opt-in sharded pipeline library storage (VICTORY_SHARDED_PSO=1) #419
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
old-names
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!419
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-419"
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?
@Vladimir-Human on GitHub · 2026-11-28 15:22 UTC · original
Vladimir-Human:perf/optin-sharded-pso-library→main· +60615 −5476 · 208 files · 660 commits · closed without mergingImplements the sharded PSO library storage portion of item #2 from #401 strictly opt-in (
VICTORY_SHARDED_PSO=1, default OFF =0).Summary (
4e5defe)pipeline/library/sharded.rs+pipeline/library.rsroute pipeline library entries across 64 lazy shards (128 MiB payload cap/shard), flushing only dirty shards atomically (temp + rename) instead of rewriting a monolithic cache blob, and isolating/rebuilding corrupt shards without losing healthy ones.VICTORY_SHARDED_PSOis unset or0, retains exact monolithichost-pipelines.binpath and preserves all static-sampler / adapter-key gates;Cargo.lockuntouched.SamplerDescriptorHeap[]indirection is left for a dedicated follow-up (see roadmap note on #401).Verification
cargo xtask policy: OKcargo clippy -p victory-gpu --all-targets --locked -- -D warnings&--features diagnostics: 0 warningsVICTORY_D3D12_DEBUG=1&VICTORY_D3D12_WARP=1cargo test -p victory-gpu --features diagnostics --locked --lib pipeline::: 58/58 passed on both@Garu667 on GitHub · 2026-11-28 18:48 UTC · original
Tested on an RTX 3080 10 GB (
4e5defe, Series S, 5 min runs, 1 warm-up run excluded, 3 pairs):VICTORY_SHARDED_PSO=1Slightly ahead with shards on (~+4% mean fps, better p10 in 2 of 3 pairs), but close to run-to-run noise here. No issues seen; pipelines loaded from the library were the same count both ways (~1050).
@TaynanGT on GitHub · 2026-11-29 11:35 UTC · original
Thanks for the paired sharded-library results. The small improvement is close to the observed variation, so I wouldn't claim a general FPS gain. The equal library-hit counts are useful; cold reload, corrupt-shard recovery and memory overhead matter more for deciding whether to expand this.
@TaynanGT on GitHub · 2026-11-30 17:08 UTC · original
mainhas moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the currentmainand open a new PR; I'll review it there.Pull request closed