Under TCG on a quiet homelab-um870-1, arm64 macOS 14.6.1's full-screen
probe window was first shown 2.1, 4.4 and 8.1 s after it was ordered front
in three boots, and not within the probe's 11 s in a fourth, which dropped
all 245 frames and failed metal-app (m3-max-17482). The probe ran 3 to 4
minutes after QEMU started, while the guest's post-login launches kept over
200 processes runnable on its 4 vCPUs. Counting frames over a fixed time
from the window's start read that delay as a device that shows nothing.
present_probe -v SECONDS now renders while it waits up to SECONDS for its
window to be shown (its occlusion state turning visible, or a frame's
nonzero presentedTime), then warms up a second and measures. Its line gives
the wait as visible_s, or none. check-boot runs it with -v 60, and fails a
window not shown in that time as such. Without -v the probe measures as
before, so the lane gate's runs are unchanged but for the new key.
A probe run that falls short says only how many frames it lost, not when:
the 27.0.1 boot that presented 152 of 1020 frames could not say whether its
window was off screen at the start or WindowServer stopped in the middle. A
second line now gives the window's occlusion changes, per half second the
frames committed, presented and dropped and nextDrawable's longest block, the
first nextDrawable blocks with warm-up's, the long ones, and the span of the
presented frames. The result line is unchanged and still first, so check-boot
and report.py read it as before.
The present latency was read from its median alone, which hides whether a
frame reaches the screen a refresh late now and then or always: the tenth and
ninetieth percentiles tell the two apart.
present_probe renders one clear a frame into a full-screen or windowed
CAMetalLayer and reports what an app reads back: presented handlers and their
presentedTime, how long nextDrawable blocks, commit-to-presentedTime, the
presentedTimes' distance to the display link's refreshes, and, with -a, how
presentDrawable:atTime: lands against the time asked for. It runs the same on
a guest and on a Mac, so the two compare.