Option to skip waiting for all cached pipelines at startup #459
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#459
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@pirncedark on GitHub · 2026-12-06 01:10 UTC · original
Every launch shows "Compiling pipelines" from 0 to ~102k and the title waits until all are made, even though they come from the cache:
This adds 15-30 s to every start. Could there be an option (e.g. an env var or an F10 setting) to let the title start right away and build cached pipelines in the background or on demand?
Setup: larp v1.1.5 (main
bc11a62), Windows 11, RTX 3080 Ti (driver 621.01), Ryzen 5 5600X, Series X mode, NVIDIA shader cache set to unlimited.@vanya890 on GitHub · 2026-12-06 01:13 UTC · original
I checked the current
mainimplementation and the two related open PRs.The important distinction is that a cached shader/PSO blob is not the same thing as an already-created host
ID3D12PipelineState. The blob can be supplied to the driver, but LARP still has to create the host PSO. The startup queue deliberately holds the title at the menu until its queued pipelines are made (seecrates/larp-gpu/src/pipeline/make.rs).Related work, but neither fully addresses this request:
LARP_KEEP_USED) remembers graphics PSOs used in earlier runs and prewarms those at the menu. It reduces later first-use stalls, but it does not remove the startup wait; it can actually increase the number prewarmed.LARP_OPT_ASYNC_WORLD_PSOS) makes newly encountered non-lasting graphics PSOs asynchronous after steady-world rendering is established. It is not a startup fast-start path, and its asynchronous path can omit draws while a PSO is still compiling.So I think this is a distinct feature request: an opt-in startup policy that releases the title once a minimal set of title/menu-critical pipelines is ready, while continuing the rest in the background. Simply skipping the wait for every pipeline would risk missing title/world draws or blocking again on first use, so the critical set and first-use behavior need to be designed explicitly.
@vanya890 on GitHub · 2026-12-06 01:22 UTC · original
I opened PR #475 with an opt-in fast-start path: set
LARP_PIPELINE_STARTUP_WAIT=0to release the menu and skip the cached-queue render-phase barrier once a previous-run pipeline list has actually been queued. The default and cold-first-run behavior stay unchanged.This removes only the global startup barrier.
ready()still queues and waits for a pipeline on first use, so a first-use hitch is still possible while the remaining PSOs warm in the background.LARP_PIPELINE_WAIT_MS=8can cap non-lasting graphics waits, with the existing one-time-drop trade-off. The PR documents this explicitly. If you'd rather require a stricter menu/world-critical subset before release, that would be a different policy and I'd prefer to settle that before making it the default.