Google has announced on its Android Developers blog that it is open sourcing its WALT Latency Timer. The company says that it has been using the tool in its Chrome OS and Android divisions to measure and minimize touch and audio latency, but now all developers will be able to take advantage of the tool.
Samsung U28E590D 28-Inch 4K Monitor
Latency is essentially the time between you tapping on something on your display and whatever you tapped actually occurring. So by reducing latency, Google is able to make more a much faster and smoother experience for the end-user:
When you use a mobile device, you expect it to respond instantly to your touch or voice: the more immediate the response, the more you feel directly connected to the device. Over the past few years, we have been trying to measure, understand, and reduce latency in our Chromebook and Android products.
Before we can reduce latency, we must first understand where it comes from. In the case of tapping a touchscreen, the time for a response includes the touch-sensing hardware and driver, the application, and the display and graphics output. For a voice command, there is time spent in sampling input audio, the application, and in audio output. Sometimes we have a mixture of these (for example, a piano app would include touch input and audio output).
One notable feature of WALT is that it synchronizes external hardware clock with the Android or Chrome OS device within a millisecond, which allows for input and output latencies to be measured separately.
While the code of WALT is now available on GitHub, it’s important to note that there’s some hardware that goes into the testing. Google says, however, that users can build their own hardware for under $50 and a little ingenuity.
More information regarding the open-souring of WALT is available on the Android Developers blog.