upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/bcpack.cpp
diff options
context:
space:
mode:
authorIlyassRS <ilyassroussi2000@gmail.com>2026-11-25 15:29:56 +0100
committerIlyassRS <ilyassroussi2000@gmail.com>2026-11-25 17:20:50 +0100
commit3233b9857fc299eccff5b26820e42cadd258e12b (patch)
tree0599087a63c943b6bcd76f775299e9a6461ed30b /runtime/src/bcpack.cpp
parentb0f3d3998f0401eb7df8ddbb7a303d1e6bee9fb8 (diff)
d3d12: track live console-heap V# slots in a host-RAM bitset
When released_backings or title_va_aliases().invalidations() advances, refresh_console_heap() previously scanned all 32-byte slots of heap.copy linearly to find live buffer V#s (!(w[3] >> 30) && (w[2] || w[6])). When heap.copy sits in arena.mapped (uncached write-combined GPU memory), each buffer release triggered ~180k uncached PCIe reads across a 5.5 MiB heap. Add a portable host-RAM bitset (leonida::ConsoleHeapVsharpSlots in runtime/src/console_heap_vsharp_slots.h) updated at every resource-heap write to heap.copy (fix_console_slot, deferred fix_over zeroing, for_each_zeroed, and add_console_heap reset), and iterate only live V# slots during invalidation passes (0 reads from heap.copy; 64 slots skipped per word via std::countr_zero). Item: RT-CONSOLE-HEAP-VSHARP-BITSET
Diffstat (limited to 'runtime/src/bcpack.cpp')
0 files changed, 0 insertions, 0 deletions