Commit 2ab43da
committed
fix: prevent phosphor sweep speed burst on initial load
Cap the phosphor accumulator so excess time from dropped frames is
discarded rather than draining over subsequent frames at max tick rate.
Also reset timing state when the animation loop starts.1 parent c212f66 commit 2ab43da
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
394 | | - | |
| 393 | + | |
395 | 394 | | |
396 | | - | |
397 | 395 | | |
398 | 396 | | |
399 | 397 | | |
| |||
775 | 773 | | |
776 | 774 | | |
777 | 775 | | |
| 776 | + | |
| 777 | + | |
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
| |||
0 commit comments