mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-10-04 06:15:09 +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>
21 lines
676 B
JSON
21 lines
676 B
JSON
{
|
|
"screens": [
|
|
[0.0, "nfl_live", 15.0, "duration", 15, true],
|
|
[15.0, "nfl_live", 15.0, "live", 15, false],
|
|
[30.0, "nhl_live", 15.0, "live", 15, true],
|
|
[45.0, "nfl_live", 15.0, "live", 15, true],
|
|
[60.0, "nhl_live", 15.0, "duration", 15, true],
|
|
[75.0, "nhl_live", 15.0, "duration", 15, false],
|
|
[90.0, "nhl_live", 15.0, "duration", 15, false],
|
|
[105.0, "clock", 15.0, "duration", 15, true],
|
|
[120.0, "nfl_live", 15.0, "duration", 15, true],
|
|
[135.0, "nhl_live", 15.0, "horizon", 15, true]
|
|
],
|
|
"events": [
|
|
[0.0, "live", "nfl_live"],
|
|
[30.0, "live", "nhl_live"],
|
|
[45.0, "live", "nfl_live"],
|
|
[60.0, "live", "nhl_live"]
|
|
]
|
|
}
|