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