4 ms·
There's no need for debouncing to introduce latency under normal circumstances. React immediately to state changes, and whenever you observe a state change begi
by mrob 7y ago
There's no need for debouncing to introduce latency under normal circumstances. React immediately to state changes, and whenever you observe a state change begin temporarily ignoring further state changes for long enough for the bouncing to settle. The only added latency is on the falling edge of extremely short presses (or rising edge of extremely short releases), which in practice doesn't happen because of limited speed of the human hand. But note that latency-adding debouncing methods double as noise filters, which this technique does not, so you might want to add a bit of noise filtering (and associated latency) too.
- Cerium 7y agoI think of this as "non causal debouncing". You debounce before the event happens.