I have posted an early patch on bug 1219145 that approximates "animating" to "is anyone listening for vsync". If anybody knowledgeable could take a look, I'd be grateful.
Cheers, David On 30/10/15 02:33, Karl Tomlinson wrote: > David Rajchenbach-Teller writes: > >> To improve the Performance Stats API, I'm looking for a way to find out >> if we are currently animating something on the main thread. >> >> My definition of animating is pretty large, i.e. "will the user probably >> notice if some computation on the main thread lasts more than 32ms". >> >> Do we have a reliable way to do that? > > I would guess that our main thread animations all run off a single > 60 Hz throttle, which I assume is the RefreshDriver. If that > throttle has no jobs scheduled to run, then I expect there are no > animations in progress. > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform > -- David Rajchenbach-Teller, PhD Performance Team, Mozilla
signature.asc
Description: OpenPGP digital signature
_______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform