Skip to main content

Module fps_monitor

Module fps_monitor 

Source
Expand description

M-RECP.2 / AUT-263 — Frame-rate budget instrumentation.

FrameRateMonitor keeps a sliding window of frame timestamps and emits a tracing::warn! when the sustained fps drops below a threshold. Hysteresis (separate low / high thresholds) prevents log spam when fps oscillates near the boundary.

Wired into M-CAM.3’s frame pipeline once the pipeline lands.

Structs§

FrameRateMonitor
Sliding-window frame-rate monitor.

Enums§

Transition
Threshold-crossing event from FrameRateMonitor::observe.

Constants§

RECOVER_THRESHOLD_FPS
Default recovery threshold — clear the warn state when fps returns above 26 (hysteresis prevents log spam).
WARN_THRESHOLD_FPS
Default warn threshold — emit when sustained fps drops below 24.