Share shader container storage while saving the pipeline catalog #290

Manually merged
github merged 1 commit from github-bot/gh-290 into gh-pr/290/base 2026-12-06 00:55:39 +00:00 AGit
Owner

@⁠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 UTC

Share 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.

**@⁠erdtreefaithful** on GitHub · 2026-12-05 22:35 UTC · [original](https://github.com/gamingwithhomie/larp/pull/290) `erdtreefaithful:feature/share-shader-catalog-payloads` → `main` · +523 −49 · 3 files · 1 commits · merged 2026-12-05 22:51 UTC # Share 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 22:37:56 +00:00
github-bot changed target branch from main to gh-pr/290/base 2026-12-05 22:53:04 +00:00
github-bot referenced this pull request from a commit 2026-12-06 00:55:31 +00:00
github manually merged commit a4be7f8acc into gh-pr/290/base 2026-12-06 00:55:39 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.