From 2860542c41d5e8ff0dec6eab808cd2a5c5bcb247 Mon Sep 17 00:00:00 2001 From: Dmitry Zolotukhin Date: Sat, 3 Feb 2024 15:41:16 +0100 Subject: [PATCH] Removed debug code to log VK init. Reusing VK and Ash reduced init time from 1.7 seconds to < 0.01. --- src/correlation/vk.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/correlation/vk.rs b/src/correlation/vk.rs index 11b6f9d..0658392 100644 --- a/src/correlation/vk.rs +++ b/src/correlation/vk.rs @@ -459,7 +459,6 @@ impl DeviceContext { let max_pixels = img1_pixels.max(img2_pixels); let max_buffer_size = max_pixels * 4 * std::mem::size_of::(); - let start_time = SystemTime::now(); let current_buffer_size = self .device .as_ref() @@ -485,9 +484,6 @@ impl DeviceContext { }; device.buffers = Some(buffers); device.set_buffer_direction(&CorrelationDirection::Forward)?; - if let Ok(t) = start_time.elapsed() { - println!("Initialized device in {:.3} seconds", t.as_secs_f32()); - } Ok(()) }