diff --git a/benches/comet.rs b/benches/comet.rs index d02133e..e14a51b 100644 --- a/benches/comet.rs +++ b/benches/comet.rs @@ -9,8 +9,8 @@ fn trail(c: &mut Criterion) { let mut driver = comet::build_driver(); driver.mount(sled); - let simulated_duration = 30.0; - let simulated_hz = 144.0; + let simulated_duration = 15.0; + let simulated_hz = 60.0; let total_steps = (simulated_duration * simulated_hz) as usize; let timestep = Duration::from_secs_f32(1.0 / simulated_hz); let mut r = 0; @@ -34,9 +34,9 @@ criterion_group! { name = benches; config = Criterion::default() .significance_level(0.05) - .sample_size(50) - .warm_up_time(Duration::from_secs_f32(10.0)) - .measurement_time(Duration::from_secs_f32(25.0)); + .sample_size(30) + .warm_up_time(Duration::from_secs_f32(5.0)) + .measurement_time(Duration::from_secs_f32(20.0)); targets = trail } criterion_main!(benches); diff --git a/benches/ripples.rs b/benches/ripples.rs index ecd14d2..e7e4fe7 100644 --- a/benches/ripples.rs +++ b/benches/ripples.rs @@ -9,8 +9,8 @@ fn ripples(c: &mut Criterion) { let mut driver = ripples::build_driver(); driver.mount(sled); - let simulated_duration = 30.0; - let simulated_hz = 144.0; + let simulated_duration = 15.0; + let simulated_hz = 60.0; let total_steps = (simulated_duration * simulated_hz) as usize; let timestep = Duration::from_secs_f32(1.0 / simulated_hz); let mut r = 0; @@ -33,9 +33,9 @@ criterion_group! { name = benches; config = Criterion::default() .significance_level(0.05) - .sample_size(50) - .warm_up_time(Duration::from_secs_f32(10.0)) - .measurement_time(Duration::from_secs_f32(25.0)); + .sample_size(30) + .warm_up_time(Duration::from_secs_f32(5.0)) + .measurement_time(Duration::from_secs_f32(20.0)); targets = ripples } criterion_main!(benches); diff --git a/src/config.rs b/src/config.rs index 836907c..2d013bd 100644 --- a/src/config.rs +++ b/src/config.rs @@ -5,7 +5,7 @@ use alloc::vec::Vec; use crate::error::SledError; use core::str::Lines; -use glam::Vec2; +use crate::Vec2; use smallvec::SmallVec; #[cfg(not(feature = "std"))] diff --git a/src/led.rs b/src/led.rs index b8f46f1..1c754fb 100644 --- a/src/led.rs +++ b/src/led.rs @@ -1,5 +1,5 @@ use crate::color::Rgb; -use glam::Vec2; +use crate::Vec2; #[cfg(not(feature = "std"))] use num_traits::float::Float as _; diff --git a/src/spatial_led/directional.rs b/src/spatial_led/directional.rs index 7949022..eef676b 100644 --- a/src/spatial_led/directional.rs +++ b/src/spatial_led/directional.rs @@ -1,7 +1,7 @@ use alloc::collections::BTreeSet; use crate::{color::Rgb, led::Led, Filter, Sled}; -use glam::Vec2; +use crate::Vec2; use smallvec::SmallVec; /// # directional read and write methods diff --git a/src/spatial_led/maps_and_filters.rs b/src/spatial_led/maps_and_filters.rs index 76cb810..bf18022 100644 --- a/src/spatial_led/maps_and_filters.rs +++ b/src/spatial_led/maps_and_filters.rs @@ -7,10 +7,9 @@ use crate::{ color::Rgb, led::Led, spatial_led::{Filter, Sled}, + Vec2, }; -use glam::Vec2; - /// Maps impl Sled { pub fn map(&mut self, led_to_color_map: impl Fn(&Led) -> Rgb) { diff --git a/src/spatial_led/positional.rs b/src/spatial_led/positional.rs index 93a8ebc..a81a9d5 100644 --- a/src/spatial_led/positional.rs +++ b/src/spatial_led/positional.rs @@ -4,9 +4,9 @@ use crate::{ color::Rgb, led::Led, spatial_led::{Filter, Sled}, + Vec2, }; -use glam::Vec2; use smallvec::{smallvec, SmallVec}; #[cfg(not(feature = "std"))]