diff --git a/displayarray/frame/frame_publishing.py b/displayarray/frame/frame_publishing.py index 9a12bf2..2f06024 100644 --- a/displayarray/frame/frame_publishing.py +++ b/displayarray/frame/frame_publishing.py @@ -40,7 +40,7 @@ def spinwait_us(delay): # thx: https://stackoverflow.com/a/74247651/782170 target = time.perf_counter_ns() + delay * 1000 while time.perf_counter_ns() < target: - pass + time.sleep(0) def pub_cam_loop_pyv4l2( cam_id: Union[int, str, np.ndarray],