Re:The U.S. Navy's $100M Checkbox (2019)
by stonemetal12 on Wednesday August 21, 2024 @10:04AM
(#41310426)
Yeah, I probably should have put it your way. It gels better with the next paragraph about ignoring user input for some amount of time after the initial signal.
Re:The U.S. Navy's $100M Checkbox (2019)
by appplication on Wednesday August 21, 2024 @03:07PM
(#41313192)
It depends on the application. If you wanted to debounce, for example, user autocomplete inputs that will be fed as a search term into your service, generally you would not want to start returning results when a user types the first letter “a” and continues typing, but instead wait for the user to stop typing for a fraction of a second.
If you have exceptional resources you may choose to not debounce at all, but for applications with latency behind it, it can make more sense to just wait for the user to signal they are done.
That is the worst way to debounce, because it adds 10ms latency for no good reason. The better way is to act immediately but ignore further inputs for 10ms. You might also want a little bit of analog filtering to improve EMI tolerance, but that shouldn't add more than 1ms latency.