by PragmaticPulp · 6y ago · 0 comments
Humans don’t type on a tight feedback loop of waiting for characters to pop up on the screen, obviously.
We also need to keep the big picture in mind. If you’re using a 60Hz monitor, it’s only going to update every 17ms anyway. Add buffering and even pixel transition latency to the equation and the end-to-end latencies are even higher.
You’re not going to notice the difference between a terminal editor with 20ms of latency and one with 15ms of latency.
Actually, yes, they do. I can't dig up the reference right now, but evidence indicates that for touch typists, error rates rise as input latency increases.
Apparently, seeing your characters appear on screen is a cue the brain uses together with mechanical feedback and other things to do small muscular corrections on the fly.
So there's nothing obvious about a claim to the contrary.
On what magnitude, though? Can you please share the actual paper?
My claim was that 15ms vs 20ms input latency (actual numbers from the parent comment’s link) won’t make a difference. That shouldn’t be controversial, because all of our standard 60Hz monitors only refresh the frame every 17ms anyway.
For reference, blinking your eyes takes about 100ms. The difference between 15ms and 20ms latency is only 5ms, or literally 1/20th of the blink of an eye.
That difference isn’t going to change your typing error rate.
1 second of input latency will, but that’s orders of magnitude higher than anything discussed here.
Sometimes these multi-core 4+ GHz fast marvels of nanotechnology simply can't keep up with a meatbag on caffeine punching keys for food. Sad in a poetic way.
If your computer is so slow that it takes multiple seconds for letters to appear, something else is happening. Even old “fast” software is going to feel laggy if your system is so bogged down that it can’t keep up with typing inputs on that level.
Here is a short video from Microsoft (about 10 years old now) on the experience of using a touchscreen with 100ms of delay vs 1ms showing the steps in between. The difference is extraordinary for the user even if the end result is the same. https://www.youtube.com/watch?v=vOvQCPLkPt4
That’s additional input delay, not absolute latency.
More importantly, the visual effect you’re seeing isn’t the perception of input delay. It’s the positional difference between the finger location and the box location. Typing in a terminal doesn’t have the same visual difference. In fact, using a mouse doesn’t have the same visual difference because your finger isn’t right next to the screen for comparison. Try dragging a window across your screen right now. The “lag” is easily on the order of the 100ms shown in this demo, but you won’t find it anywhere near as disorienting because your finger isn’t on the screen for visual reference.
It’s not possible to have 1ms lag unless you have a 1000Hz screen and zero processing time for the inputs.
Compare that to the standard 60Hz displays that most laptops and cellular phones use. At 60Hz, the screen only updates once every 17ms. Add input lag, processing lag, rendering delay, buffering delay, and other delays and it’s nearly impossible to go from input to screen action in under 30ms. Most games are on the order of 60-80ms.
The individual pixels in your LCD can’t even toggle from black to white in 1ms.
A lot of the HN comments here are misunderstanding the time scales involved in all of this. For reference, a blink of an eye is about 100ms
30ms is close to extremely annoying. You will notice a 30ms latency in a video game when moving around, turning etc.
Having that kind of latency on mouse movement can make it close to impossible to hit fast targets in a shooter for instance, because it will destroy perceived synchronicity of input with the response, confusing your brain and destroying immersion.
The same can be said about navigating in a terminal based text editor. A few milliseconds of delay can take your brain from "I am the cursor" to "I am controlling this cursor, which respond a short time after I execute a certain action". Frustrating.
What is also super frustrating to me when using vim in a slow terminal is that I will consistently overshoot the line where I meant to place the cursor. I realize most of the latency probably comes from my brain and nervous system, but a few ms can be just enough to make the cursor end up in the next line instead.
That’s not true, though. It takes more than 30ms just to render your frame, deliver it to the monitor, and wait for a screen refresh.
PC Gamer recently measured some actual latency results. They found 60-80ms was fairly standard for lag between input and on-screen events: https://www.pcgamer.com/heres-how-stadias-input-lag-compares...
Notably, the online game streaming services have on the order of 150ms of latency. It starts to become noticeable, but it’s still entirely playable for many. If the gamers can handle 150ms of input lag, certainly we can deal with 30ms while typing in our consoles.