Skip to content

Commit

Permalink
fix time bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jjshoots committed Apr 30, 2024
1 parent fda7055 commit 3406dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyFlyt/core/aviary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 3406dbe

Please sign in to comment.