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-28 00:29:17 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-28 00:31:48 -0500
commit7efbbdd39abdfa319d5e89fc6645a11494dce2b9 (patch)
tree98efe0e9667dea30213464b5c8cc8d89aad15b46 /runtime/xma_decoder/tests/ffi_cpp_smoke.cpp
parent9fc4f4f6c30252d245a527a2d3a42898059939d2 (diff)
Host command allocators can be taken anew when old, and idle host lists let go (LEONIDA_ALLOCATOR_TRIM=1; off by default)
A D3D12 command allocator never gives back the memory of the most its list ever recorded into it: a list that once took a loading frame's commands keeps that for the run. In the play session of 2026-11-27 the 1,589 host lists alive stood for about 5.5 GB of the process's private memory; where the switch comes from, 1,600 allocators (host lists and their preludes) held about 2.3 GB. With the switch a host list's reset, and its prelude before it records again, takes a new allocator when the one it has is LEONIDA_ALLOCATOR_TRIM_S seconds old (30; 5 to 3600), and the old one goes behind the submissions still running, as anything retired. Host lists that waited idle in the pool for that long are let go with their allocators: the pool is last in, first out, so the lists a spike left over lie at its bottom and are not reset again. A title's list that the title does not reset keeps its allocator. A line with the frame-rate lines counts the three. Off by default: nothing was measured here. What a run has to say: the memory lines' private bytes with and without it after some minutes in the world, and the frame times, since every list takes a new allocator once in that many seconds and all lists made at the start come due together. Ported from trustno1-coder/VIctory-NVIDIA 64d4931 (VICTORY_ALLOCATOR_TRIM, on by default there since 63b902f; there the memory stack by skornuta, skornuta/victory-memory-stack 57fb136, patches 13 and 17). Tests: an_allocator_is_old_after_the_trims_seconds, a_reset_takes_an_old_allocator_anew (on the host's device: kept while not old, a new one when old, recorded into, closed and reset again), the_oldest_idle_lists_are_the_stale_ones. Run with them, one at a time: a_reset_list_gives_its_batch_scratch_buffers_back, a_reset_lists_read_back_buffer_is_the_next_read_backs, a_lists_scratch_memory_is_at_its_buffers_address. The prelude's swap has no test of its own. Not run in the game. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/xma_decoder/tests/ffi_cpp_smoke.cpp')
0 files changed, 0 insertions, 0 deletions