perf(volumetric): preintegrate depth and record cost attribution #1110
No reviewers
Labels
No labels
Context: Bug
Context: Enhancements
Platform: Android
Platform: Linux
Platform: Web
Platform: Windows
Platform: iOS
Platform: macOS
Release
Target: CI
Target: CLI
Target: Dependency
Target: Engine
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SakulFlee/Orbital!1110
Loading…
Reference in a new issue
No description provided.
Delete branch "sakulflee/perf/volumetric-cost-investigation"
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?
Summary
Refs #1080. The Windows volumetric measurement was blocked on stale GPU timestamps (#1076) and missing capture context (#1078). The timestamp path is fixed, but a Windows re-capture is still needed. This change makes the remaining investigation measurable and removes part of the composite cost.
gpu_volumetric_integrateso the volumetric breakdown covers inject, accumulate, integrate and composite.VolumetricQuality::resolved_gridso the renderer and capture paths cannot disagree.Measurements
AMD RX 9060 XT / RADV, Linux, 1920x1080 fullscreen, all-in-one, volumetrics Low, Mailbox, 30-unit range. Medians over stable rows:
Composite plus integration drops from 0.344 ms to about 0.183 ms. Total volumetric time drops about 25%, and the measured frame rate moves from about 384 to about 400 FPS on this GPU. The inject/accumulate numbers are unchanged within run-to-run GPU clock variance.
At the same camera in the volumetrics example the fullscreen output is unchanged within capture noise: maximum channel difference is 19/255 and no channel differs by more than 32/255.
Windows still needs the re-capture from #1076 to confirm the pass split and the actual laptop cost.
Testing
cargo fmt --all -- --checkcargo clippy -- -D warningscargo test --no-fail-fasttemplate_all_in_oneandtemplate_volumetricson Linux/Vulkan; both render without validation errors, and the CSV metadata contains the new grid and integration fields.60db7595ba5a637234e9Smart test results
Result: PASS
Scope: full workspace
Reason: unmapped change: Tools/performance/performance_report.ipynb
Elapsed: 24m 22s
Workflow run
Overall: 543 tests, 533 passed, 0 failed, 10 skipped
Nextest: 532 tests, 532 passed, 0 failed, 0 skipped
Doctests: 11 tests, 1 passed, 0 failed, 10 skipped
Outcome charts are split between nextest and doctests. The timing chart covers nextest only.
Closes #1080