diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 12:16:10 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 12:16:10 -0500 |
| commit | 6e80eb8648e60bf496df97a3ca004b9b4577cd4c (patch) | |
| tree | 865ecac7b61c4b7b17142cea9b06c53903abe44e /runtime/test/vk_queue_query_sync_test.cpp | |
| parent | f0e451db06729e22a2d366c56962970e1447ab7d (diff) | |
Page-mapping copies done behind the title's call (LEONIDA_ALIAS_LATER, on)
While the world streams in and while the player drives, the title maps 1,000-3,000 pages of
64 KiB a second through CopyPageMappingsBatchX, each an unmapping (100-300 us: it flushes every
processor's translations) and a mapping: 600-1,900 ms of its thread a second, 69 ms a frame in
2.2 calls, and in the chain a present waits for while the card stood idle 79-122 ms a frame
(timelines and the streaming log). Eight mapping threads (LEONIDA_MAP_THREADS, A/B of 5 phases
each while driving) gave nothing: median 104.2 ms with one, 110.8 with eight.
The call now only looks up which physical pages the ranges are to show (the title maps other
pages into its pool next) and returns; a thread of ours does the mapping in the order asked, and
the queue's line gets an entry that every later submission and present stands behind until those
mappings are done. Submissions already in the line run before it, as on the console's queue.
A/B while driving, 4 phases of 30 s each way: mean 108.5 -> 99.9 ms a frame, median 98.6 ->
92.4, p90 144.4 -> 116.8; no exception, no failed mapping.
LEONIDA_ALIAS_SAME (a page that shows the same page already stays mapped) is in and counted:
0 of 112,452 pages, so it saves nothing with this title.
Unit test: the pages looked up at the call are what is mapped after the pool has been mapped to
other pages; a source of 0 unmaps; a source that shows nothing fails.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/vk_queue_query_sync_test.cpp')
0 files changed, 0 insertions, 0 deletions