perf(gpu): add opt-in sharded pipeline library storage (VICTORY_SHARDED_PSO=1) #419
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from TaynanGT/Vice-Tay. Originally posted by Vladimir-Human on 2026-11-28T15:22:43Z.
Implements 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 bothImported from TaynanGT/Vice-Tay. Originally posted by Garu667 on 2026-11-28T18:48:22Z.
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).
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T11:35:42Z.
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.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:08:07Z.
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