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>
23 lines
860 B
JSON
23 lines
860 B
JSON
{
|
|
"screens": [
|
|
[0.0, "clock", 10.0, "duration", 10, false],
|
|
[10.0, "empty", 0.0, "empty", 1, true],
|
|
[10.0, "ghost", 0.0, "no-plugin", 0, null],
|
|
[10.0, "flaky", 12.0, "display-false", 2, true],
|
|
[22.0, "clock", 10.0, "duration", 10, true],
|
|
[32.0, "empty", 0.0, "empty", 1, true],
|
|
[32.0, "ghost", 0.0, "no-plugin", 0, null],
|
|
[32.0, "flaky", 12.0, "display-false", 2, true],
|
|
[44.0, "clock", 10.0, "duration", 10, true],
|
|
[54.0, "empty", 0.0, "empty", 1, true],
|
|
[54.0, "ghost", 0.0, "no-plugin", 0, null],
|
|
[54.0, "flaky", 12.0, "display-false", 2, true],
|
|
[66.0, "clock", 10.0, "duration", 10, true],
|
|
[76.0, "empty", 0.0, "empty", 1, true],
|
|
[76.0, "ghost", 0.0, "no-plugin", 0, null],
|
|
[76.0, "flaky", 12.0, "display-false", 2, true],
|
|
[88.0, "clock", 2.0, "horizon", 2, true]
|
|
],
|
|
"events": []
|
|
}
|