<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/runtime/src/shadow_keep.h, branch ci/exclude-legacy-cpp-runtime-tests</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=ci%2Fexclude-legacy-cpp-runtime-tests</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=ci%2Fexclude-legacy-cpp-runtime-tests'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-28T10:38:11+00:00</updated>
<entry>
<title>runtime: Round 10 WS2 — shared Cell::known_* cache, TitleHeap changed() scoping, 64-tile bridging, fused AVX2 copy_and_sum_256 &amp; filter/collect cuts</title>
<updated>2026-11-28T10:38:11+00:00</updated>
<author>
<name>Jan Trencansky</name>
<email>jan.trencansky@protonmail.com</email>
</author>
<published>2026-11-28T10:38:11+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=70ea06a50bc5323359492c34861b48a8d3c96db2'/>
<id>urn:sha1:70ea06a50bc5323359492c34861b48a8d3c96db2</id>
<content type='text'>
- Move title_memory_map::changed() into TitleHeap::hooks.commit/decommit and !from_mirror_heap in free_title_block()
- Share Cell::known_* across CellGuard &amp; 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).
</content>
</entry>
<entry>
<title>runtime: Round 8 WS1 — PageMirror batching, direct page table, L1-strip AVX2 hashing, sub-page readback &amp; heap WC buffering</title>
<updated>2026-11-28T08:31:04+00:00</updated>
<author>
<name>Jan Trencansky</name>
<email>jan.trencansky@protonmail.com</email>
</author>
<published>2026-11-28T08:31:04+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=f913286051eb00c81a99a8970b8fc6fe04d45d6d'/>
<id>urn:sha1:f913286051eb00c81a99a8970b8fc6fe04d45d6d</id>
<content type='text'>
- CellGuard::arm_batch(): per-batch sync_known_protect, range-scoped changes_since(), gap-bridging (&lt;=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() &amp; prehash_readback_slice()
- TitleWritePolicy PageRef active lists (no frame_hot) + TitleMirror 2-level per-chunk direct page table + has_pending() fast-path + refs&gt;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).
</content>
</entry>
<entry>
<title>runtime: AVX2/SSE2 shadow_keep::sum_of, parallel TitleMirror pool, and batched CellGuard arming</title>
<updated>2026-11-28T05:01:22+00:00</updated>
<author>
<name>Jan Trencansky</name>
<email>jan.trencansky@protonmail.com</email>
</author>
<published>2026-11-28T05:01:22+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=ecbdb30d106069531b18b307b101ee7ac4e723ad'/>
<id>urn:sha1:ecbdb30d106069531b18b307b101ee7ac4e723ad</id>
<content type='text'>
Speeds up shadow page hashing, TitleMirror upload/write-back, and guard re-arming:
- shadow_keep::sum_of: 4x256-bit AVX2 (#if defined(__AVX2__)) and 4x128-bit SSE2 fast paths with portable scalar fallback (2.52x single-core AVX2 speedup).
- TitleMirror: lazy 6-worker thread pool with exception-safe teardown and RAII join guard parallelizing upload() and write_back_batch() for &gt;=16 homes/jobs (4.76x upload, 6.08x write-back) while preserving exact serial aliasing semantics.
- CellGuard::arm_batch(): 1024-page contiguous runs, pin-batching outside mutex, and generation-guarded VirtualQuery cache.

AI-assisted: Antigravity (Gemini 4 Neon).
</content>
</entry>
<entry>
<title>d3d12: a slot-133 shadow keeps the GPU's writes where the title's bytes did not change (LEONIDA_SHADOW_KEEP)</title>
<updated>2026-11-26T00:22:14+00:00</updated>
<author>
<name>DadaCap</name>
<email>167002618+DadaCap@users.noreply.github.com</email>
</author>
<published>2026-11-25T23:46:03+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=0ebd4286ea80b5de20dbf7adf7bf6b970c7492df'/>
<id>urn:sha1:0ebd4286ea80b5de20dbf7adf7bf6b970c7492df</id>
<content type='text'>
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 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01Gt9hwRYcpySx4P4ncQ3wD5
</content>
</entry>
</feed>
