diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 23:43:47 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 23:47:35 -0500 |
| commit | 2119479a1de8f11b46b04996848bb20ad89a096b (patch) | |
| tree | 9033c4787f9cc64f50f6600c467696a1bbbd18bc /runtime/src/xma2_decoder.cpp | |
| parent | 4ccb322d2f3890197ac422040442b1c748972b6e (diff) | |
Lists share the scratch buffers of their batched clamps: a list gives them back when it is reset (LEONIDA_BATCH_SCRATCH_POOL=0: it keeps all it ever took, as before)
A buffer of 64 KiB of the card's own memory holds the clamped records of
eight batches. A list took one more whenever a recording had more batches
than its buffers held and kept them for as long as it lived; host lists
are reset and handed to the next recording that asks, so in time every
list held as many as the heaviest recording it ever served, and nothing
counted them. In the play session of 2026-11-27 (RTX 4060 Ti, some 1,100
indirect commands bounded a frame, 1,589 host lists) 50,000 card buffers
of 60 KiB on average, 3.0 GB, were made after the world had loaded, fewer
with every minute in one place and many again in the next, and the card's
memory in use rose by as much in each 42 seconds beside everything the
memory lines count, until the card was full. That those buffers were
these is what their size, their number and the way they came say; the
census of the commit before counts them by the line that made them.
Now a list's buffers go to a table when the list is reset, as its scratch
chunks do, and a recording takes one from there before one is made; at
most 1,024 are kept while no list holds them (64 MiB). A line with the
frame-rate lines says how many were made, taken, kept and let go.
Tests: batches_kept; a reset list holds none, its buffers are not let go,
another list's batch never gets a buffer a list still holds, and the next
recording starts at a buffer's first place in the common state (on the
card of this machine); indirect::tests::host_list_batches, which runs two
recordings of twelve batches on the card, passes with the switch on and
off.
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