mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-10-04 14:25: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>
31 lines
1.2 KiB
JSON
31 lines
1.2 KiB
JSON
{
|
|
"screens": [
|
|
[0.0, "clock", 20.0, "duration", 20, false],
|
|
[20.0, "weather", 5.0, "on-demand-start", 6, true],
|
|
[25.0, "sports_recent", 15.0, "duration", 15, true],
|
|
[40.0, "sports_upcoming", 15.0, "duration", 15, true],
|
|
[55.0, "sports_recent", 15.0, "duration", 15, true],
|
|
[70.0, "sports_upcoming", 15.0, "duration", 15, true],
|
|
[85.0, "sports_recent", 10.0, "on-demand-requested-stop", 11, true],
|
|
[95.0, "weather", 20.0, "duration", 20, true],
|
|
[115.0, "sports_recent", 15.0, "duration", 15, true],
|
|
[130.0, "sports_upcoming", 15.0, "duration", 15, true],
|
|
[145.0, "clock", 5.0, "on-demand-start", 6, true],
|
|
[150.0, "weather", 20.0, "duration", 20, true],
|
|
[170.0, "weather", 10.0, "on-demand-expired", 10, true],
|
|
[180.0, "clock", 20.0, "duration", 20, true],
|
|
[200.0, "weather", 20.0, "duration", 20, true],
|
|
[220.0, "sports_recent", 15.0, "duration", 15, true],
|
|
[235.0, "sports_upcoming", 5.0, "horizon", 5, true]
|
|
],
|
|
"events": [
|
|
[25.0, "request", "start:r1"],
|
|
[25.0, "on-demand-start", "sports"],
|
|
[95.0, "request", "stop:r2"],
|
|
[95.0, "on-demand-requested-stop"],
|
|
[150.0, "request", "start:r3"],
|
|
[150.0, "on-demand-start", "weather"],
|
|
[180.0, "on-demand-expired"]
|
|
]
|
|
}
|