Lokyr
Documentation

The first frame a refresh later than 0.2.0's

0.3.0's A/B found 0.3.0's warm startup a refresh at 60 Hz later than 0.2.0's, its runs on the next step of 16.7 ms. Measured on 2026-11-02 in two sessions of warm startups, in turns, three rounds of 10 runs after 2 each, lokyr-bench startup --first-frame, with that A/B's config, on its Mac, on AC power. The scripts are in startup-F3-105, run.sh and verify.sh, the reports in four and fixed.

Which part: four bundles

At 16:47, four bundles that differ by one part each:

BundleMedian of 30MeanThe runs' steps, mostlyGap to the minimal app, by round
A, 0.2.0223.1 ms226.7 msthe first−5.6, −4.2, 4.6 ms
B, 0.3.0's DMG's app, notarized236.7 ms242.6 msthe second8.2, 17.6, 9.2 ms
C, 0.3.0's code in a bundle of 0.2.0's contents, without Sparkle and the crates' licenses, signed236.5 ms238.8 msthe second10.6, 10.3, 6.6 ms
D, 0.3.0's code in its whole bundle, signed, not notarized239.8 ms246.4 msthe second19.8, 8.6, 9.8 ms

C takes B's step: neither Sparkle, nor the licenses, nor the notarization, but the code.

Where: the start's phases

The start of 0.2.0 and of 0.3.0, traced for the purpose, in milliseconds from main, the median of five runs: the same to the window's opening, 105 and 104.5 ms to start, 142.4 and 145.6 ms to the window's open, its first frame drawn within it, of the window's own; then 0.2.0's second frame came at the display's next turn, 155.9 ms, and 0.3.0's at once, 145.8 ms. Since the plugins' events, the turn that ends the start delivers the workspace's events to the plugins, after which the app asked every window for a frame, whether the plugins wrote or not; the platform drew it at once, beside the window's first: two frames in a row, and the window shown a refresh later.

The fix

The plugins' host tells whether its calls wrote to the kernel's state, and the app asks for frames after a turn of the plugins only then. At 20:56, a second session, the machine slower, of 0.2.0, C again, and E, 0.3.0's code fixed, in its whole bundle:

BundleMedian of 30MeanThe runs' steps, mostlyGap to the minimal app, by round
A, 0.2.0223.4 ms229.3 msthe first and the second−9.2, −2.7, −2.6 ms
C, 0.3.0 unfixed267.5 ms258.2 msthe fourth34.5, 35.5, 22.0 ms
E, 0.3.0 fixed235.3 ms230.6 msthe first and the second3.7, 3.1, −2.0 ms