Drag / scroll latency

For detailed instructions on how to perform the measurement refer to the usage doc.

For drag (or scroll) latency WALT uses a laser that shines across the touch device and hits a detector on the other side. The microcontroller monitors the state of the laser detector and reports (over usb) when the laser beam is broken. A finger dragged back and forth on a touchpad or touch screen and interrupts a laser beam. Touch events from the pad and laser events are then processed together to deduce the delay.

A video showing the measurement performed using a robotic stylus.

Drag/scroll latency measurement

Sample measurements

DeviceOS versionDrag latency [ms]
Nexus 5M4B30Z (6.0.1)18.4
Nexus 5XNRD91P (7.0)18.9
Nexus 7LMY47Q (5.1)35.8
Nexus 9MMB29K (6.0.1)10.2

Drag latency calculation

The app collects all the motion events reported by Android with their coordinates and timestamps. The plot on the screenshot below show the vertical coordinate as a function of time as seen by the app y(t).

The red ‘x’ marks are points where the finger was at times ti when the finger went into or out of the laser beam. The y distance between the two lines of x marks is roughly the thickness of the finger. For now consider only one of the lines, e.g. the upper one.

Now imagine that the clocks timestamping the touch and the laser events diverge a little (this divergence is the latency we want to measure). The red ‘x’ marks would move along the graph. But half of them would move up and half down (corresponding to direction of the finger movement in that point) and therefore they would diverge in opposite directions from the relatively straight horizontal line you see on the screenshot.

The WALT app finds a shift S such that the standard deviation of y( ti + S) is minimal - that is the ‘x’ marks are as close as possible to a horizontal straight line on the graph below. The reported number is the average of the two time shifts calculated separately for the upper and the lower lines (corresponding to two sides of the finger).

This calculation that only looks at the y coordinate assumes the laser beam is parallel to the x axis and prefers no motion of the finger in the x direction.

The Python script used for ChromeOS employs a 2D extension of this method (implemented in minimization.py). This has the opposite requirement of some considerable spread of the collected x coordinates.

Drag/scroll latency measurement results