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?
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 :)
(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!
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?
(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.