Repository navigation
Conversation
Share path sampling and light-family shadow traversal, and keep exact IEEE binary32 arithmetic in a linear integer dataflow so native compilation stays manageable without removing precision, glass, shadows or volume transport. Integrate the shared-light traversal and BVH expansion regression from plexi32/solidcraft commit e5bedec940dde467e6d49e99655c80e6bf5db6e4. Extend arithmetic sign/boundary and rotated-corner regression coverage. Co-authored-by: Frank <58932224+plexi32@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
ad4d5c4 to
1925f53
Compare
|
Hi! I had a working fix for #6705 ready when this claim appeared, so I'm leaving it here instead of opening a second PR. It takes a different route from your commit (fewer inlined call sites rather than branchless helpers), so the two may combine. Use as much of it as you like. Branch:
On an RTX 4060 Ti (driver 610.88, Windows 11): cold compile 219 s at 6.3 GB peak, then 0 s from the driver cache. All 135
The cold compile is still heavy, so reducing the remaining walks further is worth a look. For the tests, #6813 (#6706) compiles one at a time per process: NVIDIA keeps one cache per executable, so every new test binary starts cold. |
|
@plexi32 Take this over, it's your fix and I am running low on tokens :) |



On NVIDIA Vulkan, the complete path shader could remain in native compilation for more than 20 minutes while committing over 100 GB. This change reduces its expanded traversal/control-flow complexity while preserving exact integer binary32 arithmetic and the existing rendering features.
Fixes #6705.
The shared path/light traversal is based on plexi32's shader fix, linked from #6813. Its author is credited in the commit. The compile-serialization fix in #6813/#6706 complements this work.
%3vertex indexing with equivalent selects.Measurements and native evidence
RTX 4090, NVIDIA 616.56, Windows, wgpu 30.0.1, Vulkan, full
mainentry in a separate bounded process: 6.224 s pipeline compilation, 709,828,608 bytes peak private commit (677 MiB).cache: None; the driver cache/settings were left intact, so this is not a proven empty-driver-cache measurement. The exact probe input and source hashes are in the evidence manifest.For comparison on this same machine and probe, the arithmetic-only candidate compiled in 42.4 s at about 2.5 GiB. The linked
e5bedec9shader alone exceeded the 4 GiB probe budget after 33.1 s; that stopped run is an incomplete compile. Combining their shared traversal with the linear exact arithmetic gives the measurement above. These are measurements on driver 616.56, not new validation on the issue author's 610.88 driver.The actual native app completed GPU-path renders of the built-in Sample Plate (1024x768, 64 samples) and an original thin-glass scene with a rectangular studio light and transmitted shadows (768x576, 128 samples). In-app recordings, inspected window stills, exported images and resolved job metadata were supplied to the publishing relay. GitHub media attachments remain pending; no media was committed to the source branch. The black rectangle in the glass image is the finite emitter's non-emitting back side. Evidence uses original public-safe scenes; historical private screenshots/document dumps are excluded.
Validation
These checks and hardware measurements were performed on Gaming at source commit
1925f53cea404e5f9707f1b6bb96c018b048d958. The publishing relay verified the handoff hashes, commit, two-file diff and unchanged baseline failure location; it did not rerun the GPU workloads.cargo test --locked -p solidcraft-gpu -p solidcraft-render --profile ci -- --test-threads=1: 442 passed, 3 existing manual tests ignored.SOLIDCRAFT_REQUIRE_GPU=1,WGPU_BACKEND=vulkan. Includes 65,536-case integer arithmetic and 65,536-case relative-coordinate bit checks, glass/corner/distant-coordinate, studio/shadow/volume, adaptive/nonadaptive and material oracles.cargo xtask ciwas run on the final source tree. Formatting, assets/icons, licences, sorted lists, layers and UI-container checks passed. The aggregate gate stops at unchanged Windows errors incrates/ui-egui/src/cli_link.rs: Unix-only symlink code in a test (line 174) and the unusedslotfunction (line 48). These lines are identical to upstream main. The full workspace test phase was therefore not reached; the aggregate gate is not green.Keep this PR draft pending the repository-wide gate and independent review/hardware verification. No application release is part of this change.
Changes a default: no