Re: SVG speed?

HelderMagalhaes <[email protected]>
Newsgroups gmane.comp.mozilla.devel.svg
Organization http://groups.google.com
Message-ID <d6ba10e7-5bcf-4df8-94ca-715c18d3dde5@v38g2000yqb.googlegroups.com>
> I've been messing with SVG for a while now, and managed to come up
> with a relatively good library that I use for all of my SVG
> animations.

Great, please consider sharing it if not similar to existing libraries
(such as FakeSmile [1]). :-)


> I'm running into a problem where I'm trying to animate
> multiple (upwards of 20) SVG elements at the same time, and I keep
> running into crazy framerate issues.  Its expected, but its a nasty
> visual effect that I'm trying to avoid.

Updating this number of objects shouldn't be a problem. Of course this
will depend, as far as I know, on a number of parameters: the
complexity of the objects, the complexity of the canvas around them
(which may required more repainting whenever the objects are changed,
etc.).


> All of my animations are being performed with setTimeout, and I'm curious if there's a better
> way to do it. (perhaps setInterval?)

Using "setInterval" is not recommended due to a Firefox issue [2]. A
script animation study was recently published [3], and discussion is
being done through a thread [4] in the Yahoo's SVG Developers group.


Hope this helps,

 Helder Magalhães


[1] http://leunen.d.free.fr/fakesmile/index.html
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=291386
[3] http://anomaly.org/wade/projects/svg/profiling/
[4] http://tech.groups.yahoo.com/group/svg-developers/message/61533
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.