diff --git a/PyFlyt/core/aviary.py b/PyFlyt/core/aviary.py index b04c0bbe..35b21b36 100644 --- a/PyFlyt/core/aviary.py +++ b/PyFlyt/core/aviary.py @@ -415,7 +415,7 @@ def step(self): elapsed = time.time() - self.now self.now = time.time() - self._sim_elapsed += self.update_period * self.updates_per_step + self._sim_elapsed += self.update_period self._frame_elapsed += elapsed time.sleep(max(self._sim_elapsed - self._frame_elapsed, 0.0))