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
This commit is contained in:
yair 2025-11-14 18:27:56 +02:00
parent e16d36128b
commit 8c650dde33

View File

@ -7,8 +7,8 @@
# ] # ]
# /// # ///
# #
# NOTE: For higher performance (200+ fps), see the Go implementation: # NOTE: For higher performance (?), see the Go implementation:
# scripts/go/main.go - Significantly faster, handles 200+ fps easily # scripts/go/main.go -
# Build: Run scripts/build_go_receiver.ps1 (Windows) or scripts/build_go_receiver.sh (Linux/macOS) # Build: Run scripts/build_go_receiver.ps1 (Windows) or scripts/build_go_receiver.sh (Linux/macOS)
# See scripts/go/README.md for setup instructions # See scripts/go/README.md for setup instructions
# #