Skip to main content

MOUSE_SOURCE_V2_MAX_UNACKNOWLEDGED_EVENTS

Constant MOUSE_SOURCE_V2_MAX_UNACKNOWLEDGED_EVENTS 

Source
pub const MOUSE_SOURCE_V2_MAX_UNACKNOWLEDGED_EVENTS: u32 = 150; // 150u32
Expand description

The default maximum number of unacknowledged events allowed in flight for [MouseSourceV2].

Reflects approximately 0.625 seconds (625ms) of buffered events for a typical 240Hz sensor sampling rate.

The server (Scenic) will throttle event delivery when unacknowledged events in flight reach this limit. Clients should send acknowledgments periodically (e.g. before reaching the limit, such as within 20 remaining credits) to avoid being throttled.