NEW 96338
Drive SVG animations via requestAnimationFrame
https://bugs.webkit.org/show_bug.cgi?id=96338
Summary Drive SVG animations via requestAnimationFrame
Philip Rogers
Reported 2012-09-10 16:51:56 PDT
We currently hook SVG animations on a 40fps timer: SMILTimeContainer.cpp, static const double animationFrameDelay = 0.025. If we hooked up to requestAnimationFrame, we could draw at 60fps and not slow foreground pages down when we are a background tab. @Niko, @Dirk, can you think of any reason this wouldn't work?
Attachments
Dirk Schulze
Comment 1 2012-09-10 17:11:09 PDT
Adding Arvid to this bug report. As far as I understood, he was working on that before. Maybe he can give more input of even add a patch :)
Dirk Schulze
Comment 2 2012-09-10 17:18:53 PDT
(In reply to comment #1) > Adding Arvid to this bug report. As far as I understood, he was working on that before. Maybe he can give more input of even add a patch :) Just as a general comment: Yes!!! It should work with requestAnimationFrame!
Nikolas Zimmermann
Comment 3 2012-09-10 23:53:32 PDT
I have an unfinished branch which unifies SMIL CSS animations with our existing CSS Animations/Transitions frameworks. I think some bugs were left to fix. Would this could help you?
Arvid Nilsson
Comment 4 2012-09-11 00:07:24 PDT
(In reply to comment #3) > I have an unfinished branch which unifies SMIL CSS animations with our existing CSS Animations/Transitions frameworks. I think some bugs were left to fix. Would this could help you? I was actually investigating whether I could move to RAF instead of the CSS animation timer in WebCore. At that time, The AnimationController was also using a 40 fps timer. I haven't looked into SVG animations, but it sounds very similar.
Note You need to log in before you can comment on or make changes to this bug.