Prewarm only previously used quad-mask pipeline variants #109

Manually merged
github merged 1 commit from github-bot/gh-109 into main 2026-12-05 19:14:25 +00:00 AGit
Owner

@⁠Sans0001010 on GitHub · 2026-12-05 18:47 UTC · original
Sans0001010:codex/reuse-observed-startup-pipelines → main · +14 −27 · 2 files · 1 commits · merged 2026-12-05 19:11 UTC

Problem

Startup expands the saved quad-mask history by render-target configuration. A single previously requested variant can enqueue variants of many unrelated pipelines sharing those targets, even when those variants have never been drawn. Missing blobs for these guesses can cause genuine pipeline creation on otherwise warm starts.

Change

  • Prewarm a quad-mask variant only when its base pipeline key was recorded by an earlier draw. A new variant still uses the normal on-demand creation and blob cache path.
  • Report how many startup pipelines were loaded from a cached blob, skipped because a blob already exists, or created without a usable blob.

Verification

  • The Windows larp-gpu unit tests passed.
  • An offline replay of a populated pipeline cache resolved 88,542 recipes. With 386 recorded quad-mask keys, the new selector matched exactly 386 base pipelines, compared with 13,727 variants requested by the old startup heuristic for the same history.
  • cargo check --profile diag --locked -p larp --features diagnostics passed on Windows.
  • The replay verifies scheduling and cache key identity. It does not measure in-game startup latency.
**@⁠Sans0001010** on GitHub · 2026-12-05 18:47 UTC · [original](https://github.com/gamingwithhomie/larp/pull/109) `Sans0001010:codex/reuse-observed-startup-pipelines` → `main` · +14 −27 · 2 files · 1 commits · merged 2026-12-05 19:11 UTC ## Problem Startup expands the saved quad-mask history by render-target configuration. A single previously requested variant can enqueue variants of many unrelated pipelines sharing those targets, even when those variants have never been drawn. Missing blobs for these guesses can cause genuine pipeline creation on otherwise warm starts. ## Change - Prewarm a quad-mask variant only when its base pipeline key was recorded by an earlier draw. A new variant still uses the normal on-demand creation and blob cache path. - Report how many startup pipelines were loaded from a cached blob, skipped because a blob already exists, or created without a usable blob. ## Verification - The Windows `larp-gpu` unit tests passed. - An offline replay of a populated pipeline cache resolved 88,542 recipes. With 386 recorded quad-mask keys, the new selector matched exactly 386 base pipelines, compared with 13,727 variants requested by the old startup heuristic for the same history. - `cargo check --profile diag --locked -p larp --features diagnostics` passed on Windows. - The replay verifies scheduling and cache key identity. It does not measure in-game startup latency.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 18:49:23 +00:00
github-bot referenced this pull request from a commit 2026-12-05 19:14:18 +00:00
github manually merged commit 5025269ece into main 2026-12-05 19:14:25 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.