upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/shadow_keep_test.cpp
AgeCommit message (Collapse)Author
7 daysruntime: Round 10 WS2 — shared Cell::known_* cache, TitleHeap changed() ↵Jan Trencansky
scoping, 64-tile bridging, fused AVX2 copy_and_sum_256 & filter/collect cuts - Move title_memory_map::changed() into TitleHeap::hooks.commit/decommit and !from_mirror_heap in free_title_block() - Share Cell::known_* across CellGuard & TitleTextureCells (no PAGE_READONLY no-guard cache; MEM_RESERVE intra-pass in TitleTextureCells, cross-pass in CellGuard; seed on xmem::map_view) - Persist TitleTextureCells VQ cache across outer batches; bridge across run_already_armed_ tiles with uniform restore[0..15] up to kMaxBridgeGap=64 - Persist 1024-entry local_mirror per ConsoleHeap*, flush Phase A/B disjointly, handle !base V#s in Phase A, skip redundant WC BAR writes for waiting T#s - Fused SEH-safe AVX2/SSE2 guarded::copy_and_sum_256(), kMaxWorkers=8, single-reader title_write_watch::ask() fast path preserving mark() entries AI-assisted: Antigravity (Gemini 4 Neon).
7 daysruntime: Round 8 WS1 — PageMirror batching, direct page table, L1-strip ↵Jan Trencansky
AVX2 hashing, sub-page readback & heap WC buffering - CellGuard::arm_batch(): per-batch sync_known_protect, range-scoped changes_since(), gap-bridging (<=8 cold tiles, pin-guarded), reopen() fast-path via Cell::armed_map_gen - shadow_keep::sum_of_batch_256() hoisted AVX2/SSE2/scalar batch hash + 4 KiB L1-hot strips in TitleMirror::upload() & prehash_readback_slice() - TitleWritePolicy PageRef active lists (no frame_hot) + TitleMirror 2-level per-chunk direct page table + has_pending() fast-path + refs>1 alias handoff - Feed coalescing + watch_batch/unwatch_batch in refresh_page_mirror() - Sub-page 256B-aligned vkCmdCopyBuffer readback, page_mirror_buffer resolve_cache, OutScratchGuard WC buffering in apply_in_place_changes/finish_in_place, lock-free reclaim_arena/update_address_guard AI-assisted: Antigravity (Gemini 4 Neon).
10 daysd3d12: a slot-133 shadow keeps the GPU's writes where the title's bytes did ↵DadaCap
not change (LEONIDA_SHADOW_KEEP) ShadowPages copies pages that carry no sign of a title write (aliased, unguarded, reopened with their 64 KiB block, write-watched or pinned) at every refresh, and that copy overwrote what a shader had stored in the shadow with the title's unchanged bytes. A value a compute program writes for the next frame then read back as the title's old bytes every other frame. Each tracker now keeps a 64-bit sum per 256-byte piece of the bytes it copied last (runtime/src/shadow_keep.h) and copies a piece only when the title's bytes differ. Zeroed pages forget their sums. LEONIDA_SHADOW_KEEP=0 copies every job whole, as before. New CPU-only test shadow_keep. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gt9hwRYcpySx4P4ncQ3wD5