diff options
| author | romainveurrier <romain.veurrier@gmail.com> | 2026-11-22 15:09:14 +0100 |
|---|---|---|
| committer | romainveurrier <romain.veurrier@gmail.com> | 2026-11-22 15:09:14 +0100 |
| commit | f6d6121c9c54d406f1cfc8791df628a82dc673d8 (patch) | |
| tree | dd1908feabb57fb4295226d3e506cd4b3d6bfc10 /docs/d3d12_command_objects.md | |
| parent | fa2712e2b00f639906d4de63aa5ec326a1fa2b37 (diff) | |
XDXR builds: PERFORM_UPDATE refits instead of rebuilding
An update (same topology, new positions or instance transforms) now keeps the
source's tree and recomputes its boxes: the source is copied to the
destination unless it is the destination (MODE_COPY), the elements are
rewritten at their slots, MODE_LEVEL with arg2 = 1 recomputes each node's
boxes from the children it already points to, and the header gets the new
bounds. No Morton pass, no sort, and the parent table is kept.
RTX 2050: 1,000 triangles 0.07 ms (build 0.19), 100,000 1.02 ms (2.24),
1,000,000 9.8 ms (22.0); Iris Xe 13.1 ms for 1M (47.9).
- XdxrBuilder::record_blas / record_tlas take `update_from`; the Vulkan
backend passes the source (or the destination, for an in-place update)
when the D3D12 build has PERFORM_UPDATE.
- vk_xdxr_build_test: a 3,000-triangle BLAS refitted in place (radix-sort
tree), an R32-indexed grid refitted into another buffer (its untouched
source is checked too), and the TLAS refitted after its instances move;
the timing mode also times refits.
- d3d12_xdxr_rt_test: the BLAS is built with ALLOW_UPDATE, its soup moves,
and a PERFORM_UPDATE in place is checked as d3d12_blas_update.
- tools/xdxr_bvh.py check-build: the case being checked answers reads at its
address first (an in-place update leaves two dumps at one address).
A sabotaged refit (no box pass) fails every update case.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/d3d12_command_objects.md')
0 files changed, 0 insertions, 0 deletions