evidence · 8.2 KiB

README.md

Committed at docs/evidence/interaction-jank/compositor-repaint/README.md. This is what grounds the requirements that cite it.

Open raw source

Compositor repaint: iterations and re-measurement

Evidence class: board, injected native touch. All captures were taken on 2026-10-22 on the board’s DSI panel in landscape: 1232x568 logical pixels, 52.19 Hz (19.16 ms per refresh), max_render_time 12, one online CPU. There was no real glass and no camera.

Every run used measure.sh with the compositor benchmark armed (card_shell benchmark injected … benchmark-stop):

Each build was test-activated with switch-to-configuration test. Builds are named by store prefix (nixos-system-nixos-26.11.20260919.20b1ddd).

RunBuildChange from the previous step
basez1basiwiinstalled boot default, sway -d
h-nodebug91iprygqsway without -d
i-opaqueca29br25+ drawer opaque region from opaque sheet rows
j-wvkbd78gdnf6a+ wvkbd opaque region (rejected, see below)
khzn9lp4ah + i, plus an RVV quarter-turn for RGB565
k-rrhzn9lp4ak with sway set to SCHED_RR 1 at runtime by chrt
lrcysj8dph + i + LimitRTPRIO=1: sway sets SCHED_RR itself
mg2yjvzv4h + LimitRTPRIO=1 only (the change as landed)

Results

Sway repaint is repaint-timing from start_ns to commit_start_ns. Keyboard cells give the presented interval median / render wall median, in ms.

RunDrawer distinct fpsDrawer interval median / p95Drawer sway repaint median (p10–p90)Kbd show contactKbd show settleKbd hold-reverse contactKbd hide contact
base17.538 / 3918.4 (15.6–20.0)76.6 / 32.857.5 / 40.138.3 / 22.538.3 / 19.7
h-nodebug18.138 / 3913.6 (11.4–15.7)76.6 / 42.657.5 / 42.338.3 / 22.838.3 / 20.1
i-opaque18.138 / 3913.8 (11.4–16.4)76.6 / 45.057.5 / 40.738.3 / 23.138.3 / 19.5
j-wvkbd18.038 / 3914.0 (11.6–15.9)57.5 / 38.438.3 / 20.738.3 / 13.238.3 / 14.5
k17.938 / 3914.7 (12.2–16.6)76.6 / 47.257.5 / 43.538.3 / 24.138.3 / 21.3
k-rr23.222 / 3910.9 (10.8–10.9)38.3 / 9.338.3 / 17.119.2 / 10.119.2 / 9.1
l24.121 / 3910.2 (10.1–10.3)19.2 / 8.238.3 / 16.319.2 / 9.919.2 / 8.8
m23.421 / 3910.2 (10.1–10.3)19.2 / 8.038.3 / 16.119.2 / 9.819.2 / 8.6

Against the budgets:

What each step showed

Where the rest goes

prof-m-kbd profiled keyboard cycles on m. Of sway’s samples:

Removing the blend needs an opaque keyboard region, which is rejected. The turn is bound by scanout writes. Remaining gains are therefore small or need an operator decision, so the iterations stop here, as the operator asked.

Grim checks

Each drawer run took drawer-open, mid-scroll and after-close captures, and each keyboard run took before, shown and hidden. They are not committed. The m and l drawer captures show the drawer with its search chrome and grid intact, the same pixels as on k.

Promotion to the boot default

On 2026-10-22, g2yjvzv4 (commit d724da4f) replaced z1basiwi as the persistent system. The kernel, initrd and DTBs are identical between the two builds. promote.py ran as root under the board lock. It is the drawer promotion script with the paths changed. It:

An SSH-initiated reboot then booted g2yjvzv4 as /run/booted-system, with shell and shell-ui active and no failed units. See the receipt, boot ID dd387e28….

sway’s main thread reported SCHED_RR 1 with Max realtime priority 1. The first chrt -p read, taken moments after SSH returned, showed SCHED_OTHER; every later read showed SCHED_RR. That fits a check taken during sway’s startup, before it makes its request, but this was not proven.

run-boot repeated the same measurement on that ordinary boot:

Its grim captures were normal.

Rollback: write the copies under /var/lib/k230/compositor-promote-20261022/promotion/rollback/ back to /boot, then run nix-env --profile /nix/var/nix/profiles/system --set with z1basiwi.

Limits