Reuse shared shader references when prewarming the pipeline list #29
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/gamingwithhomie--larp!29
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/29/head"
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?
@yyc160 on GitHub · 2026-12-05 15:43 UTC · original
yyc160:perf/reuse-listed-shaders→main· +90 −17 · 3 files · 1 commits · merged 2026-12-05 15:49 UTCDifferent pipeline recipes frequently reference the same container. Previously the list walk rehashed its bytes and acquired the global shader-interning lock for each reference. Walk the complete on-disk records once, retain their full content hashes and memoize resolved shared shaders for the duration of the list walk. The first use still goes through the existing full-hash table. The disk bookkeeping path no longer copies container payloads just to get their names.
No changes to the cache format, pipeline keys, compiler worker count or draw scheduling. A torn final record is ignored at the same boundary as before.
Windows x64 release, based on
03efd5b:compare_listed_shader_resolutiontest, 88,506 recipes held 169,692 references to 19,048 stored containers. The identical input and reference order produced identical stage/hash fingerprints. Old/new/new/old: 463.59 / 84.41 / 82.12 / 391.27 ms.AI-assisted by GPT-6.2 Astra.