Commit 9fd3bde
fix(wasm): only rebase timeline when pace-drops drain the ring
The previous fix (552c823) rebased wallStart/rtpStart on every
pace-drop. When decode throughput is slightly below source rate
(e.g. 25 fps vs 30 fps), the per-drop rebase creates a visible
sawtooth: smooth → drop → timeline jump → smooth → repeat.
Replace with a lighter touch: rebase only when the ring empties
completely from drops (the catastrophic stall that triggered the
original bug). Individual drops are absorbed naturally by the
existing timeline — surviving frames stay on-schedule and the
gradual drift recovers without visible glitches.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 552c823 commit 9fd3bde
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1547 | 1547 | | |
1548 | 1548 | | |
1549 | 1549 | | |
1550 | | - | |
1551 | | - | |
1552 | | - | |
1553 | | - | |
1554 | | - | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
1555 | 1554 | | |
1556 | 1555 | | |
1557 | 1556 | | |
1558 | | - | |
1559 | | - | |
| 1557 | + | |
1560 | 1558 | | |
1561 | 1559 | | |
1562 | 1560 | | |
| |||
0 commit comments