Live data from Hacker News

Keyboard latency

danluu.com

51–60 of 274 posts

Re: Keyboard latency

#51
post #15

Earlier quoted context omitted.

do serious gamers avoid v-sync ? even at 120Hz they get at least ~8ms * 2(double buffer) latency right ?

Yes, they want freesync or g-sync monitors with high refresh rates.

Or a good enough machine so that you never dip below native framerate.

Re: Keyboard latency

#52
post #11

Earlier quoted context omitted.

I wouldn't be surprised if the Apple keyboard is the fastest just because it has very shallow keys.

Sounds like a good argument for the superiority of shallow keys. I've always liked Apple keyboards - actually used their wired USB keyboard for a long time specifically because it felt like typing on a Powerbook.

Superior is a strong word, if your preference is to bottom out flat keys then thats all well and good. I personally type like I am playing an instrument, pressing just enough to activate and then letting the key push my finger up. I find no enjoyment on typing on an apple keyboard, which I am now and it also causes me joint pain from all the constant bottoming out.

Re: Keyboard latency

#53
By coincidence I just replaced my last Apple Keyboard with an MS 4000 today. I find it curious that they are both at the top of the list, even though I've never considered hardware latency an issue.

Re: Keyboard latency

#54

Isn't a big part of the reason "gaming" keyboards cost so much because they can register more than three keys (sometimes four) being hit at the same time - something many cheaper keyboards cannot do due to the way they are wired?

This is known as key rollover, see: https://en.wikipedia.org/wiki/Rollover_(key)

It is a result of the matrix wiring of the keys, though more expensive keyboards will have them wired individually, mitigating this issue.

Re: Keyboard latency

#56
post #38

Earlier quoted context omitted.

I've gotten a FTDI down to 2 ms RTT, so if done right (using isochronous transfer) you can get USB down to 1 or max 2 ms. Looking at the latencies quoted here and in the article it's certainly not the problem. Notice that just getting a thread scheduled every 2 ms is already impossible for Windows, certainly one running a game. You'll get a bunch of outliers within the second. So even if you got your keyboard down to…

>So even if you got your keyboard down to 5 ms, great, but you are not running an operating system that can reliably do something within that timespan! Maybe I'm not understanding, but that doesn't seem correct. Most people (gamers) are running mice at 500/1000Hz polling rates and you can easily verify the movement made in each 1-2ms update. (And it is most definitely a noticeable difference going from a standard 125…

Don't confuse throughout and latency. The mouse may be measuring and sending data every 1-2ms, but that doesn't say anything about the latency before the data is handled.

Re: Keyboard latency

#57

Earlier quoted context omitted.

Saying that PS/2 boards are "scanned" is inaccurate, as they trigger an interrupt immediately on a keypress.

Doesn’t the micro controller in the keyboard still scan, and then send a ps/2 signal?

Most mechanical PS2 keyboards are a diode cascade.

You pressing the key triggers a wave of electricity cross the keyboard which is converted into the PS2 waveform, and pumped out at the same rate of the incoming clock waveform.

OLD PS2 keyboards don't generally have internal digital micro-controllers, they're effectively analog, the logic they do contain is blindly simple. This is why some struggle with N-Key Rollover.

---

OFC this is if you are using an -old- PS2 keyboard. I'm still using an 80's IBM Model M and above it roughly how it works.

Re: Keyboard latency

#58
post #46

Earlier quoted context omitted.

the article specifically states the reasons for why he messured the whole travel, no guesswork needed > This is because, as a human, you don’t activate the switch, you press the key. A measurement that starts from switch activiation time misses this large component to latency.

That's effectively providing a definition of the latency he's discussing, not an explanation of why that's the sort of latency he finds interesting. But I see he does goes on to say that he cares about game performance, rather than typing experience: « If, for example, you’re playing a game and start dodging when you see something happen, you have pay the cost of the key movement, which is different for different key…

Seasoned gamers preload keys they are anticipating to use. On my keyboard I have less than a millimeter of travel from the preloaded point I use (which is right in front of the tactile bump and is quickly trained) to actuation.

In tacticale switches the bump and the making of the contact are mechanically connected.

Using the moment of finger/key contact quite obviously selects for travel, among other things.

Re: Keyboard latency

#59
post #26

Has anyone benchmarked the keyboard latency of recent generations MacBook Pro Retinas?

I don't have a way to measure raw USB events, but it takes around 90 ms between me pressing a key on the Macbook's (2015 model) keyboard and a character showing in the TextEdit.app.

Re: Keyboard latency

#60
post #11

Earlier quoted context omitted.

I wouldn't be surprised if the Apple keyboard is the fastest just because it has very shallow keys.

That's fine though. It's about the experience end-to-end. I love the apple keyboards. I still type faster on them than other keyboards, including high-end mechanical keyboards. The short keys and actuation feel responsive, yet I've never felt like I've accidentally triggered a key.

I'm currently using a mechanical 60% keyboard with the following layout: http://www.keyboard-layout-editor.com/#/gists/c7f9f0ac904b21...

Truth be told, I also prefer scissor switch keyboards, but there aren't any on the market that support the features I'd like: - configurable keys & layers on a hardware level - 60% layout - NKRO

Apple's magic keyboard would be great if it supported configuration/NKRO and didn't cost so outrageously much.

Post reply on HN