d3d12: prison interior lighting collapses toward black #3004

Open
opened 2026-12-01 23:17:17 +00:00 by github-bot · 4 comments
Owner

@⁠Alanls-mx on GitHub · 2026-12-01 23:16 UTC · original

Observed problem

The user reports that the prison interior has lost its lighting and is now almost entirely dark.

Evidence from the current run

  • A live view during gameplay showed an interior shack with walls and floor nearly black while the character's shirt and face clipped toward white; the floor also had strong speckling. The subtitle identified this as a shack scene, not the prison, so it is corroborating evidence of high-contrast interior rendering rather than a prison capture.
  • Follow-up dumps frame-29035 and frame-30733 captured exterior vegetation and G-buffer/depth targets. They do not isolate the prison lighting.
  • The earlier frame-8192 image shows the prison dorm scene, but a fresh capture at the reported lighting state is still needed.

Investigation

Capture the prison interior again at the same camera/light state, then trace the ambient/probe result, light grid, shadow masks, exposure/composite, and whether their host pipelines were ready. Compare the matching targets before changing global brightness or lighting switches. Keep shader compilation stalls tracked separately in issue #2961.

Session constraint

Keep the current game session and active mission intact. Do not load/replay a different mission or close the game until the user authorizes it; after the eventual close, resume this same mission from its save/checkpoint.

