evidence · 6.0 KiB

egui-board-results.md

Committed at docs/evidence/egui-sidestep/egui-board-results.md. This is what grounds the requirements that cite it.

Open raw source

egui on the K230: board results (2026-10-30)

Evidence class: board, normal Sway session with the shell running, one C908 core online; injected input (uinput), native grim captures, client commit timestamps. No real finger, no camera, no optical latency. “Commit” is the client’s own wl_surface.commit, which is submission, not presentation.

Client: nix/egui-software-probe, egui 0.34.1 with egui_software_backend 0.0.3 (CPU rasteriser) writing into wl_shm buffers; no OpenGL, Vulkan, winit or softbuffer is linked or mapped (identity-egui.json: mapped_graphics_libs empty, no dmabuf or wl_drm protocol bound, wl_shm buffers attached). Same scene as the Qt Quick probe and the C wl_shm baseline (landscape 1232x568: a 20-row scrolling list, an editor field, an animated tile, an image and text). Baseline: nix/qtquick-shm-baseline, drawn with plain pixel loops, same scene, same gestures, same harness arm.

Harness: the Qt trial’s board runner and analysis (tools/qtquick_board_runner.py, tools/qtquick_analysis.py), driven by tools/toolkit-eval-trial.py.

What can be trusted, and what cannot

Only one complete matched pair (30 s idle, 30 s active, 48 interactions per arm) is valid: pairs-cargo-build/runs/pair1-{egui,baseline}. A second short pair (12 s active, 18 interactions) in short-pair-12s/ agrees with it. The planned three-pair trial was not completed: the board was taken for a boot-path trial before the remaining arms could run.

Faults found in the harness, all retained:

Numbers (valid pair, 30 s idle + 30 s active)

wl_shm baselineeguinotes
first frame after launch190 ms283 msstartup
memory above the pre-launch session (MemTotal-MemAvailable)35.6 MiB38.0 MiBwhole-system delta, includes the compositor’s own growth
client CPU, idle0.02%0.02%of one core
Sway CPU, idle1.2%1.2%
client CPU, active7.6%45.9%
Sway CPU, active7.6%16.6%
client + Sway CPU, active15.2%62.5%egui costs 4.1x the baseline
egui time to run, tessellate and rasterise one frame, p50 / p95 / max-23.6 / 40.8 / 75.2 mscard budget is 16.667 ms p95
commits in the 30 s active phase406586
commit interval, p50 / p9519 / 567 ms41 / 57 msbaseline commits only when the scene changes and otherwise on a 500 ms cursor tick, so its p95 is idle gaps; egui redraws continuously while a drag or flick runs
input to next commit, p50 / p9513 / 814 ms37 / 53 msthe baseline’s p95 counts inputs that change nothing and wait for the cursor tick; egui commits after every input; not comparable beyond the medians

The short pair (12 s active) shows the same shape: egui 52% client CPU and render p50 35.6 ms against the baseline’s 11.5% and no render log; combined active CPU 68.8% against 22.3%.

Functional gates (pair 1, both clients): pixels correct, readable, tap, scroll (a 300 ms drag moved the list), interrupted motion (a second tap on the moving tile retargeted it), software route, bounded lifetime, restoration all PASS; text_focus and text_entry FAIL for both (see above). The normal session (sway PID, system closure, boot ID, boot default) was identical before and after every arm, and every transient unit was gone afterwards (restoration fields in each run record).

Reading it

egui draws a correct, readable UI on this board with no GPU. While the user drags the list it renders at roughly 24 frames per second (a frame every 41 ms, 23.6 ms of CPU each, median) and uses most of the single core (46% in the app plus 17% in Sway). Idle it costs nothing (0.02%). It is about three times the frame rate of the shell’s own app drawer under a sustained scroll (about 8 presented frames per second, 39 ms per render; docs/evidence/interaction-jank/drawer-scroll/README.md), but it still misses the shell’s 16.7 ms frame budget and costs four times the hand-written baseline.