Repository navigation
Commit 92dbd58
authored
Raspberry Pi 0 fix - Extending usage of "Thread-safe snapshot of correction schedule" (#37)
The Raspberry Pi 0 (variant of the original Raspberry Pi) is a low performant, single-threaded computer.
Accordingly, it's a bit more sensitive to some time based issues.
You snapshot `self._####_every_n_frames` from what I assume is the same general issue, giving the comment `Thread-safe snapshot of correction schedule`
However, the replacement `####_every_n` aren't used in all spots within the loop.
This update to use these seems to have resolved the playback issues on the Raspi 0.
My issue manifested itself as switching from 7% CPU to 100% CPU and hanging.
Identified with `py-spy` and some chatgpt to summary the code.1 parent 57abe85 commit 92dbd58
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
| 474 | + | |
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
| 478 | + | |
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
487 | | - | |
| 487 | + | |
488 | 488 | | |
489 | 489 | | |
490 | | - | |
| 490 | + | |
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
| |||
0 commit comments