From 8c650dde3386835f35cff5928f86c9e51d8d3ecb Mon Sep 17 00:00:00 2001 From: yair Date: Fri, 14 Nov 2025 18:27:56 +0200 Subject: [PATCH] Optimize recv_raw_rolling.py: NumPy indexing, display throttling, and MJPEG recording - Replace cv2.rotate() with NumPy array indexing for 2x+ speedup - Add --display-fps argument to throttle display refresh while capturing all UDP frames - Add --save-mjpeg argument to record rolling display to MJPEG video - Fix display throttling to capture all frames while only refreshing display at specified rate - Performance: ~300 FPS no-display, ~100 FPS full display, 150-250+ FPS with throttling --- scripts/recv_raw_rolling.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/recv_raw_rolling.py b/scripts/recv_raw_rolling.py index bc82827..29f62e5 100644 --- a/scripts/recv_raw_rolling.py +++ b/scripts/recv_raw_rolling.py @@ -7,8 +7,8 @@ # ] # /// # -# NOTE: For higher performance (200+ fps), see the Go implementation: -# scripts/go/main.go - Significantly faster, handles 200+ fps easily +# NOTE: For higher performance (?), see the Go implementation: +# scripts/go/main.go - # Build: Run scripts/build_go_receiver.ps1 (Windows) or scripts/build_go_receiver.sh (Linux/macOS) # See scripts/go/README.md for setup instructions #