Indoor light-atlas dispatch takes 157 ms on RTX 4090; tested lane-mask and Proton ambient fixes #2750
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 trustno1-coder/VIctory-NVIDIA. Originally posted by truthcode1-code on 2026-11-29T16:48:54Z.
On v2026.11.29.01 (
829188e9), we isolated two bugs in a jewelry-shop interior. Fixing the shader translator reduced median GPU frame time from 200.89 ms to 43.26 ms on the same recorded frame. A separate DXC compilation fix restored the ambient lighting passes in live gameplay. Both fixes were tested locally. The production diff is below.Related reports include #2348, which identifies the same light-atlas shader on a Windows RTX 4080, and #2704, which describes indoor slowdown and glass artifacts. We have only verified the causes below on this Proton setup.
Wave64 lane mask lost at a loop back edge
The particle light-atlas compute shader is
2561af9577c47289(captured DXIL06664b33eb623c07). Of its five indirect commands, only list 215, command 22 launched any groups. Reading the argument buffer after the clamp gave 187 × 1 × 1 there and zero dimensions for the other four. Instrumenting the loop showed that eight groups reached the 4,096-iteration guard.In
Lower::fill_phis, a phi read only through a second phi could receive zero in place of the numeric lane mask on an incoming edge. On the next iteration the folded wave64 shader selected the empty upper half for a first-lane read, and the loop stopped making progress. The fix follows reads through phi inputs and materialises the incoming mask. The regression case extendsa_lane_mask_joined_with_a_number_is_read_as_the_number_it_iswith a second conditional join and verifies both the mask and scalar alternatives on hardware.Controlled replay on RTX 4090
We reproduced the captured DXIL byte for byte before the change. Since replay uses the captured DXIL, we then replaced only that shader using
replay --shaders <folder> --loops 31 --timing detailed. Both the dispatch arguments and the loop guard were preserved. Both2561af9577c47289andcabb87599722e59aran with the fork's two default exclusions.The replay is nondeterministic and omits 12 predication calls and 32 submissions to another queue. During high-utilization baseline samples, median GPU utilization was 99%, memory utilization 1%, power 92 W and core clock 2,700 MHz. That combination is consistent with a few long-running groups keeping the GPU busy.
Ambient pass creation under Proton
Wine's system compiler fell back to DXC. DXC rejected the vector expression
isnan(found) || isinf(found)in theraiseentry point, and the equivalent expression forwas. Failure to create this required pipeline aborted construction of the entire ambient pass. The fix tests each colour channel independently, preserving the other channels when one is non-finite.We verified this fix live because the old recording contains none of the missing ambient commands. The corrected build compiled
raiseand followed 544 opaque or alpha CS_RayMiss dispatches in 271 frames during a ten-second shop sample. The blue-white floor patches largely cleared and the contents of the glass cases became visible. Case strips remained bright and some shadows remained dark. Outdoor validation was limited to a daylight spot check. Water and nighttime scenes still need coverage.Environment. CachyOS, KDE Wayland, i9-14900K, 128 GB RAM, RTX 4090 24 GB, NVIDIA 620.73.04, GE-Proton11-14-viewtree, VKD3D-Proton
71cae091b. Series S, requested 1440p, DLSS Quality, 60 FPS target, frame generation off.VICTORY_RAYMISS_KEEP=1,VICTORY_AMBIENT_SPECULAR=1,VICTORY_NAN_SCRUB=0. The depth-free reflection fallback was off.Validation. Release and diagnostics builds succeeded. The native shader suite passed 295 tests, and the extended join test passed on hardware. Under Proton, 13 of 14 ambient tests passed, including pass compilation and creation. The remaining test requires a WARP adapter.
Tested production changes against
829188e9Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-29T16:49:02Z.
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by truthcode1-code on 2026-11-29T16:50:34Z.
The before and after logs from the runs reported above are included below. The live excerpts cover pipeline translation, ambient shader compilation and the reflection counters. The replay reports include every iteration and the recorder limitations. Replay prints the captured pipeline name and DXIL hash in both tables. The corrected run records one accepted shader replacement in its notes.
Live play log before the fix (excerpts)
Live play log after the fix (excerpts)
Captured DXIL (31-loop detailed GPU timing report)
Corrected DXIL (31-loop detailed GPU timing report)
Windows test output under Proton