mirror of
https://jihulab.com/mr-one/openpilot.git
synced 2026-10-27 21:13:42 +08:00
303cfa8107
- add openpilot/system/ui/lib/ui_stream.py: MJPEG server on :8082 with async JPEG encode (no render-thread stall) + telemetry writer - application.py: STREAM=1 hooks - init attr, start server in init_window (create render texture if needed), capture frame before _monitor_fps - launch_env.sh: STREAM=1 default (STREAM=0 disables), port 8082, quality 50, 10 fps
29 lines
693 B
Bash
Executable File
29 lines
693 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
export OMP_NUM_THREADS=1
|
|
export MKL_NUM_THREADS=1
|
|
export NUMEXPR_NUM_THREADS=1
|
|
export OPENBLAS_NUM_THREADS=1
|
|
export VECLIB_MAXIMUM_THREADS=1
|
|
|
|
# models get lower priority than ui
|
|
# - ui is ~5ms
|
|
# - modeld is 20ms
|
|
# - DM is 10ms
|
|
# in order to run ui at 60fps (16.67ms), we need to allow
|
|
# it to preempt the model workloads. we have enough
|
|
# headroom for this until ui is moved to the CPU.
|
|
export QCOM_PRIORITY=12
|
|
|
|
if [ -z "$AGNOS_VERSION" ]; then
|
|
export AGNOS_VERSION="19.7"
|
|
fi
|
|
|
|
export STAGING_ROOT="/data/safe_staging"
|
|
|
|
# Comma4-UI-Streamer (MJPEG UI stream) - set STREAM=0 to disable
|
|
export STREAM=1
|
|
export STREAM_PORT=8082
|
|
export STREAM_QUALITY=50
|
|
export STREAM_FPS=10
|