Re: Reflections on writing a sequencer

The sequencer pre-roll paradigm as described by Joe is what I've been using
very happily.

Also, window.onblur/onfocus can be used to handle situations where the
requestAnimationFrame tick callback is inhibited due to your sequencer tab
not being visible in the foreground: by pausing the sequencer playback,
radically increasing it's pre-roll look-ahead duration and using a
throttled setTimeout instead, etc as needed.


Anthony.

On 24 July 2012 20:11, Jonathan Baudanza <jon@jonb.org> wrote:

> On Tue, Jul 24, 2012 at 3:03 PM, Adam Goode <agoode@google.com> wrote:
>
>> Aha, thanks for the tips. I didn't find anything in the w3c bugzilla
>> regarding callbackAtTime, but that sounds like it's perfect.
>>
>> I'll try Joseph's technique for now.
>>
>>
> Chrome will throttle setTimeout callbacks to once a second if the browser
> frame isn't visible. There's nothing you can do about it, but it's good to
> know so you don't spent a lot of time debugging.
>

Received on Wednesday, 25 July 2012 08:06:19 UTC