Commit Graph
11 Commits
Author SHA1 Message Date
Willem Vanhulle b126596973 fix: animation timeline loops 2026-10-21 15:45:24 +02:00
Willem Vanhulle 552d1170ed perf: rebuild the waiting tree only when the boot changed
The screen keeps the projected tree, milestones and tally and rebuilds them
after boot changes, or every 100 ms so finished units still fade on time.
Release, 200 units, under load: a frame from the cached projection costs
30-40% of a full frame (0.35-0.53 ms against 1.2-1.9 ms).
2026-10-21 13:24:35 +02:00
Willem Vanhulle d0063c2371 refactor: drive the watch loop with async streams in the Elm style
Every source is a stream of ScreenInput values: the systemd bus (resolved into
BootChange values), keys, frame ticks, full repaints, password requests and
SIGTERM. They are merged with stream::select and folded by one owned
WatchScreen, drawing once per ready batch. The live boot and the scripted demo
share the fold and differ only in their console desk. tokio current-thread
replaces poll(2) and signal-hook. Release binary: 1.74 MB -> 1.86 MB.
2026-10-21 12:49:33 +02:00
Willem Vanhulle 2191a27b82 refactor: group modules by data-flow stage behind a thin main 2026-10-21 12:12:49 +02:00
Willem Vanhulle c11a509090 refactor: keep unit timestamps as one Activity 2026-10-21 12:12:49 +02:00
Willem Vanhulle 8d96034574 refactor: decide phase, milestones and quit keys once 2026-10-21 12:12:49 +02:00
Willem Vanhulle 589cc3c82b refactor: split model and view into files under 500 lines 2026-10-21 12:12:49 +02:00
Willem Vanhulle 4c8268a719 refactor: fit and fold the waiting forest in the view 2026-10-21 12:12:48 +02:00
Willem Vanhulle b321fc8ddd refactor: build the waiting graph once with petgraph 2026-10-21 12:12:48 +02:00
Willem Vanhulle 7eafbc2d61 test: share boot fixtures between model and view tests 2026-10-21 12:12:48 +02:00
Willem Vanhulle 832db62f67 refactor: give modules descriptive names 2026-10-21 12:12:48 +02:00