From e4cbafb6324d0882957dd2abe6b620441fcc8e09 Mon Sep 17 00:00:00 2001 From: Albin Chaboissier Date: Sat, 31 Oct 2026 12:15:57 +0100 Subject: [PATCH] timestamp radix profile --- src/main.rs | 2 +- src/voxel_cache/eviction.rs | 21 ++++++++++++--------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9aed685..7fee126 100644 --- a/src/main.rs +++ b/src/main.rs @@ -354,7 +354,7 @@ impl State init: voxel_cache::CacheAttributeInit::External, }); - let voxel_cache = VoxelCache::<4>::new(&device, 100_000, &layout); + let voxel_cache = VoxelCache::<4>::new(&device, 150_000, &layout); let request_buffer = CacheRequestBuffer::new(&device, 1024); let insertion_data = CacheInsertionData::new(&device, 1024, &layout); diff --git a/src/voxel_cache/eviction.rs b/src/voxel_cache/eviction.rs index a5f9566..f5ddb07 100644 --- a/src/voxel_cache/eviction.rs +++ b/src/voxel_cache/eviction.rs @@ -138,15 +138,18 @@ impl CacheEvictor reset_pass.dispatch_workgroups(self.reset_lru_list_dispatch, 1, 1); } - ressources.radix_sorter.sort( - device, - &ressources.scratch_buffer, - &self.lru_list, - None, - Some(self.page_count), - &mut encoder, - radix_sort::RadixSortDirection::Ascending, - ); + { + gpu_profiler::begin_scope!(encoder, "timestamp radix"); + ressources.radix_sorter.sort( + device, + &ressources.scratch_buffer, + &self.lru_list, + None, + Some(self.page_count), + &mut encoder, + radix_sort::RadixSortDirection::Ascending, + ); + } } pub fn bind_group(&self) -> &BindGroup