Pages are mapped side by side: eight threads stand in the host's queue instead of one

Mapping and unmapping a view wait for what every protection change of a
view takes too (about 100,000 a second, the guards'): 0.2-4 ms a page, all
on the one thread the title loads with. Scatter maps and the GPU's
page-mapping copies go in groups of up to 64 pages, noted before and after
on the caller's thread, the system calls on up to eight
(VICTORY_MAP_THREADS=1: one after the other, as before).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 04:31:31 -06:00
1 parent 0d065d3521
commit 565f4a5603
4 files changed
+458 -29

No files matched your search

+1
View File
@@ -19,6 +19,7 @@ extern "system" fn create_device(
) -> HRESULT {
victory_gpu::resource::use_allocator(super::xmem::XMemAlloc, super::xmem::XMemFree);
victory_gpu::resource::use_page_mapper(super::xmem::map_alias);
victory_gpu::resource::use_many_page_mapper(super::xmem::map_aliases);
#[cfg(windows)]
victory_gpu::on_failure(host_gpu_failed);
device::create(adapter, parameters, iid, out)