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>
25 lines
913 B
JSON
25 lines
913 B
JSON
{
|
|
"screens": [
|
|
[0.0, "scroller", 20.008, "cycle-complete", 2502, false],
|
|
[20.008, "news", 40.0, "duration", 40, true],
|
|
[60.008, "board", 11.0, "cycle-complete", 12, true],
|
|
[71.008, "clock", 10.0, "duration", 10, true],
|
|
[81.008, "scroller", 20.007, "cycle-complete", 2502, true],
|
|
[101.015, "news", 40.0, "duration", 40, true],
|
|
[141.015, "board", 11.0, "cycle-complete", 12, true],
|
|
[152.015, "clock", 10.0, "duration", 10, true],
|
|
[162.015, "scroller", 20.008, "cycle-complete", 2502, true],
|
|
[182.023, "news", 37.977, "horizon", 38, true]
|
|
],
|
|
"events": [
|
|
[0.0, "cycle-reset", "scroller"],
|
|
[20.008, "cycle-reset", "news"],
|
|
[60.008, "cycle-reset", "board"],
|
|
[81.008, "cycle-reset", "scroller"],
|
|
[101.015, "cycle-reset", "news"],
|
|
[141.015, "cycle-reset", "board"],
|
|
[162.015, "cycle-reset", "scroller"],
|
|
[182.023, "cycle-reset", "news"]
|
|
]
|
|
}
|