**@⁠Alanls-mx** on GitHub · 2026-12-01 23:16 UTC · [original](https://github.com/ProjectLeonida/mandy/issues/3004) ## Observed problem The user reports that the prison interior has lost its lighting and is now almost entirely dark. ## Evidence from the current run - A live view during gameplay showed an interior shack with walls and floor nearly black while the character's shirt and face clipped toward white; the floor also had strong speckling. The subtitle identified this as a shack scene, not the prison, so it is corroborating evidence of high-contrast interior rendering rather than a prison capture. - Follow-up dumps `frame-29035` and `frame-30733` captured exterior vegetation and G-buffer/depth targets. They do not isolate the prison lighting. - The earlier `frame-8192` image shows the prison dorm scene, but a fresh capture at the reported lighting state is still needed. ## Investigation Capture the prison interior again at the same camera/light state, then trace the ambient/probe result, light grid, shadow masks, exposure/composite, and whether their host pipelines were ready. Compare the matching targets before changing global brightness or lighting switches. Keep shader compilation stalls tracked separately in issue #2961. ## Session constraint Keep the current game session and active mission intact. Do not load/replay a different mission or close the game until the user authorizes it; after the eventual close, resume this same mission from its save/checkpoint.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 23:17:17 +00:00
Author
Owner

@⁠Alanls-mx on GitHub · 2026-12-01 23:16 UTC · original

Additional evidence: existing capture frame-16384 shows the prison-story close-up of Lucia with her face lit but most of the surrounding room/background crushed to near black; frame-8192 shows the prison dorm. This supports the reported loss of interior fill, but neither capture includes an ops trace that isolates the responsible pass. The current session has progressed to a different mission scene, so retest after the user resumes this same mission from its save/checkpoint; do not load or replay another mission while the current session is open.

**@⁠Alanls-mx** on GitHub · 2026-12-01 23:16 UTC · [original](https://github.com/ProjectLeonida/mandy/issues/3004#issuecomment-7329151414) Additional evidence: existing capture frame-16384 shows the prison-story close-up of Lucia with her face lit but most of the surrounding room/background crushed to near black; frame-8192 shows the prison dorm. This supports the reported loss of interior fill, but neither capture includes an ops trace that isolates the responsible pass. The current session has progressed to a different mission scene, so retest after the user resumes this same mission from its save/checkpoint; do not load or replay another mission while the current session is open.
Author
Owner

@⁠Alanls-mx on GitHub · 2026-12-01 23:21 UTC · original

Additional current-session capture: frame-36509 shows the covered hideout nearly black while the surrounding trees and ground are strongly lit. This is a separate shack scene, not the prison, but it corroborates the interior/exterior contrast reported by the user. The active mission/session remains open and must be resumed from its current save/checkpoint; do not replay another mission.

**@⁠Alanls-mx** on GitHub · 2026-12-01 23:21 UTC · [original](https://github.com/ProjectLeonida/mandy/issues/3004#issuecomment-7329253367) Additional current-session capture: frame-36509 shows the covered hideout nearly black while the surrounding trees and ground are strongly lit. This is a separate shack scene, not the prison, but it corroborates the interior/exterior contrast reported by the user. The active mission/session remains open and must be resumed from its current save/checkpoint; do not replay another mission.
Author
Owner

@⁠Alanls-mx on GitHub · 2026-12-01 23:33 UTC · original

The local Windows/NVIDIA branch now gives the no-RT diffuse estimate a small floor on scene geometry and updates its history by elapsed time. It also rejects non-finite radiance samples using integer exponent bits before accumulating them. FXC warned that the previous floating-point NaN check could be optimized away. All seven ambient HLSL entry points compile as cs_5_1, and the new check survives in the emitted bytecode.

The launcher retains one compilation worker and an 8 ms frame wait budget on the 16 GiB preset. It now logs ambient pass activation under that preset. Visual comparison at the same prison camera is still pending.

**@⁠Alanls-mx** on GitHub · 2026-12-01 23:33 UTC · [original](https://github.com/ProjectLeonida/mandy/issues/3004#issuecomment-7329495734) The local Windows/NVIDIA branch now gives the no-RT diffuse estimate a small floor on scene geometry and updates its history by elapsed time. It also rejects non-finite radiance samples using integer exponent bits before accumulating them. FXC warned that the previous floating-point NaN check could be optimized away. All seven ambient HLSL entry points compile as `cs_5_1`, and the new check survives in the emitted bytecode. The launcher retains one compilation worker and an 8 ms frame wait budget on the 16 GiB preset. It now logs ambient pass activation under that preset. Visual comparison at the same prison camera is still pending.
Author
Owner

@⁠bercedev on GitHub · 2026-12-03 16:20 UTC · original

finding on the prison interiors, though here it went the other way: washed out white, not black

setup: linux, proton experimental 11.0, vkd3d-proton master f8c1cae83, rtx 4050 laptop 6 gb, nvidia 620.73.04, series s, leonida.exe from main d227aa73e (+ #2654), scripts/play-linux.sh defaults

the cell after the window cutscene and the scripted corridor walk with the guard came out almost fully white/pink every run, characters barely visible. LEONIDA_NAN_SCRUB_INF=0 changed nothing

cause looks like play-linux.sh:126-127: it sets LEONIDA_AMBIENT_AIR=1.5 and LEONIDA_AMBIENT_MOST=2 but never LEONIDA_AMBIENT, and ambient.rs:148-151 only runs the stand-in (and so those two bounds) when LEONIDA_AMBIENT is set. the settings line at start shows neither LEONIDA_AMBIENT nor LEONIDA_AMBIENT_AIR, so on linux those defaults do nothing

with LEONIDA_AMBIENT=1 added and nothing else changed, the corridor renders properly: walls, door, bars and the inmates behind them all readable. still left: grainy blue/purple speckle on faces and hair, and some glare around the ceiling lights and doorways in the common room. next i'll try LEONIDA_AMBIENT_NEAR=1 for the speckle

so play-linux.sh probably wants set_default LEONIDA_AMBIENT 1 next to the other two. haven't checked whether play-nvidia.ps1 has the same gap

AI-assisted: yes (claude). runs played by me

**@⁠bercedev** on GitHub · 2026-12-03 16:20 UTC · [original](https://github.com/ProjectLeonida/mandy/issues/3004#issuecomment-7384689192) finding on the prison interiors, though here it went the other way: washed out white, not black setup: linux, proton experimental 11.0, vkd3d-proton master f8c1cae83, rtx 4050 laptop 6 gb, nvidia 620.73.04, series s, leonida.exe from main d227aa73e (+ #2654), scripts/play-linux.sh defaults the cell after the window cutscene and the scripted corridor walk with the guard came out almost fully white/pink every run, characters barely visible. LEONIDA_NAN_SCRUB_INF=0 changed nothing cause looks like play-linux.sh:126-127: it sets LEONIDA_AMBIENT_AIR=1.5 and LEONIDA_AMBIENT_MOST=2 but never LEONIDA_AMBIENT, and ambient.rs:148-151 only runs the stand-in (and so those two bounds) when LEONIDA_AMBIENT is set. the settings line at start shows neither LEONIDA_AMBIENT nor LEONIDA_AMBIENT_AIR, so on linux those defaults do nothing with LEONIDA_AMBIENT=1 added and nothing else changed, the corridor renders properly: walls, door, bars and the inmates behind them all readable. still left: grainy blue/purple speckle on faces and hair, and some glare around the ceiling lights and doorways in the common room. next i'll try LEONIDA_AMBIENT_NEAR=1 for the speckle so play-linux.sh probably wants `set_default LEONIDA_AMBIENT 1` next to the other two. haven't checked whether play-nvidia.ps1 has the same gap AI-assisted: yes (claude). runs played by me
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/ubiquitarianism--leonida#3004
No description provided.