Skip to content

Latency Analyzer 0.5

Choose a tag to compare

@MoreOrLessSoftware MoreOrLessSoftware released this 30 Nov 04:40
· 3 commits to main since this release
File Goes on What it is
LatencyAnalyzer-0.5-windows.zip The PC running the test (the streaming host, to measure a stream): unzip both exes into one folder latency-test.exe, the test pattern, clock sync and upload server, and latency-analyzer.exe, which analyses uploaded recordings
LatencyCam-0.2.1.apk The phone (Android 12 or newer, with a back camera that films 1920x1080 at 240 fps) Films the display

latency-test.exe and latency-analyzer.exe are also attached on their own. Windows may warn about the unsigned exes. See the README's Quick Start for how to run a test.

What's new

  • Host present → photon, by source: with Sunshine's frame log, each run's report shows what each source measures on the host present's timeline, above the pipeline's stages. There is one bar for the camera (host present → photon), one for Sunshine (host present → capture, then capture → frame sent) and one for Moonlight (capture → first packet → client present, starting at Sunshine's capture through Moonlight's clock sync). Dashed lines mark where they meet. The client present → photon, worked out as the camera's time minus the others', is hatched at the end of Moonlight's bar.
  • Summary tiles: the report now leads with host present → photon for frames turning white and black, the numbers the by-stage bars end at, in place of the flips' and every frame's medians of both edges together. The capture → photon tile is gone, as the pipeline shows it, and frames not seen are a line under the uneven frame intervals. Tiles sit three to a row.
  • Trigger flip chart: flips turning white are outlined circles and flips turning black filled ones, in the colours the every-frame chart uses.
  • Stage table: a long aside in a stage's name, such as "(Moonlight's capture to present)", goes on a smaller line of its own so it no longer widens the column.

What's fixed

  • No false "frames queuing" note with RTSS at the display's refresh rate: when RTSS capped the test app at the same rate as the display (97 fps on 97 Hz, say), the report said frames were queuing on the host and adding a frame or two to every latency, which they weren't. A known RTSS limit the app presents at now reads as the frame limiter, and the note says whether that is at, below or above the display's rate. A limit above the refresh rate, with the app held back to the display's rate, still reads as a queue.
  • Latency Cam and latency-test.exe are unchanged; the APK is attached again so this release has everything you need.

Licences

This project is licensed under the GPLv3, and this release's source is at the v0.5 tag (the APK was built from v0.2.1). The files above also contain third-party software under its own licence:

  • latency-analyzer.exe (in the zip), bundled with PyInstaller: Python 3.13 (PSF License), NumPy (BSD-3-Clause and others), OpenCV from opencv-python (Apache 2.0) and the FFmpeg library that comes with it (LGPL 2.1)
  • latency-test.exe (in the zip): QR Code generator by Project Nayuki (MIT)
  • LatencyCam-0.2.1.apk: ZXing core (Apache 2.0)