diff --git a/src/physics_worker.rs b/src/physics_worker.rs index 25fbc08..b1b1b9b 100644 --- a/src/physics_worker.rs +++ b/src/physics_worker.rs @@ -52,6 +52,8 @@ fn drain_queue(physics:&mut crate::physics::PhysicsContext,iterable:impl IntoIte } impl MouseInterpolator{ fn handle_instruction(&mut self,physics:&mut crate::physics::PhysicsContext,ins:TimedInstruction){ + //need to handle the case where mouse polling rate is less than 100hz + //also the whole thing is probably wrong lol let is_inserting_mouse_instruction=matches!(ins.instruction,InputInstruction::MoveMouse(_)); self.queue.push_back(ins); //We just pushed an element.