LARP_PIPELINE_WAIT_MS>0 drops one-time BRDF/lighting LUT & DecorationBlend pixel shaders on world entry (black skin, dark lighting, broken hair) #335
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#335
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?
@bcefedgn on GitHub · 2026-12-05 23:17 UTC · original
issue-logs.zip
play.log
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()): 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):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_Wrapped11939d126bcae5d5d8d26PS_DecorationBlend_0000_ff00f5de_Wrapped12063a467d848ace5810dPS_IntegrateEnvBRDF_e4d137db_Wrapped120638992ac65c3b6b5ebPS_IntegrateEnvBRDF_Beckmann_e4d137db_Wrapped12063f9b6e2728e0628b0PS_IntegrateEnvBRDF_ThinFilm_e4d137db_Wrapped120631b86ffadd1d70850PS_IridescenceSpectralIntegration_e4d137db_Wrapped120638919e24c5ce2816aPS_AreaLightIlluminance_e4d137db_Wrapped120632a0d503ba0532798PS_AnisotropicPhaseFunction_e4d137db_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)@gamingwithhomie on GitHub · 2026-12-05 23:51 UTC · original
Fixed in v1.1.6 (building now) - thank you for the exact hashes and root cause. Two layers: (1) your suggested list is in -
BAKE_PIXEL_SHADERSnow covers the 2PS_DecorationBlend+ 6e4d137dbLUT hashes, so those pipelines arelasting()and always waited for; (2) systemic: any pipeline that has already lost a draw to the budget is never budget-dropped again (dropped_once-> full wait on next ask), so an unknown one-time draw can be lost at most once per pipeline instead of forever. Please verify black skin/lighting are gone withLARP_PIPELINE_WAIT_MS=8on v1.1.6. Your frame_reset VRAM observation matches #367 - linked there.