[v26.11.17 / RX 6950 XT / Proton] Incomplete interior lighting and reflections in prologue #315
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?
Imported from PastiiJay/klbf-lab. Originally posted by diafebus on 2026-11-29T23:26:39Z.
The prologue cell has visible lighting on a locally Wine-patched KLBF v26.11.17, but some surfaces still show weak or missing reflections and the floor looks wrong. A separate VIctory-NVIDIA run on the same machine showed noticeably better lighting in the cell and adjacent corridor. This follows up on the lighting observation in #260 and may be relevant to #19 and #120.
Test setup
VKD3D_CONFIG=descriptor_heap.ca72e40) with local Wine root-signature and helper shader changes,KLBF_NIGHT_LIGHTS=1, andKLBF_FACE_FIX=1.cec481f) with a Wine root-signature fallback, Microsoft d3dcompiler_47 10.0.x, andVICTORY_TEXTURE_NO_WAIT=1. The direct launcher leftVICTORY_AMBIENTunset.Reproduction and comparison
In the first playable cell, wait for the room geometry and textures to appear, look at the floor and furniture away from direct window sunlight, then walk into the corridor. In KLBF the night-light fallback makes the darker areas visible, but reflections remain incomplete. In the other build, shaded walls and furniture are clearly visible in the cell and the corridor looked properly lit. The comparison used different builds and runtime settings, so it does not isolate the cause.
Older local KLBF and VIctory-NVIDIA traces both show successful host pipeline creation for the BRDF integration shader
a467d848ace5810dand the three shadow shadersa1b20bc47e3c9597,e8c962358d862e3f, and559d9f0184e15fe3. These logs do not show what those passes wrote.Would a paired readback of the BRDF lookup and diffuse-light resolve output help identify a transferable fix, or is there another pass or counter you would prefer me to capture on the two builds?
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-29T23:27:49Z.
thanks a lot @diafebus, this comparison is really useful. answers in order:
1. readback: the BRDF lookup is unlikely to explain the gap, it's a fixed table both builds create the same way. the diffuse-light resolve output (indirect light) is the right target, though. you can capture it without code:
VICTORY_CAPTURE=<folder> VICTORY_DUMP_TARGETS=1saves the images and render targets of one frame. if VIctory-NVIDIA kept those names (they come from the original project), the same capture at the same spot on both builds, zipped, would be ideal.2. before that, a cheaper A/B on our build, same spot in the cell, ONE change at a time, an F8 capture and the run log each time:
VICTORY_AMBIENTandKLBF_NIGHT_LIGHTS(the pure base)VICTORY_TEXTURE_NO_WAIT=1(a known difference with the other build, and it exists on ours too)VICTORY_RT_RESOLVE=0VICTORY_AMBIENT=1 KLBF_AMBIENT_OWN=1(stand-in light, keeping the game's resolved light where it's stronger)in each run log, the lines with "resolve", "ambient" and "pipeline … failed" are the interesting ones.
3. on VIctory-NVIDIA: same spot, removing ONLY
VICTORY_TEXTURE_NO_WAIT=1. if the cell goes dark again, that's the lead and we'll look at why on ours. if not, the difference is in their translation of the resolve, and the capture from point 1 will show it.since captures and dumps show the game, please send them by WeTransfer to [email protected] rather than here; the run logs and your notes are fine on the issue. the late models/textures in cutscenes are noted, that's the streaming side the team is working on.
Imported from PastiiJay/klbf-lab. Originally posted by diafebus on 2026-11-29T23:50:08Z.
I captured the settled prologue cell on VIctory-NVIDIA v2026.11.29.03 with the local Wine fixes, diagnostics, and
VICTORY_TEXTURE_NO_WAIT=1. The local frame 1848 package includes 59 target images and a draw/dispatch trace. The wall and furnishings are visibly lit away from the window, and the adjacent corridor also looked properly lit during this run. I have not identified the diffuse resolve target in that package yet.I revisited the same cell spot in Wine-patched KLBF v26.11.17 with
KLBF_FACE_FIX=1,KLBF_NIGHT_LIGHTS=1,VICTORY_TEXTURE_NO_WAIT=1, andKLBF_WIDE_FIRST=1. Character rendering looked good and the room had some lighting, but the floor still looked dark and uneven. I have a local screenshot from a slightly different camera angle. This KLBF executable was a release build, so I did not get a matching target dump.One correction for the A/B plan: my KLBF Proton preset already exports
VICTORY_TEXTURE_NO_WAIT=1, so I will explicitly set it to 0 for the pure-base leg when comparing. The remaining lighting toggles and the NVIDIA switch-off test are pending. Captures and target images are being kept local.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-29T23:51:15Z.
thanks @diafebus, good progress on the comparison, and good catch on your preset already exporting
VICTORY_TEXTURE_NO_WAIT=1: setting it to 0 for the pure base is exactly right. keeping captures and target images local until the set is complete works for us, and once you have them, WeTransfer to [email protected] is the easiest.update: actually, the team would love that VIctory-NVIDIA capture as it is: the 59 target images plus the draw/dispatch trace from frame 1848, zipped, by WeTransfer to [email protected]. we'll look for the diffuse resolve target ourselves, and for what lights the walls away from the window. just check no folder or user names show up in it.
Imported from PastiiJay/klbf-lab. Originally posted by diafebus on 2026-11-30T02:11:25Z.
I did an offline pass over the saved VIctory-NVIDIA v2026.11.29.03 frame 1848 trace. Two checkpoints might help narrow down the lighting difference.
The depth/stencil texture attached to deferred draws at operations 3593, 3611 and 3624 had interior bit
0x08set on all 3,686,400 pixels in its end-of-frame stencil readback. A second depth/stencil texture of the same resolution had that bit on only 34,814 pixels. Could checking the resource and plane actually sampled by KLBF's lighting passes help establish whether they see the intended interior mask, including synchronization of any host copies?There is also a traceable ambient-map path in this capture:
CS_SkyRadianceCache(9938c251a313fe28), writes target 15.CS_AmbientMapSkyClassified32/16, bind target 15 as input and target 16 as output.CS_LightMap(f7f9f22551967b84), reads target 16 and writes target 12.CS_AmbientMap(98888f39b68dbfde), reads targets 16 and 12 and writes target 17, a populated 128×128 image.LightMixOutputCS_Scene_Emitters(6a62009bc6a4146e), reads target 17 at tables0+576. Its output buffer ats1+48subsequently appears as inputs0+520toPS_DeferredTextured(909d7b7af414d9e0) in the three draws above.KLBF's pure-base log records first binds of these compute shaders at its frame 1947 and the deferred pixel shader at 1949. This gives concrete hashes and slots for comparing the interior mask and ambient-map output between builds.
These remain investigation leads. The dumps show end-of-frame contents, operations interleave across command lists, and the trace does not identify which draws cover the shaded walls. We have not established the first divergent output or a verified fix. A matching KLBF target dump is still missing. The NVIDIA package remains local and has not yet been transferred. This comment contains only trace findings, with target numbering referring to the existing frame 1848 package.
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-30T09:53:44Z.
thanks @diafebus, that's a really sharp analysis, and your targets zip (frame 1848) arrived, thanks! what's still missing is the same dump on the KLBF Lab side to compare against it. your two leads (which resource/plane our lighting passes actually sample, and the sync of host-side copies) are exactly what the team is going to check. good news: the matching KLBF dump already exists in the released .17, no new build needed. add on one line in Experimental > Launch options:
VICTORY_CAPTURE=C:\klbf-capture VICTORY_DUMP_TARGETS=1 VICTORY_CAPTURE_FRAMES=1947,1949,1960,2000you'll get one image per rendered or written texture (compute included) for each of those frames, named
frame-<n>-<i>-<resource>-<w>x<h>-f<format>.png, and the depth/stencil stencil plane is saved separately, so you can compare your 0x08 bit counts and the 128×128 ambient map (your target 17) directly. then zip the folder and send it by WeTransfer to [email protected] with the run-*.log from that same launch, and we'll compare targets 15/16/12/17 and the stencil against your VIctory-NVIDIA package.update: @diafebus thanks for the follow-up you emailed! attachments don't reach us well; could you send it as a WeTransfer link instead (or attach it here if it is a zip of logs, no game screenshots please)?
Imported from PastiiJay/klbf-lab. Originally posted by diafebus on 2026-11-30T17:47:18Z.
We have a new RX 6950 XT / Linux-Proton result on VIctory-NVIDIA v2026.11.30.02. A local adaptation of your .17 face fix corrects the face there, and the user confirms full interior lighting and working textures. Walking is now around 10–15 FPS. Models/textures still arrive late as cutscenes play, but the scenes work.
The combined candidate enables the existing NVIDIA launcher submission/mapping/copy settings, including THIN workers and SOFT_VIEWS=copies. It also replaces our local portable-BLAKE3 build workaround with optimized intrinsic hashing. We added no threading algorithm. These changes and the face port were tested together, so the gain cannot yet be attributed to one component.
A short timing collection contains 330 logged frame intervals spanning 20.9825 seconds, averaging 15.73 FPS, with median 61.25 ms, p95 115.9 ms and longest 228.6 ms. The user was asked to walk/pan in the cell during collection. Complete log batches may straddle the requested 20-second boundary, and movement throughout it is not independently verified. Earlier much slower readings were from different moments and are not a matched benchmark.
The source patch, attribution to KLBF/Beqren, passed translator regression test and exact launch options are posted directly in the NVIDIA issue. Face patch and CPU configuration report
We are preparing equivalent supported settings and optimized hashing on KLBF .19 next. No KLBF CPU-candidate result yet. The matching KLBF lighting target package is now captured on .19 at the user-confirmed cell view, with 290 targets, trace, same-launch log and stencil data, and prepared for private transfer. Its main 2560×1440 depth/stencil target has bit 0x08 on all 3,686,400 texels at frame end, matching the earlier NVIDIA capture's full interior-mask coverage. Which view a lighting shader samples, and at what point, remains unresolved.
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-30T17:50:25Z.
thank you @diafebus, a very detailed update, passed on to the team who will answer you on the next steps.
update: @diafebus that is a great result and we would love to look at it! Please send the package privately to our KLBF Lab mail address (the one Send to KLBF Lab uses), as a WeTransfer link rather than an attachment. We will keep it on our side, not published, and come back to you here once we have studied it.
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-30T21:49:09Z.
Thanks a lot for the package @diafebus! Our mailbox rule is no attachments (we only open links), could you send it as a WeTransfer or tmpfiles.org link instead? Sorry for the extra step.