News for hackers. Stuff that matters.
Re:Keyboard Latency by davemp on Thursday December 01, 2022 @12:03PM (#33819095)
The rule of thumb floating around when I was working on physical input devices last was to keep latency under 50ms so people wouldn't get frustrated. I don't have any sources but it becomes a bit more obvious when you look at it as fractions of seconds and then compare that to how slowly seconds actually tick by on a clock.

I remember Dan posting that he typed at ~120wpm somewhere. 120wpm is 0.002 words per ms or 0.4 words per 200ms. Wouldn't one notice if they're almost halfway through a word and nothing has shown up on the screen?

Re:Keyboard Latency by dspillett on Thursday December 01, 2022 @12:23PM (#33819395)
> Wouldn't one notice if they're almost halfway through a word and nothing has shown up on the screen?

There is quite a delay between the eye detecting something and it being consciously processed to the point of being used in decision making. Away from built-in reactions (move hand away from burning sensation and so forth) that are not consciously controlled there is a sometimes surprising amount of latency in our view of the world. It is surprising because the brain does a rather good job of smoothing it out with guesses/predictions such that you generally don't notice.

Only when things fall outside the range of patterns you naturally cope with or expect because they are consequences of your own actions, do you really become aware of them. So he might not notice usually, but would if an error or something else unexpected occurred.

This is why 100ms, or even sometimes 200ms, is fine for many things, but others cause irritation despite delays of 40ms or sometimes significantly lower. The brain smooths out what it can, the rest sets of warnings of potential trouble.

Re:Keyboard Latency by layer8 on Thursday December 01, 2022 @03:19PM (#33822130)
Not sure why this is being downvoted.
Re:Keyboard Latency by jokteur on Thursday December 01, 2022 @01:29PM (#33820412)
Even for certain applications, 50ms is quite a lot. When using MIDI devices and playing piano over the computer, I certainly notice anything above 20ms.

We may be slow to react to sudden events, but we are very good at noticing the lag for predictive events (keyboard typing, piano playing, ...).

Re:Keyboard Latency by layer8 on Thursday December 01, 2022 @03:18PM (#33822112)
Yes, a single 60-Hz-frame delay (~16.7 ms) can certainly be noticeable.
Re:Keyboard Latency by cpach on Thursday December 01, 2022 @08:15PM (#33825504)
Martin Molin of the Wintergatan fame recently posted some experiments regarding latency on his YouTube channel[0]. From watching those videos it becomes quite obvious that your statement is definitely correct.

[0] This is the first one about the recent experiments: https://www.youtube.com/watch?v=VyIk0IqC7SQ

Re:Keyboard Latency by davemp on Thursday December 01, 2022 @05:41PM (#33824012)
Yeah this rule of thumb was for low fidelity things like hand radio buttons.

For higher fidelity tasks like mouse movements, I'm pretty sure I can notice the difference between 16ms at 60hz and 8ms at 120hz. But it's hard to tell if that's because of pure latency or smoothness, I would suspect the latter.