Lokyr
Documentation

A frame's new glyphs

On this page

Measured on 2026-10-31, on the commits before and after the change, c56eeda and ba9fabc, against the budget of a frame's time on the CPU, p99 ≤ 2 ms at 4K; and, once the change was done, every earlier measure of F2 again, on the bundle of ba9fabc and on that of 105dc42, before the output's way from the PTY, the core's print of clusters and this change. The raw results of that session are in glyphs-F2-146/.

Method

Where a frame of new glyphs went

Before, in the layout outside the app:

A first frame ofIts timeThe faces' lookupsShapingRasterization
cjk.txt14 to 20 ms37, 240 to 360 µs each6, 100 to 220 µs each37 glyphs, 3.9 to 5.3 ms
sgr.txt4.3 ms188 glyphs, regular and bold, 20 µs each
A screen of cjk-all.txt300 to 325 ms8 040, 2.3 µs each8 040 glyphs, 37 µs each
emoji-all.txt194 to 198 ms1 178, 113 µs each1 061 glyphs, 60 µs each

On screen, a frame of a screen of new CJK took 160 to 197 ms, and of the emoji 276 ms.

What a frame does now

The time that a frame gives to new glyphs, chosen on 31 October 2026 between these, measured with a build that took them from the environment:

Lookups + drawing, a frameA page of new Chinese shows whole inIts framesA screen of all-new CJK
0.3 + 0.3 ms0.94 s, 58 framesp50 1.43 ms, the longest 3.07several seconds
1 + 1 ms160 to 180 ms, 9 or 10 framesp50 2.0 msabout 0.5 s
2 + 2 ms50 to 75 ms, 3 framesp50 3.1 to 5.4 ms, the longest 5.4 to 8.7about 0.22 s

Before, the page took one frame of about 25 ms, and a 4K screen of all-new CJK one of 300 ms. The longest frames, up to 23 ms, came of the first frame of CJK, about 50 ms after the app's start, which waited for the thread that readied the fallback; text that comes later finds it ready. PERFORMANCE.md has the budget chosen with it: a frame that draws new glyphs, ≤ 10 ms.

The four workloads

On screen, the bundle of ba9fabc against 105dc42's, three runs of each; a frame's time, at 3840 × 2224 pixels:

WorkloadMiB/sFrames a runp50p99, by runp99 before, by run
ascii.txt301.6, from 117.5185 to 192, from 469 to 4820.28 ms1.84, 1.44, 1.410.32, 0.33, 0.34
seq.txt177.8, from 118.024 to 260.29 ms1.45, 1.86, 1.711.95, 1.61, 1.85
sgr.txt239.5, from 140.428 to 300.51 ms4.01, 2.68, 2.385.78, 5.57, 5.05
cjk.txt183.6, from 110.636 to 410.49 ms1.96, 2.66, 2.7016.25, 15.85, 15.34

Against the earlier measures

Every measure of F2 again, in one session, on the bundles of ba9fabc and 105dc42 in turn, on AC power, at 60 Hz, with nobody at the Mac:

Measureba9fabc105dc42Earlier
Warm startup, the first frame, median of 10 runs, twice273.9 and 265.1 ms274.8 and 273.3 msstartup-F2-53: the minimal AppKit app's first window plus 30 to 33 ms; today 257.2 ms, plus 8 to 17
A key's echo, 200 synthetic keys, twice: p50, p9921.2 and 22.5 ms; 38.8 and 44.322.6 and 23.8 ms; 39.6 and 36.4latency-F2-54, at 60 Hz: 21.2 ms at the median
Idle, steady cursor: package idle and interrupt wakeups a second0, 0.380, 0.38idle-memory-F2-55: 0, 0.35
Footprint without the GPU, about 80 s after the start24.8 MB23.7 MBidle-memory-F2-55: 24.0 MB three minutes after the start; budget 35
The VT core, lokyr-throughput, vtebench's scenariosequal or faster in each; unicode 1.02 of alacritty_terminal's rate, the bottom region 0.69unicode 1.03, the bottom region 0.70throughput-F1-133
The core, cjk.txt204.7 MiB/s, 0.75154.4 MiB/s, 0.59onscreen-F2-56