upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-28 05:09:08 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-28 05:09:08 -0500
commit3df83de573c8d10a3a4a4fb096a17035c1f70707 (patch)
treec0d72970c277cd26b8c831e59d1e6cb228c32e91 /runtime/src/xma2_decoder.cpp
parentef6498046d2914696c2fc350222ab068475e69c6 (diff)
Indirect batches can end by what was written (LEONIDA_INDIRECT_BATCH=3; off by default: 1, as before)
With 1 every dispatch whose program can store to buffers ends the open batch of clamped indirect records (82 % of the title's 1,500 direct dispatches a frame), and the next execution opens another: 1,150 batch passes a frame. With 2 only the title's waits and draws end it, which clamped records before its culling passes wrote them (the sea missing for a frame). With 3 a batch ends for an execution only if shaders recorded since its pass may have written that execution's record: storing dispatches and draws mark the batch, and a list keeps the title memory its shaders are bound to write (every buffer view a storing shader gets for unordered access, declared as copying its writes back already needs). LEONIDA_AB can turn 2 and 3 on in turns (LEONIDA_INDIRECT_BATCH_2, LEONIDA_INDIRECT_BATCH_3). RTX 4060 Ti, Series X profile, 1440p, standing at the waterside save, in turns of 4 s: - 2 against 1: the frame 6.5 ms shorter (+-0.8, of 78), the passes 450 to 600 a frame instead of 800 to 1,000 and more: a pass costs about 10 us of the frame (4.1 us between the timestamps of a timing run, 4.8 ms a frame); - 3 against 1: 0.8 ms shorter (+-0.5; means 1.0 +-0.55), the passes still 1,020 to 1,170: most records lie in memory the list's shaders are bound to write (root views reach to the end of their buffer, the world's heap is bound whole), so what is written since a pass has to be known more closely than by what is bound before 2's gain can be had exactly. Every frame of the standard moves saved with 3: no frame with the sea or its resolve missing in 508 (2 had it 6 times in 271); the 4 frames the scan flags are the roof beam passing while the camera orbits. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions