--- In [email protected], Holger Will <[EMAIL PROTECTED]> wrote:
>
> run2bmi21 schrieb:
> 
> > Hi,
> >
> > Does anyone have any hints on improving response times from ASV when
> > SVG file has about 5,000 elements?  The elements are simple lines
> > (4,000) and circles (1,000).  For every circle, there's a word or two
> > of associated text, positioned just below the circle.
> >
> > Just wondering whether something as simple as not filling the circles
> > with color (fill="none") may help ASV response times.
> >
> > Currently, the behavior I'm seeing on a Dell Latitude D610 laptop
> > (i.e. a new laptop with average CPU) is about a 5 second delay in
> > image appearance after file has completely loaded.  Also, significant
> > zoom and pan delays, say 3-5 seconds on a zoom, and extremely
> > lethargic panning.
> >
> > My guess is, since line elements are the most numerous in the
> > SVG, that I should concentrate on optimizing them, but they're already
> > perhaps as simple as they're going to get, e.g.
> >
> > <line stroke="#bbbbbb" visibility="visible" id="edge1to0" x1="100"
> > x2="100" y1="100" y2="2600" stroke-width="2"/>
> >
> > And a typical circle in the SVG looks like:
> >
> > <circle fill="red" fill-opacity="1.0" stroke="#bbbbbb"
> > stroke-width="2" id="vertex0" cx="100" cy="2600" r="76"/>
> >
> > Does it take ASV a longer time to render an object positioned on the
> > canvas with x,y coordinates with decimal values such as 34.56 instead
> > of 34?
> >
> > Thanks in advance for any thoughts.
> >
> > Doug
> 
> hi Doug
> 
> have you tried shape-rendering="optimizeSpeed" ?
> putting this into your <svg> Element, will cause your graphic to be 
> drawn without antialising.
> usually this will speed up thinks significantly, at the cost of
accuracy.
> 
> hth
> Holger
> 
> p.s.: you might want to look at this fine paper by one of the main ASV 
> developers, which gives some hints on increasing perfomance:
>        http://www.svgopen.org/2002/papers/sorotokin__svg_secrets/
> 
> -- 
> if this information was usefull, please try to help someone else !
> http://www.treebuilder.de
>

Thanks Holger for your thoughts.  I think I read that SVG paper a long
time ago but had forgotten about it.  A lot of good tips in it.  I did
try adding the shape-rendering="optimizeSpeed" attribute to the SVG
element.  The initial rendering time went from 5-6 to 1-2 seconds, but
the image quality really fell.

I need to spend more time experimenting with Sorotokin's tips and with
other hints I've received in this thread.  Alas, paycheck work has
intervened.

Thanks again,
Doug






-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to