← Blog

Build log

How an agent sees its screen

Measured screenshot times on Linux, macOS and Windows, plus what changed when viewers left or reconnected.

How an agent sees its screen. The cover lists screenshot measurements on Linux, macOS and Windows.
What we measured Result Test scope
Linux (X11) screenshot time Median fell from 16.7 ms to 11.1 and 10.9 ms Two runs of 100 requests per version on one desk
Linux (GNOME Wayland) screenshot time 61.2 ms median, 74.2 ms at the 95th percentile 50 screenshots on headless GNOME 50 with valid permission
macOS screenshot time 115.3 ms median, 50 of 50 returned an image One run on one Mac with one display
Windows screenshot time 130.3 ms median, 50 of 50 returned an image One run on one Windows PC with one display
Linux desk with no viewer Screen and audio work fell from 6.07–6.79% to 0.018% of one CPU core Two 60-second measurements per version on one desk
First picture after reconnecting Arrived right away in 5, 3 and 5 of 10 attempts before, then 10 of 10 in each setup Ten reconnects per version on each of three Linux video setups

An agent can ask for a screenshot to check what happened after a click. A person watching the same desk sees a live stream. We measured both on test desks. The screenshot timings are from local tests on different setups. Network time and the rest of an agent's task add to the wait.

Taking a screenshot#

On the same Linux X11 desk, screenshot requests took about a third less time at the median after the update. The slower requests improved too. The 95th percentile, the time within which 95% of requests finished, fell from 17.8 and 17.5 ms to 13.6 and 12.8 ms.

On Linux X11, the two before medians were 16.7 ms. The after medians were 11.1 and 10.9 ms. The 95th percentiles fell from 17.8 and 17.5 ms to 13.6 and 12.8 ms.
Screenshot request times from two 100-request runs per version on the same Linux X11 desk.

Download the Linux X11 chart data.

In a separate X11 check, all 40 screenshots taken immediately after a click showed the focus move. A screenshot also came back in a test where live video could not start.

On headless GNOME 50, later requests reused valid sharing permission without another dialog. Reusing permission took 12.8 ms at the median and 14.3 ms at the 95th percentile across 42 measurements. The full screenshot timing in the table comes from a separate 50-request run. These results cover headless GNOME 50. A regular Wayland login and KDE need their own measurements.

The macOS and Windows test screenshots left out the mouse pointer. In a separate macOS test, requests returned no image while Screen Recording permission was missing. The timing runs used one display per machine. Multiple displays and mixed scaling need separate tests.

Watching a desk#

After the last viewer left, the Linux desk spent less CPU time on screen and audio work. The whole desk used 6.6–7.3% of one core before and 0.56% afterward. There was a trade-off on the GPU-equipped test desk. When the desk started, the first viewer saw a picture after 2.45 and 2.48 seconds, up from 1.04 seconds.

Reconnecting was a separate test. On all three setups, every reconnect after the update showed a picture right away. Before the update, some viewers saw the first picture later. The median time to receive the first stream data rose by 2–6 ms, depending on the setup.

See Watch a desk to open an agent's live desktop.

More from the blog