From c2bf6ad988803aeec0d57bbc42c9d7b14644e22c Mon Sep 17 00:00:00 2001 From: Lucas Meurer Date: Mon, 6 Jan 2025 12:33:18 +0100 Subject: [PATCH] Change max_steps and step_dt --- crates/egui_kittest/src/builder.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/egui_kittest/src/builder.rs b/crates/egui_kittest/src/builder.rs index ade0aace032..d21558113b8 100644 --- a/crates/egui_kittest/src/builder.rs +++ b/crates/egui_kittest/src/builder.rs @@ -21,8 +21,8 @@ impl Default for HarnessBuilder { pixels_per_point: 1.0, state: PhantomData, renderer: Box::new(LazyRenderer::default()), - max_steps: 6, - step_dt: 1.0 / 6.0, + max_steps: 4, + step_dt: 1.0 / 4.0, } } } @@ -46,7 +46,8 @@ impl HarnessBuilder { /// Set the maximum number of steps to run when calling [`Harness::run`]. /// - /// Default is 6. + /// Default is 4. + /// With the default `step_dt`, this means 1 second of simulation. #[inline] pub fn with_max_steps(mut self, max_steps: u64) -> Self { self.max_steps = max_steps; @@ -55,7 +56,7 @@ impl HarnessBuilder { /// Set the time delta for a single [`Harness::step`]. /// - /// Default is 1.0 / 6.0 (6fps). + /// Default is 1.0 / 4.0 (4fps). /// The default is low so we don't waste cpu waiting for animations. #[inline] pub fn with_step_dt(mut self, step_dt: f32) -> Self {