[web-animations] Sampling optimization

2015-04-14 Thread Glen Huang
If I understand the spec correctly, in the case of keyframe effects, an UA is expected to periodically update all keyframe effects. Upon being requested to update itself, a keyframe effect then queries the animation (who in turn queries the document timeline) to get time fraction and current ite

Re: [web-animations] Sampling optimization

2015-04-16 Thread Brian Birtles
Hi Glen, On 2015/04/15 15:37, Glen Huang wrote: If I understand the spec correctly, in the case of keyframe effects, an UA is expected to periodically update all keyframe effects. I'm not sure exactly what you mean by updating keyframe effects. Are you referring to the times returned by the

Re: [web-animations] Sampling optimization

2015-04-16 Thread Glen Huang
> Are you referring to the times returned by the computedTiming member or the > process of applying changes to target elements? In my mental model, keyframe effects pull times from its computedTiming member then apply changes to the target element. So by UA updating keyframe effects, I mean the

Re: [web-animations] Sampling optimization

2015-04-20 Thread Brian Birtles
On 2015/04/17 14:34, Glen Huang wrote: The difficulty for a JS implementation is to make sure the times reported by the timeline etc. match up with the current frame even when the polyfill is not listening for frames but something else is generating them Yes, that's the difficulty I encounter