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 23:43:47 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-27 23:43:47 -0500
commit8f54f837162878df3fc9b89a1a5c13a00dfc3898 (patch)
tree2c9b4e2dd7a9a0f2bb09a07947758b229df2e628 /runtime/xma_decoder/tests/ffi_cpp_smoke.cpp
parentf55bf5065e009f35059b246d235827b0348a1b0e (diff)
A texture refresh waits only for the changes of mapping that touch its own memory (LEONIDA_REMAP_SPANS=0: for every change, as before)
The runtime changes what title memory shows under one lock for all of title memory, and every read of a texture in place waited for it. While the title streams, the GPU's page mappings hold that lock most of the time (16 pages to a hold, each an unmapping and a mapping; single holds of 45 to 70 ms), and the refreshes that waited were of textures the change did not touch. A change now says which views it takes away for its moment (the views its pages lie in, whole), and a read that names its range waits only for a change that touches it; a change waits for the named reads of what it touches, as it did for all. Changes that say nothing touch everything, and reads that name nothing wait for every change, as before. The title's own XMemMapPhysicalPages and the page mappings behind its CopyPageMappings say what they touch; the texture refresh and the movie planes' fill name their range. Walking and turning at a save (Series X profile, 1440p, Ryzen 5 7600X, RTX 4060 Ti; the switch turned every 15 s in one run, 25 phases): mean 153.3 -> 129.5 ms a frame, median 117.2 -> 103.1, p90 305.1 -> 230.5. Of 130 to 320 named reads a frame, 6 to 128 went on beside a change of other memory and none waited for one of its own. Standing still the lock is held 5 to 13 ms a frame and nothing changes. 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