LARP_PIPELINE_WAIT_MS>0 drops one-time BRDF/lighting LUT & Decoration… #347
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!347
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-347"
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?
@bcefedgn on GitHub · 2026-12-05 23:25 UTC · original
bcefedgn:patch-1→main· +21 −6 · 1 files · 1 commits · open…Blend pixel shaders on world entry (black skin, dark lighting, broken hair)
Summary
Enabling
LARP_PIPELINE_WAIT_MS=8(documented inREADME.mdanddocs/environment-variables.md) bypasseswaits_for_all()incrates/larp-gpu/src/pipeline/make.rsfor graphics pipelines where!p.lasting(). On world entry, this drops one-time BRDF/lighting LUT andPS_DecorationBlenddraws even with a warm 88,500+ pipeline cache, leaving those targets zeroed (pitch-black skin, dark/crushed interiors, white eyebrows, and broken hair lighting) on both Series S and Series X.Root Cause in Code (verified on
origin/maindeb2a0d)crates/larp-gpu/src/pipeline/make.rs(ready()):rust if !p.lasting() && let Some(budget) = pipeline_wait_budget() { wait_budgeted(p, frame, budget); } else if waits_for_all() { wait_for(p, frame); }WhenLARP_PIPELINE_WAIT_MS > 0, any non-lasting()graphics pipeline whose driver/blob load takes longer than the budget drops the draw instead of waiting forwaits_for_all().Pending::lasting()(crates/larp-gpu/src/pipeline/make.rs) currently only returnstruefor compute pipelines and the fourPS_BakeDecorations_*pixel shaders incrates/larp-gpu/src/draw.rs(BAKE_PIXEL_SHADERS):rust pub(crate) const BAKE_PIXEL_SHADERS: [&str; 4] = ["c0a7fe77b1862e10", "0d1575a396dfe513", "b7cfd8dda91ebb6b", "280967ad158cee0b"];Exact Dropped One-Time Shaders (from
--features diagnosticswithLARP_PIPELINE_WAIT_MS=8)Even with all 88,500+ shaders/pipelines cached (
without_a_stored_shader=0,created_without_blob=0), loading them from blobs on world entry still exceeds the 8 ms per-frame budget and drops the following one-time graphics pipelines:11938fcee612943c008e0PS_DecorationBlend_0011_ff00f5de_WrappedNotice why triggering a live
frame_resetin-game (e.g., togglingupscalerin the F10 menu) partially restores skin and shadows: by that point thee4d137dbLUT pipelines have finished loading in the background, and theframe_resetre-runs those 6 LUT passes, whereas earlier characterPS_DecorationBlendpasses from loading do not re-run.Confirmed Workaround & Verification
Unsetting
LARP_PIPELINE_WAIT_MS(or settingLARP_PIPELINE_WAIT_MS=0) restoreswaits_for_all() == true(0 without a host pipelinedropped) and completely fixes skin, lighting, shadows, and hair lighting from frame 1 (tested with0frame resets, both DLSS Performance and DLSS Quality + DLSS 2x Frame Generation on RTX 4070 Laptop 8 GB, Windows 11, driver621.47).Suggested Fix
Include the one-time BRDF/lighting LUT (
e4d137db) andPS_DecorationBlendpixel shader hashes (plus any remainingPS_DecorationBlend_*variants if present) inBAKE_PIXEL_SHADERS/LASTING_PIXEL_SHADERSchecked byPending::lasting()incrates/larp-gpu/src/pipeline/make.rs+crates/larp-gpu/src/draw.rssoLARP_PIPELINE_WAIT_MS=8still works safely without breaking initial world/character lighting:Additional Observation (Brief Note on Live
frame_resetVRAM Retention)While diagnosing this via F10
upscaler/upscaler_modeswitches,diag.logalso showed that a liveframe_resetretains oldalias pool+ texture-object VRAM (499 MB -> 1011 MBalias pool,785 MB -> 1403 MBtexture objects, total card VRAM6778 MB -> 7456 MBeven 15s later), causing 8 GB GPUs to spill into Shared RAM (~2 FPS) on a subsequent liveframe_reset. Happy to open a separate issue with fulldiag.logdetails if helpful.Environment
32.0.16.2147/621.47)origin/main(deb2a0d, sameBAKE_PIXEL_SHADERS/LARP_PIPELINE_WAIT_MSlogic)@vanya890 on GitHub · 2026-12-06 01:15 UTC · original
I checked this against the current
upstream/mainrather than only the PR base. The requested lasting-shader change is already present there: commitc048b3a(Fix #335: never budget-drop one-time LUT/decoration pipelines) adds the same 12 hashes toBAKE_PIXEL_SHADERSand updatesPending::lasting()/ the dropped-once full-wait behavior inpipeline/make.rs.c048b3ais an ancestor of currentupstream/main, and the PR's only changed file/hunk is now in the mainline code.This PR appears superseded by the #335 fix already shipped in v1.1.6 and merged to
main; I don't see any remaining delta to merge from this branch. Please close it as superseded to avoid reapplying the same change.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.