You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
^^^ We do the two clock method for scheduling so that playback can stop. When unfocused, the setInterval loop gets called in a larger interval than its lookahead is. Easy fix would be to increase the lookahead amount (I changed PLAYBACK_LOOKAHEAD in js/playback.js to 1000 and there were no more timing issues) but that then makes pausing/stopping less responsive.
Maybe there's a way to detect if the window is unfocused, then increase the delay only then? As long as it doesn't add too much complexity, I think this would be the best option. Another option is to let the users set their own lookahead, but then that adds complexity to the UI.
The text was updated successfully, but these errors were encountered:
Video (1.7MB)
(Chrome, 10.10.5 OSX)
Required reading
^^^ We do the two clock method for scheduling so that playback can stop. When unfocused, the setInterval loop gets called in a larger interval than its lookahead is. Easy fix would be to increase the lookahead amount (I changed PLAYBACK_LOOKAHEAD in js/playback.js to 1000 and there were no more timing issues) but that then makes pausing/stopping less responsive.
Maybe there's a way to detect if the window is unfocused, then increase the delay only then? As long as it doesn't add too much complexity, I think this would be the best option. Another option is to let the users set their own lookahead, but then that adds complexity to the UI.
The text was updated successfully, but these errors were encountered: