Files
vf-cuda-grid/controller/cuda_grid_controller
gx 976aed52e9 controller: FrigateBridge bbox throttling — rate-limit + delta filter
Frigate publishes 5-10 detection events/sec при motion → каждое emit ZMQ
overlay update к pipeline (mutex acquire, atlas rebuild). Это блокирует
render thread и вызывает TV stutter (см. cuda-grid-filter-stutter memory
2026-05-21 диагностика).

Throttle config:
  bbox_min_interval_sec: 0.25  # max 4 updates/sec на event_id
  bbox_delta_threshold: 0.02   # skip если все coords changed < 2% camera dim

State в self._event_bbox_last: event_id → (timestamp, nx, ny, nw, nh).
Cleanup в _remove_event_overlay (event end).

С default 0.25s + 0.02 threshold:
  5-10 ev/sec → ~2-4 ev/sec applied (rate-limit), плюс stationary objects
  не апдейтятся вообще (delta filter). Render-thread load на bbox flow
  снижается 60-80%.

Эффект — можно вернуть bbox_overlay=true в controller.yaml без risk
TV stutter. Diagnostic-disable из 2026-05-21 теперь не нужен.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-22 09:38:00 +01:00
..