Hi,

On Thu, 2005-04-07 at 19:38 +0000, MJ wrote:
> A major issue with our performance was related to the use of 
> the "visibility" attribute (specifically "hidden") compared to using 
> the "display" attribute (set to "none").
> [snip]
> When I modified the SVG to use display="none" 
> the displays were able to be called up **4 time faster**.  Checking 
> the SVG spec 
> (http://www.w3.org/TR/SVG11/painting.html#VisibilityControl)
> indicates why.  From the spec:
> 
> "When the 'display' property is set to none, then the given element 
> does not become part of the rendering tree."

Initially using display attribute seem faster, however runtime frequent
changing of display attribute could be slower than visibility attribute
due to engine keep calculating/rendering for the change in display
attribute. 

For visibility attribute the engine only need to calculate/render once,
any subsequent changing to this attribute doesn't make the engine to
keep calculate/rendering, it only display or not display

However, this is pretty much engine specific how they treat display and
visibility attribute.

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com



-----
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