Re: Poor performance of script-based SVG animation under Firefox

matt Keveney <[email protected]>
Newsgroups gmane.comp.mozilla.devel.svg
Organization Your Company
Message-ID <[email protected]>
Boris Zbarsky <[email protected]> wrote in
news:[email protected]: 

> matt Keveney wrote:
>> I have a preliminary animated SVG running fine now, but am very
>> concerned about performance under Firefox 3.0.8.
> 
> For what it's worth, on a reasonably modern (8 months old) Mac laptop
> I have to go up to about 80fps before I see a visible performance
> issue. 
> 
> I profiled at 100fps, and here's what things look like:
> 
> 20% doing the setAttribute calls (largely recomputing the paths).
> 70% painting.  About 3/7 of this is in OS code (on Mac), the remaining
> 4/7 is largely our paint code.
> 
> That 40% painting code on our end is about 1/4 filling rects and 3/4 
> drawing the paths.

Thanks for testing it out!

How did you do the profiling?  Can you direct me somewhere to learn about 
the tools you used?  I'd love to be able to duplicate your test, even if 
I have to set up a build myself.

> 
> I do wonder how the painting looks on a poor graphics card (not that
> the graphics card in the mid-2008 Macbook Pro I have is particularly
> stellar...) 

It _looks_ terrific on my machine.  It's just the performance that has me 
concerned.

> 
> -Boris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.