evidence · 7.7 KiB

README.md

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

Open raw source

Ordinary-card entry and touch acknowledgement with a live video and a busy app

Evidence class: board, injected native touch. A persistent uinput touchscreen, held open for the whole run, sent one report every 8.14 ms (the measured real-finger rate). This is the injector the earlier attempt lacked, when per-sample evemu-event process spawns dominated the timing. There was no real-glass interaction and no camera recording.

The board ran system /nix/store/8xkkpma4fvgw4fi6pl8qaz7d9d75kcdi-nixos-system-nixos-26.11.20260919.20b1ddd on 2026-10-22, with DSI-1 in landscape (1232x568, transform 270) and max_render_time 12. One CPU was online.

Timing comes from the installed compositor’s own benchmark (swaymsg card_shell benchmark injected … benchmark-stop):

All of these use CLOCK_MONOTONIC.

Workload

card-entry.py runs as root under the exclusive board lock. The command is:

flock -n /tmp/k230-board.lock "$PY" card-entry.py RUN_DIR "$SYSTEM" ARM 8 --bench

It requires the startup terminal to be the only app, then starts one arm app. There are two arms:

Each of the eight cycles starts from the focused arm app and does three gestures:

  1. Entry: one contact in the bottom-edge band (y=562), swiped up 262 px over 300 ms and released, then a 1.5 s pause.
  2. Drag: a 300 px horizontal drag on the deck over 700 ms, released, then a 1.2 s pause.
  3. Tap: an 80 ms tap on the centre card, which expands it, then a 2 s pause.

Afterwards the script stops the video (k230-video-session stop) or closes the busy window. In both runs only the startup terminal remained.

Replay with:

python3 analyze.py.txt bench-video

Results

bench-video ran 03:55:04–03:56:22Z and bench-busy ran 03:56:24–03:57:19Z. Each arm had 1,007 inputs, every frame was presented, and all 24 gestures reached motion-settle.

Touch acknowledgement (target ~100 ms)

ArmGestureMeasured fromMedianMaxOver 100 ms
videotaprelease, the moment a tap acts50.4 ms66.5 ms0/8
busytaprelease21.8 ms52.5 ms0/8
videodeck dragfirst contact121.5 ms154.2 ms8/8
busydeck dragfirst contact58.0 ms89.6 ms0/8
videoentryfirst contact136.4 ms195.4 ms7/8
busyentryfirst contact127.6 ms143.6 ms7/8

Entry from first contact includes finger travel. The compositor’s entry threshold is 72 px, which this 0.87 px/ms swipe covers in about 83 ms.

Entry animation (target ~400 ms)

ArmFirst contact to settledRelease to settled
videomedian 649 ms, max 740 ms (8/8 over 400)median 294 ms, max 320 ms
busymedian 573 ms, max 595 ms (8/8 over 400)median 259 ms, max 275 ms

The first column includes the injected 300 ms swipe.

Tap-to-expand, from first contact to settled: video median 356 ms (2/8 over 400 ms), busy median 307 ms (0/8 over 400 ms).

Frozen card budgets during these gestures

The budgets come from tools/card-shell-benchmark.py.

ArmGestureMotion-to-present p95 (budget 66.667 ms)Tracking interval p95 (budget 33.334 ms)
videodrag80.3 ms76.6 ms (95/96 over)
videoentry152.4 ms210.8 ms (19/19 over)
busydrag48.6 ms38.3 ms (21/252 over)
busyentry69.2 ms76.6 ms (32/44 over)

Reading

Both targets are informal (”~”) and never defined a start point, so the two definitions are reported side by side. Neither is declared passed.

With a live video, deck tracking misses the frozen budgets (p95 tracking 76.6 ms, motion-to-present 80.3 ms). With btop, the deck drag passes motion-to-present but its tracking p95 is 38.3 ms. Every one of these runs had sway running with -d (debug journal logging), as recorded in the keyboard report.

Re-measurement after the compositor change

On 2026-10-22, the same workload ran again with --bench, 8 cycles per arm: recheck-busy at 16:52Z and recheck-video at 16:53Z. The build was sgjam1h0, test-activated: sway without -d, at SCHED_RR 1 (compositor-repaint), plus the /proc-based settings status (shade-pull). Each cell gives the median / max in ms, from analyze.py.

Arm, gestureTouch ack, before → afterTracking interval, before → afterMotion to present, before → after
video, entry136 / 195 → 63 / 77115 / 211 → 19 / 3888 / 173 → 40 / 58
video, drag122 / 154 → 50 / 6057 / 96 → 19 / 1956 / 103 → 22 / 46
video, tap137 / 205 → 120 / 127——
busy, entry128 / 144 → 108 / 16738 / 134 → 38 / 5749 / 127 → 42 / 68
busy, drag58 / 90 → 65 / 7819 / 57 → 19 / 3823 / 71 → 23 / 58
busy, tap102 / 162 → 103 / 128——

Release to first present:

ArmBeforeAfter
video tap50 / 67 ms17 / 24 ms
busy tap22 / 52 ms17 / 24 ms

Tracking intervals over 33.334 ms:

Arm, gestureBeforeAfter
video, drag950
busy, drag217
busy, entry3239

Attempts

Limits