fix(shader): avoid DXC memory blowup for shadow tile shader #421

Closed
github-bot wants to merge 1 commit from github-bot/gh-421 into main AGit
Owner

@⁠vanya890 on GitHub · 2026-12-06 00:33 UTC · original
vanya890:fix/dxc-memory-191ecaed → main · +43 −5 · 1 files · 1 commits · closed without merging

Summary

  • Use DXC -Od only for 191ecaed66eea3b1.compute.hlsl.
  • Keep -O3 for every other replacement shader.
  • Add a focused unit test for the per-shader optimization selection.

Context

Addresses the shader compilation memory issue reported in #249. The issue reports that this shader exhausts system memory with DXC optimization enabled, while -Od completes compilation; -O1 did not resolve the reported problem.

Validation

  • Focused build-script test passed.
  • Direct DXC compilation with -Od succeeded for the tested heap-size defines (1M and 2M).
  • git show --check passed.

Trade-off

Runtime GPU performance for this one shader has not been benchmarked. This deliberately limits the optimization change to the single reported shader rather than reducing optimization globally.

Closes #249

**@⁠vanya890** on GitHub · 2026-12-06 00:33 UTC · [original](https://github.com/gamingwithhomie/larp/pull/421) `vanya890:fix/dxc-memory-191ecaed` → `main` · +43 −5 · 1 files · 1 commits · closed without merging ## Summary - Use DXC `-Od` only for `191ecaed66eea3b1.compute.hlsl`. - Keep `-O3` for every other replacement shader. - Add a focused unit test for the per-shader optimization selection. ## Context Addresses the shader compilation memory issue reported in #249. The issue reports that this shader exhausts system memory with DXC optimization enabled, while `-Od` completes compilation; `-O1` did not resolve the reported problem. ## Validation - Focused build-script test passed. - Direct DXC compilation with `-Od` succeeded for the tested heap-size defines (1M and 2M). - `git show --check` passed. ## Trade-off Runtime GPU performance for this one shader has not been benchmarked. This deliberately limits the optimization change to the single reported shader rather than reducing optimization globally. Closes #249
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 00:41:44 +00:00
github-bot closed this pull request 2026-12-06 01:12:02 +00:00
Author
Owner

@⁠vanya890 on GitHub · 2026-12-06 01:07 UTC · original

Superseded by merged PR #452, which applies a narrower runtime fallback only on affected native Windows NVIDIA 616.x drivers. That preserves the optimized replacement on unaffected drivers and platforms, so this broader -Od workaround is no longer needed.

**@⁠vanya890** on GitHub · 2026-12-06 01:07 UTC · [original](https://github.com/gamingwithhomie/larp/pull/421#issuecomment-7448920631) Superseded by merged PR #452, which applies a narrower runtime fallback only on affected native Windows NVIDIA 616.x drivers. That preserves the optimized replacement on unaffected drivers and platforms, so this broader -Od workaround is no longer needed.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.