Skip to content

Commit

Permalink
Removed debug code to log VK init.
Browse files Browse the repository at this point in the history
Reusing VK and Ash reduced init time from 1.7 seconds to < 0.01.
  • Loading branch information
zlogic committed Feb 3, 2024
1 parent 279676d commit 2860542
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/correlation/vk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<i32>();

let start_time = SystemTime::now();
let current_buffer_size = self
.device
.as_ref()
Expand All @@ -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(())
}

Expand Down

0 comments on commit 2860542

Please sign in to comment.