Lower latency with a PS/2 adapter?
Re: Lower latency with a PS/2 adapter?
Oh sorry, I forgot a critical detail: for *low-speed* USB devices the OS does this. For high-speed (USB 1.1) and full-speed (USB 2.0) devices, even a HID device can get lower than 8ms polling just by asking in the descriptor.
Re: Lower latency with a PS/2 adapter?
Ah, that makes sense. Is this a part of the specification, or is it just a Microsoft quirk? Either way, I wondered why gaming input devices were full-speed despite not even getting close to the bandwidth limit of low-speed, but now I know the justification.
Re: Lower latency with a PS/2 adapter?
I haven't found anything in the spec to explain this. Even Linux limits HID polling to 8ms unless you tweak the driver (despite being named mousepoll, it affects keyboard and joy controllers as well) (1ms here):
Code: Select all
sudo modprobe -r usbhid && sudo modprobe usbhid mousepoll=1
Re: Lower latency with a PS/2 adapter?
How do you force Windows to poll at <8ms?
And BTW, I suspect in USB2 the shortest possible frames are 0.125ms.
Regarding PS/2 keyboards and latency, it matters less than it does in mice due to the nature of keyboard control.
And BTW, I suspect in USB2 the shortest possible frames are 0.125ms.
Regarding PS/2 keyboards and latency, it matters less than it does in mice due to the nature of keyboard control.
Re: Lower latency with a PS/2 adapter?
I've never seen a high speed input device before. I wonder if it would even work on some computers.
Re: Lower latency with a PS/2 adapter?
I own 2 keyboards: one of them is zalman-k500 (red switches) and the other one is a scissor-type slim kb
And yes, there is a lower input lag through ps/2 adapter for both of them. Also I think my zalman can have more keypresses at the same time through ps/2 (not N-key roll though)
And yes, there is a lower input lag through ps/2 adapter for both of them. Also I think my zalman can have more keypresses at the same time through ps/2 (not N-key roll though)
Re: Lower latency with a PS/2 adapter?
What method did you use to measure input lag? I'm curious about absolute latency too.Kertwaii wrote:I own 2 keyboards: one of them is zalman-k500 (red switches) and the other one is a scissor-type slim kb
And yes, there is a lower input lag through ps/2 adapter for both of them. Also I think my zalman can have more keypresses at the same time through ps/2 (not N-key roll though)
Re: Lower latency with a PS/2 adapter?
You made me feel childish and unprofessional Well it's true anyway because I didn't use any special tools/hardware. Just my observationsSparky wrote:What method did you use to measure input lag? I'm curious about absolute latency too.
I tested in a certain rhythm game where you need to press circles to the music. There is a bar there that shows how off you're out of the rhythm (+-ms) and I noticed I have less scatter along with the feeling that the keys are registered faster/with less lag
I can try a real method (if someone can tell me one), but I don't have a high-speed camera or stuff like that so..
Re: Lower latency with a PS/2 adapter?
No high speed camera needed, but you would have to disassemble the keyboard to attach a test lead to the switch. I used an arduino micro for the measurements here: http://forums.blurbusters.com/viewtopic ... 6&start=10Kertwaii wrote:You made me feel childish and unprofessional Well it's true anyway because I didn't use any special tools/hardware. Just my observationsSparky wrote:What method did you use to measure input lag? I'm curious about absolute latency too.
I tested in a certain rhythm game where you need to press circles to the music. There is a bar there that shows how off you're out of the rhythm (+-ms) and I noticed I have less scatter along with the feeling that the keys are registered faster/with less lag
I can try a real method (if someone can tell me one), but I don't have a high-speed camera or stuff like that so..
Any microcontroller with native usb is good to 2ms precision with the method I used, a microcontroller with a usb host controller would be good for sub 1ms precision. The main difference I saw is switching to PS/2 removed the variance caused by a large USB polling interval on the cheap keyboard. You can only register 1 press every 1~2ms or 1 release every 2~4ms over ps/2(depending on ps/2 clock), so if you need to press between 2 and 6 keys simultaneously you might be better off with USB(depends if the keyboard is configured for 1khz USB polling).
I thought about making replacement keyboard controllers with low latency firmware, but I don't think the market is big enough unless I actually build it into a keyboard.