upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/xma_decoder/tests/ffi_cpp_smoke.cpp
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-27 10:55:22 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-27 10:55:22 -0500
commit1c731ebda2b241f0106c306bcf0ca5b69557ffff (patch)
tree8d6eeee78bb3297c117caa9e370e43517cce6b3a /runtime/xma_decoder/tests/ffi_cpp_smoke.cpp
parent41d2189a577a0da76a40d900263e2621c244ed3a (diff)
Submissions keep their batch for the next one, one walk over the steps (LEONIDA_BATCH_KEPT, off)
Every submission made its Batch anew (the table of pending refreshes by copy, the staging buffers seen, the copies refreshed ahead), and three walks over its steps each built a hash table of the copies from nothing: the spans of the one write-watch asking, the spans of copies shaders may be writing (stale_under_flights) and refresh_front's copies. With LEONIDA_BATCH_KEPT=1 the Batch is kept per thread, emptied with its room, and one walk (Batch::copy_spans) serves the asking, the stale check behind flights and refresh_front's walk outside renderer port 6's wide plan. The switch is read once per submission; LEONIDA_AB can flip it. Ported from trustno1-coder/VIctory-NVIDIA 19720fe (readmet3xt-lab, the foxhound base; GPL-3.0). Measured there by profile only: hash tables growing and inserting under Host::submit were 2.4 % of the submitting thread, heap allocation and freeing more; no frame-time A/B, so off by default. Here the submitting thread spends 15 % in realloc and 9 % waiting for the allocator. Behaviour-neutral: the same ranges are asked about (in another order, which the asking never kept), the same spans looked at and the same refreshes made. The staging-buffer set keeps its hasher, so that the switch alone tells the difference. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/xma_decoder/tests/ffi_cpp_smoke.cpp')
0 files changed, 0 insertions, 0 deletions