diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-30 22:39:44 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-30 22:39:44 -0500 |
| commit | e22a5ea7a91023ebfb3ed1be96af449df890602e (patch) | |
| tree | 8fe9a7fffd8b9df3b3037d89875cf32b053bb1e1 /runtime/xma_decoder/tests/ffi_cpp_smoke.cpp | |
| parent | 023043bfe1acbcbb34ef721adae08874edb6858f (diff) | |
Lists' scratch in the card's memory keeps spares to the card's budget, guards against churn, and is on again for big cards
TheGeogeo turned LEONIDA_SCRATCH_CARD off by default (f8ad7e245, #2819) "until the card's spare chunks are kept by
size": the card's pool kept 256 MiB of spare chunks in all, in the order they came, and let go of every chunk given
back past it, so the lists' resets freed chunks the recording threads made again (1,158 a second and 35 ms a frame
of MakeResident on an RTX 3090). Now:
- the card's spare chunks are kept up to a sixteenth of its budget, between 256 MiB and 1 GiB
(LEONIDA_SPARE_CARD_MB=<MB> says it), and when the pool is full those kept longest go, not the one given back
(Spare::give_evicting); LEONIDA_SPARE_CARD_GROW=0 keeps the old pool, LEONIDA_AB can name it;
- a guard sends new chunks to the PC's memory for the rest of the run if more than 1,000 are made in the card's
within 10 s (100 a second; this PC's worst was 48 with the old pool), said once;
- with both, card scratch is on again where the card's budget is 9 GiB or more, as before #2819.
Measured before the change (run d281, RTX 4060 Ti 16 GB, by turns of 4 s standing, the old pool): card scratch on
against off, the frame's median -1.15 +-0.36 ms, the card -1.72 +-0.30, with 48 chunks a second made in the card's
memory and 3.7 ms a frame waited for their residency.
AI-assisted (Claude). Tested on RTX 4060 Ti 16 GB, driver 616.64: cargo check with and without diagnostics, the
two new tests (the default by card and switch, the pool letting the oldest go); in-game A/B to follow.
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