Lighting regression: Flat after 1.0.10 #47

Closed
opened 2026-12-05 17:23:14 +00:00 by github-bot · 4 comments
Owner

@⁠garlique on GitHub · 2026-12-05 16:24 UTC · original

I just tested it on 1.0.9, the shadows and lighting kinda went poof. Haven't eliminated this being a thing only on my end, so wait for additional input.

**@⁠garlique** on GitHub · 2026-12-05 16:24 UTC · [original](https://github.com/gamingwithhomie/larp/issues/47) I just tested it on 1.0.9, the shadows and lighting kinda went poof. Haven't eliminated this being a thing only on my end, so wait for additional input.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 17:23:15 +00:00
Author
Owner

@⁠garlique on GitHub · 2026-12-05 16:26 UTC · original

Issue persists with 1.0.11, rolling back to 1.0.9 still fine.

**@⁠garlique** on GitHub · 2026-12-05 16:26 UTC · [original](https://github.com/gamingwithhomie/larp/issues/47#issuecomment-7441306350) Issue persists with 1.0.11, rolling back to 1.0.9 still fine.
Author
Owner

@⁠bgschf on GitHub · 2026-12-05 21:11 UTC · original

I think I found the cause on NVIDIA: commit 9a42871 (the v1.0.10 water mosaic fix, first_thread_init + empty-EXEC loop stall guard in lower.rs / ir.rs). With it, the translator produces three compute shaders that the NVIDIA driver refuses at pipeline creation, so their dispatches are dropped every frame:

WARN larp_gpu::pipeline::host: host pipeline: refused error=0x80070057 shaders=[compute eae3498e6553afa8]
WARN larp_gpu::pipeline::host: host pipeline: refused error=0x80070057 shaders=[compute 67353810417f6c19]
WARN larp_gpu::pipeline::host: host pipeline: refused error=0x80070057 shaders=[compute 4e9b58cc637d9272]
...
WARN larp_gpu::draw: dispatch: dropped, no host pipeline

eae3498e6553afa8 is CS_CalcRasterClassificationListCounts. In game this showed up as flat lighting with a blue fog over everything outdoors, and surfaces looking untextured.

A/B test (same save, same spot, same settings; the only change was reverting 9a42871, git revert --no-commit 9a42871 on top of v1.0.11):

Build Refused pipelines Dropped dispatches Lighting
v1.0.11 as released 3 yes flat / blue fog
v1.0.11 without 9a42871 (run 1) 0 none correct
v1.0.11 without 9a42871 (run 2) 0 none correct

The shader cache key includes the translator sources, so the reverted build retranslated everything; no stale cache was involved. The same three refusals also show up in the RTX 3070 log in #148 (official build), so this doesn't look specific to my machine. One side effect to check: reverting probably brings back the water mosaic from #24, so the water fix likely needs a version that produces valid DXIL rather than a plain revert.

Setup

  • CPU: AMD Ryzen 7 5700G (8C/16T, Zen 3); the integrated GPU is unused, the display is on the dGPU
  • GPU: NVIDIA GeForce RTX 4060 8 GB, driver 621.40, ReBAR on
  • RAM: 16 GB DDR4-3600 (dual channel); pagefile on NVMe
  • OS: Windows 11 Pro 25H2 (build 26200)
  • Game: v1.0.2.1 (build b99f876b74d4a77f), on NVMe
  • larp: v1.0.11 (30b2fd3) built from source with cargo build --release -p larp --target x86_64-pc-windows-msvc, plus -C target-cpu=znver3, fat LTO and codegen-units=1. Agility SDK 1.620.2 D3D12Core.dll in D3D12\ beside the exe; nv-profile --mb 1024 applied
  • Launch: --console series-s --stream-budget 2500, LARP_RESOLUTION=1920x1080, LARP_UPSCALER=dlss, LARP_UPSCALER_SCALE=0.5 (Performance), LARP_FRAME_GENERATION=2 (DLSS FG), LARP_REFLEX=on, LARP_PIPELINE_WAIT_MS=8, borderless
  • Result with the revert: about 16 fps rendered (about 32 with FG) in open-world driving, very smooth frame pacing, no hitching
**@⁠bgschf** on GitHub · 2026-12-05 21:11 UTC · [original](https://github.com/gamingwithhomie/larp/issues/47#issuecomment-7445431329) I think I found the cause on NVIDIA: commit `9a42871` (the v1.0.10 water mosaic fix, `first_thread_init` + empty-EXEC loop stall guard in `lower.rs` / `ir.rs`). With it, the translator produces three compute shaders that the NVIDIA driver refuses at pipeline creation, so their dispatches are dropped every frame: ``` WARN larp_gpu::pipeline::host: host pipeline: refused error=0x80070057 shaders=[compute eae3498e6553afa8] WARN larp_gpu::pipeline::host: host pipeline: refused error=0x80070057 shaders=[compute 67353810417f6c19] WARN larp_gpu::pipeline::host: host pipeline: refused error=0x80070057 shaders=[compute 4e9b58cc637d9272] ... WARN larp_gpu::draw: dispatch: dropped, no host pipeline ``` `eae3498e6553afa8` is `CS_CalcRasterClassificationListCounts`. In game this showed up as flat lighting with a blue fog over everything outdoors, and surfaces looking untextured. **A/B test** (same save, same spot, same settings; the only change was reverting `9a42871`, `git revert --no-commit 9a42871` on top of v1.0.11): | Build | Refused pipelines | Dropped dispatches | Lighting | |---|---|---|---| | v1.0.11 as released | 3 | yes | flat / blue fog | | v1.0.11 without `9a42871` (run 1) | 0 | none | correct | | v1.0.11 without `9a42871` (run 2) | 0 | none | correct | The shader cache key includes the translator sources, so the reverted build retranslated everything; no stale cache was involved. The same three refusals also show up in the RTX 3070 log in #148 (official build), so this doesn't look specific to my machine. One side effect to check: reverting probably brings back the water mosaic from #24, so the water fix likely needs a version that produces valid DXIL rather than a plain revert. **Setup** - CPU: AMD Ryzen 7 5700G (8C/16T, Zen 3); the integrated GPU is unused, the display is on the dGPU - GPU: NVIDIA GeForce RTX 4060 8 GB, driver 621.40, ReBAR on - RAM: 16 GB DDR4-3600 (dual channel); pagefile on NVMe - OS: Windows 11 Pro 25H2 (build 26200) - Game: v1.0.2.1 (build `b99f876b74d4a77f`), on NVMe - larp: v1.0.11 (`30b2fd3`) built from source with `cargo build --release -p larp --target x86_64-pc-windows-msvc`, plus `-C target-cpu=znver3`, fat LTO and `codegen-units=1`. Agility SDK 1.620.2 `D3D12Core.dll` in `D3D12\` beside the exe; `nv-profile --mb 1024` applied - Launch: `--console series-s --stream-budget 2500`, `LARP_RESOLUTION=1920x1080`, `LARP_UPSCALER=dlss`, `LARP_UPSCALER_SCALE=0.5` (Performance), `LARP_FRAME_GENERATION=2` (DLSS FG), `LARP_REFLEX=on`, `LARP_PIPELINE_WAIT_MS=8`, borderless - Result with the revert: about 16 fps rendered (about 32 with FG) in open-world driving, very smooth frame pacing, no hitching
Author
Owner

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

The three refused compute pipelines now have a merged fix in PR #142: on 32-lane hosts, the translator retries the affected Wave64 programs without only the cautious stall-guard test. The PR reports the refusals and dropped dispatches going from 3/yes to 0/none, with lighting restored on Windows and Proton test systems. This appears to address the specific flat-lighting regression described here, but the issue is still open and I haven't seen confirmation from the original reporter on a build containing the merge. Please retest a current build and confirm whether the lighting/shadow regression is gone; any remaining hard-edged shadow artefacts may be a separate issue.

**@⁠vanya890** on GitHub · 2026-12-06 01:10 UTC · [original](https://github.com/gamingwithhomie/larp/issues/47#issuecomment-7448961763) The three refused compute pipelines now have a merged fix in PR #142: on 32-lane hosts, the translator retries the affected Wave64 programs without only the cautious stall-guard test. The PR reports the refusals and dropped dispatches going from 3/yes to 0/none, with lighting restored on Windows and Proton test systems. This appears to address the specific flat-lighting regression described here, but the issue is still open and I haven't seen confirmation from the original reporter on a build containing the merge. Please retest a current build and confirm whether the lighting/shadow regression is gone; any remaining hard-edged shadow artefacts may be a separate issue.
Author
Owner

@⁠garlique on GitHub · 2026-12-06 01:18 UTC · original

The lighting is now fine, however, the bloom/lens flare issue at edges persists to 1.1.6. #207

**@⁠garlique** on GitHub · 2026-12-06 01:18 UTC · [original](https://github.com/gamingwithhomie/larp/issues/47#issuecomment-7449071106) The lighting is now fine, however, the bloom/lens flare issue at edges persists to 1.1.6. https://git.gtahub.st/github/gamingwithhomie--larp/issues/207
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/gamingwithhomie--larp#47
No description provided.