3 ms·
Software latency measurement consistently understates latency which magnifies 1-2 frame differences. Unfortunately, camera-based measurement is a lot more work.
by wmf 4y ago
Software latency measurement consistently understates latency which magnifies 1-2 frame differences. Unfortunately, camera-based measurement is a lot more work.
- snazz 4y agoThere’s an iPhone app called Is It Snappy that records in slow motion and makes it pretty easy. I think the camera maxes out at 240 fps so it’s not perfect but it lets you measure true end-to-end latency.
- dan-robertson 4y agoYeah this is the easiest way to get started. You probably want a low travel keyboard and ideally a low-latency-variance one to make it easier to find the start. It can be tricky to find where the update ends too because you usually see several frames of lcd switching. The more advanced version is putting together a microcontroller which acts as a usb keyboard pressing a key, then backspace, then the key again, and uses a light sensor aimed at the right part of the screen to detect rendering in a repeatable way (slightly different fonts/ positions might change when it triggers but that’s likely on the order of a few ms tops, much less than the variance from frame boundaries).
- HideousKojima 4y agoOr you could just have an led on your microcontroller that sends the keypress, and catch both the monitor and the led with the high speed camera
- snvzz 4y agoOr use an USB HDMI capture card, and not involve a monitor in the process.
- dan-robertson 4y agoThe goal with a hardware device is partly avoiding having to label the begin/end times on a bunch of videos.
- dan-robertson 4y agoYeah, I don’t really understand what the difference in latencies reported here would mean for the observed latency distribution of an actual end-to-end test. The latencies reported here are less than the difference in latency one should expect between the top and bottom of a screen (depending on vsync…). The repeatable way to measure these things is with a little embedded device which pretends to be a keyboard and uses a light sensor, but that’s a lot of work to set up even if you don’t need to take and label a bunch of videos yourself.