feat(shader,pipeline): offline DXIL cache pre-warming (--save-cache) and opt-in multi-drop pipeline wait budget #572
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!572
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-572"
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?
@iMarllun on GitHub · 2026-12-06 03:02 UTC · original
iMarllun:feat/offline-shader-prewarm→main· +146 −7 · 6 files · 1 commits · openSummary
Adds two opt-in shader/pipeline stutter reduction features:
Offline DXIL shader cache pre-warming (larp translate --save-cache):
Opt-in multi-drop per-frame wait budget (LARP_PIPELINE_WAIT_MULTI_DROP=1):
@christopear on GitHub · 2026-12-06 03:09 UTC · original
There’s an avoidable cold cache on upgrade to
c2f06aee, even for players who never opt in. build() hashes the entire text of shader_cache.rs, including the new wrappers and the visibility change to counts(). Both ordinary and quad-masked DXIL entries use that build digest.I ran the extracted build() hash in a native Rust test with the real larp-shader sources, holding host settings fixed (no device probe) and varying only the included file bytes. Digest prefixes in that fixture were
459db139f1eb03fd2f484b5fc4d54ab8be1368de64d9f1eb03fd2f4Could the three public forwarding functions live in larp-gpu’s lib.rs or a sibling module? They can call the existing crate-visible counts(), host_shader() and probe_view_limit() while leaving shader_cache.rs byte-identical. That preserves the existing invalidation mechanism for actual encoding changes.
This affects reuse across the upgrade. Offline warming and runtime in the same build can still agree. Old entries remain on disk. I haven't measured gameplay impact.
One separate CLI detail from reading translate::run. The early return for --save-cache silently skips --validate, --pipelines and --list even though clap accepts them together. Declaring conflicts would keep a successful warm-up from looking like a successful validation run.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.