diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-27 11:31:36 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-27 11:44:26 -0500 |
| commit | 4442c5b64601d8d461b74a383347d03087c211f1 (patch) | |
| tree | 3ab0211f7b47830e8cba35769bb7e52c1d605512 /runtime/test/submit_frame_test.cpp | |
| parent | 5cbd3e557b4cd708784ff18f7212d9838dd60640 (diff) | |
runtime: restore kPromote=6/8, drop frame_hot over-copying, and wire region-batched MEM_WRITE_WATCH
- TitleWritePolicy (runtime/src/title_write_policy.h): restore kPromote = 6
(of kHistory = 8) and cleanly remove the frame_hot / present_frame() tier
and its dead fields/counters so 1/frame pages never trigger per-submission
over-copying or copies on empty submissions. Keep O(dirty + hot + recent)
active lists and sorted Guard::arm_batch() batching.
- HotColdTracking (runtime/src/title_mirror_hot_cold.h) & d3d12_vulkan_device.cpp:
remove the dead on_present() / last_present_serial hook (coordinated with
gate-async-fixer) and unused write_watched_* getters, and cache
region-batched MEM_WRITE_WATCH runs (bridging verified MEM_COMMIT gaps <=
1 MiB, capped at 64 MiB per GetWriteWatch call, never bridging uncommitted
holes, with O(1) unordered_set dirty filtering and conservative dirty
recording + split-retry on mid-run refusal so no journaled write is lost)
so steady-state collect() runs in O(regions + dirty) without walking
ww_pages_.
- TitleHeap (runtime/src/title_heap.h) & xmem.cpp: upgrade for_each_committed()
to emit maximal coalesced committed extents (exact complement of free_runs_,
O(free_runs_.size()) instead of scanning all 32k span slots, never spanning
uncommitted holes) and wire MEM_WRITE_WATCH with silent MEM_RESERVE fallback
+ title_write_watch registration/marks in mirror_heap_ready() (never
combined with MEM_LARGE_PAGES, MEM_PHYSICAL, or section views).
- Tests: update title_write_policy_test.cpp (kPromote = 6/8 and zero copies
of 1/frame pages on empty submissions) and title_heap_test.cpp (coalesced
for_each_committed() tracking around decommitted holes).
AI-assisted: Antigravity, Gemini 4 Neon
Diffstat (limited to 'runtime/test/submit_frame_test.cpp')
0 files changed, 0 insertions, 0 deletions