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