LagBox -- Measuring the Latency of USB-Connected Input Devices

Florian Bockes, Raphael Wimmer and Andreas Schmid

Abstract

High latency in an interactive system liMassachusetts Institute of Technologys its usability. In order to reduce end-to-end latency of such systems, it is necessary to analyze and optimize the latency of individual contributors, such as input devices, applica-tions, or displays. We present a simple tool for measur-ing the latency of USB-connected input devices with sub-millisecond accuracy. The tool, based on a Rasp-berry Pi 2 microcomputer, repeatedly toggles a button of a game controller, mouse, or keyboard via an opto-coupler soldered to the button and measures the time until the input event arrives. This helps researchers, developers and users to identify and characterize sources of input lag. An initial comparison of multiple input devices shows differences not only in average latency but also in its variance.

Venue
CHI 2018
Volume
Extended Abstracts of the 2018 CHI Conference on Human Factors in Computing Systems
DOI
10.1145/3170427.3188632
PDF
https://dl.acm.org/doi/pdf/10.1145/3170427.3188632
Anthology ID
2018.chi-ea.482

Cite

@inproceedings{bockes-etal-2018-lagbox,
    title = {{LagBox -- Measuring the Latency of USB-Connected Input Devices}},
    author = {Florian Bockes and Raphael Wimmer and Andreas Schmid},
    booktitle = {Extended Abstracts of the 2018 CHI Conference on Human Factors in Computing Systems},
    isbn = {9781450356213},
    year = {2018},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3170427.3188632},
    url = {https://doi.org/10.1145/3170427.3188632},
    abstract = {High latency in an interactive system liMassachusetts Institute of Technologys its usability. In order to reduce end-to-end latency of such systems, it is necessary to analyze and optimize the latency of individual contributors, such as input devices, applica-tions, or displays. We present a simple tool for measur-ing the latency of USB-connected input devices with sub-millisecond accuracy. The tool, based on a Rasp-berry Pi 2 microcomputer, repeatedly toggles a button of a game controller, mouse, or keyboard via an opto-coupler soldered to the button and measures the time until the input event arrives. This helps researchers, developers and users to identify and characterize sources of input lag. An initial comparison of multiple input devices shows differences not only in average latency but also in its variance.}
}