diff --git a/src/trekstor.rs b/src/trekstor.rs index a8fe496..985bdff 100644 --- a/src/trekstor.rs +++ b/src/trekstor.rs @@ -1,3 +1,4 @@ +use std::thread::sleep; use std::time::{Duration, Instant}; use self::input::InputState; @@ -56,6 +57,7 @@ impl Trekstor { self.input.finish(); self.accumulator += dt; + sleep(Duration::from_millis(1)); } } }