Share shader container storage while saving the pipeline catalog #290
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!290
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-290"
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?
@erdtreefaithful on GitHub · 2026-12-05 22:35 UTC · original
erdtreefaithful:feature/share-shader-catalog-payloads→main· +523 −49 · 3 files · 1 commits · merged 2026-12-05 22:51 UTCShare shader container storage while saving the pipeline catalog
Problem
Recording a pipeline creation clones each newly seen shader container while holding the catalog lock. Even a warm run pays for that copy before the writer discovers the container on disk. A cold write also assembles the entire batch in a second buffer.
Changes
Keep a shared owner of each container until the writer checks the disk index. Stream new records through a bounded buffer and commit their recipes after the containers are on disk. Preserve the existing catalog format and retry incomplete writes. A batch of 128 distinct 256 KiB shaders previously added 32 MiB to the pending queue. Sharing the payload removes that allocation and shortens the work performed under the catalog lock during pipeline creation.