[css-houdini-drafts] Allow animators to specify their desired frame rate

majido has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== Allow animators to specify their desired  frame rate ==
_From @majido on August 29, 2017 18:10_

(Note: Issue was created based on feedback from Houdini Paris F2F - [irc logs](https://logs.csswg.org/irc.w3.org/houdini/2017-08-01/))

At the moment, the specification does not declare how frequent animation should be pumped and it is left up to the user agents with a recommendation to pump as fast as possible.

However, not all effects needs to be pumped as fast as possible and running them faster than necessary will lead to unnecessary power usage. Mechanisms to better optimize the frame pump rate per animation is useful.


## Idea 1 - Explicit frame-rate declared
 Have animators request a particular pump rate (e.g., at least once every 4ms). Browser then tries to pump the desired rate with option to slow down if animation is missing the deadlines. Perhaps notifying the animation of rate change.

## Idea 2 - Speculative pump rate 
Browsers can pump as fast as possible but if no change was produced then reduce frame rate. This can be problematic for effects similar to position-sticky where they don't produce update in many frames but want to be pumped every frame.


_Copied from original issue: WICG/animation-worklet#88_

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/813 using your GitHub account

Received on Wednesday, 29 August 2018 18:19:48 UTC