Re: Poor performance of script-based SVG animation under Firefox
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Message-ID | <[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. 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...) -Boris