mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-10-04 22:35:08 +00:00
Adds golden trace tests for DisplayController.run() (test/test_run_loop_golden.py on a fake clock with fake plugins, 15 scenarios, fixtures in test/fixtures/run_loop_golden/) and moves twelve blocks of run() into named helpers (_dispatch_first_frame, _resolve_durations, _resolve_active_mode, _needs_high_fps, _advance_after_screen and others) with the traces identical before and after. docs/RUN_LOOP_REDESIGN.md describes the target structure. Hardware-checked on hdpi: Vegas late-frame rate unchanged in an ABBA A/B. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
1.1 KiB
JSON
32 lines
1.1 KiB
JSON
{
|
|
"screens": [
|
|
[0.0, "clock", 20.0, "duration", 20, false],
|
|
[20.0, "weather", 20.0, "duration", 20, true],
|
|
[40.0, "clock", 20.0, "duration", 20, true],
|
|
[60.0, "weather", 20.0, "duration", 20, true],
|
|
[80.0, "clock", 20.0, "duration", 20, true],
|
|
[100.0, "weather", 20.0, "duration", 20, true],
|
|
[120.0, "clock", 20.0, "duration", 20, true],
|
|
[140.0, "weather", 10.0, "schedule-off", 11, true],
|
|
[150.0, "<off>", 20.0, "on-demand-start", 2, null],
|
|
[170.0, "weather", 20.0, "on-demand-expired", 20, true],
|
|
[190.0, "weather", 20.0, "schedule-off", 20, true],
|
|
[210.0, "<off>", 120.0, "schedule-on", 2, null],
|
|
[330.0, "clock", 20.0, "duration", 20, true],
|
|
[350.0, "weather", 20.0, "duration", 20, true],
|
|
[370.0, "clock", 20.0, "duration", 20, true],
|
|
[390.0, "weather", 10.0, "horizon", 10, true]
|
|
],
|
|
"events": [
|
|
[30.0, "brightness", 30],
|
|
[150.0, "schedule-off"],
|
|
[170.0, "request", "start:s1"],
|
|
[170.0, "on-demand-start", "weather"],
|
|
[170.0, "schedule-on"],
|
|
[170.0, "brightness", 90],
|
|
[190.0, "on-demand-expired"],
|
|
[210.0, "schedule-off"],
|
|
[330.0, "schedule-on"]
|
|
]
|
|
}
|