Skip to main content

TOUCH_SOURCE_V2_MAX_UNACKNOWLEDGED_EVENTS

Constant TOUCH_SOURCE_V2_MAX_UNACKNOWLEDGED_EVENTS 

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

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

Reflects approximately 0.625 seconds (625ms) of buffered events for a typical 240Hz touch 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.