fix: precise_sleep is never called with negative value (#2757)

This commit is contained in:
Steven Palma
2026-01-06 20:09:43 +01:00
committed by GitHub
parent 963a3482fa
commit e2957d7783
10 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -374,7 +374,7 @@ def record_loop(
log_rerun_data(observation=obs_processed, action=action_values)
dt_s = time.perf_counter() - start_loop_t
precise_sleep(1 / fps - dt_s)
precise_sleep(max(1 / fps - dt_s, 0.0))
timestamp = time.perf_counter() - start_episode_t