RESOLVED FIXED 170630
Align the timers for throttled rAF to reduce power usage
https://bugs.webkit.org/show_bug.cgi?id=170630
Summary Align the timers for throttled rAF to reduce power usage
Simon Fraser (smfr)
Reported 2017-04-07 17:24:24 PDT
Align the timers for throttled rAF to reduce power usage
Attachments
Patch (2.32 KB, patch)
2017-04-07 17:26 PDT, Simon Fraser (smfr)
no flags
Simon Fraser (smfr)
Comment 1 2017-04-07 17:26:19 PDT
Chris Dumez
Comment 2 2017-04-08 16:04:43 PDT
Comment on attachment 306553 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=306553&action=review r=me > Source/WebCore/dom/ScriptedAnimationController.cpp:313 > + Seconds alignment = (fireTime + alignmentInterval / 2).secondsSinceEpoch() % alignmentInterval; MonotonicTime has % operator, so I don't think we need .secondsSinceEpoch(), do we?
Jon Lee
Comment 3 2017-04-10 00:09:01 PDT
Carlos Garcia Campos
Comment 4 2017-04-11 01:11:28 PDT
This landed in r215153, but I guess you forgot to close the bug. This broke RAF animations in GTK+ port, there must be something wrong in the aligned fire time calculation, because we are getting negative delays.
Carlos Garcia Campos
Comment 5 2017-04-11 01:21:04 PDT
Ah, wait, I think the problem is that in mac port, the timer is only used when throttling. Anyway, I'll close this bug and open a new one.
Carlos Garcia Campos
Comment 6 2017-04-11 01:22:07 PDT
Note You need to log in before you can comment on or make changes to this bug.