Dissecting the End-to-end Latency of Interactive Mobile Video Applications

Teemu Kämäräinen, Matti Siekkinen, Antti Ylä-Jääski, Wenxiao Zhang, Pan Hui

In the domains of mobile gaming, Augmented Reality (AR), and Virtual Reality (VR), latency is a critical performance metric. High latency in VR can lead to motion sickness, while in competitive gaming, it determines the difference between victory and defeat. This research from Aalto University and HKUST investigates the mobile processing pipeline to identify specific bottlenecks where latency accumulates.

The Latency Problem in Mobile Systems

Interactive mobile video applications are highly sensitive to end-to-end delay. Previous research often measured "button-to-pixel" latency using external high-speed cameras, treating the mobile device as an opaque "black box." This approach fails to distinguish between delays caused by the operating system, the video decoder, or the display hardware.

The end-to-end processing pipeline for interactive mobile video applications, from user input to frame display.

To address this, the authors developed a high-precision hardware-software testbed to measure "step-wise" latency across cloud gaming, mobile AR (MAR), and mobile VR (MVR) scenarios.

Methodology: Opening the Black Box

The researchers utilized a custom measurement setup based on the WALT Latency Timer. The rig featured:

  • Teensy LC Microcontroller: Served as a high-precision clock and simulated user inputs (e.g., touch events via a relay).
  • Photodiodes: Detected pixel changes on the phone screen to provide precise display timing.
  • External Sensors: An MPU-6050 gyroscope provided "ground truth" for motion-to-photon measurements.
  • Instrumentation: Application code was modified to log timestamps at critical stages, such as packet arrival and decoding completion.

By synchronizing the microcontroller with the mobile device's clock via USB, the team tracked individual events from physical input through the OS and network to the final screen update.

Key Findings and Bottlenecks

The study revealed several critical areas where latency is introduced:

1. The "Touch Tax"

Processing touch events is significantly slower than expected. On the Samsung Galaxy S4, it took 40ms for the kernel to register a touch. While the Galaxy S7 improved this to 24ms, it remains a substantial portion of the total delay. In contrast, using a physical gamepad via USB reduced this input delay to less than 1ms.

2. Vsync and Display Buffering

Android’s double-buffering and 60Hz refresh rate impose a mandatory "tax" of approximately 25ms. Frames often wait in a buffer for the next refresh cycle, regardless of rendering speed. However, the introduction of Asynchronous Reprojection in Android 7.0 proved to be a significant optimization for VR, nearly halving display latency by shifting images based on the latest head-tracking data just before display.

3. Camera Capture in AR

In AR applications, the camera sensor itself is the primary bottleneck. Capturing a frame and transferring it to the application takes between 60ms and 90ms. This inherent delay causes "ghosting," where virtual objects appear to lag behind the real-world background.

Comparative Results

The researchers evaluated three flagship devices: the Samsung Galaxy S4, Samsung Galaxy S7, and Huawei Nexus 6P.

Breakdown of end-to-end latency components across different application types and mobile devices.

As shown in the data, client-side delays often outweigh network delays. In cloud gaming on the S7, "Frame Display" and "Touch to Kernel" accounted for over half of the total 70ms client-side delay. While hardware evolution has drastically reduced sensor processing times (e.g., gyro delay dropped from 78ms on the S4 to 12ms on the S7), display buffering remains a persistent challenge.

Conclusion

The study concludes that optimizing interactive mobile video requires looking beyond network performance. Significant gains can be made by addressing OS-level touch processing and display buffering. Future improvements may involve "scanline racing" to bypass Vsync buffers and further reduce the motion-to-photon gap.

Reference: Kämäräinen, T., Siekkinen, M., Ylä-Jääski, A., Zhang, W., & Hui, P. (2017). Dissecting the End-to-end Latency of Interactive Mobile Video Applications. HotMobile '17.

Summary updated

BibTeX
@inproceedings{kamarainen2017dissecting,
  author = {Teemu Kämäräinen and Matti Siekkinen and Antti Ylä-Jääski and Wenxiao Zhang and Pan Hui},
  title = {{Dissecting the End-to-end Latency of Interactive Mobile Video Applications}},
  booktitle = {HotMobile},
  year = {2017},
  doi = {10.1145/3032970.3032985},
}
Figure