Hi,

On Fri, 2005-05-06 at 06:02 -0400, Thomas DeWeese wrote:
> chandrashekar srinivasan wrote:
> 
> > 1) I have a svg document which when rendered onto the JSVGCanvas takes 
> > up lot of memory.
> 
>     Do you know why it takes up lots of memory?
> 
> > I need to display the document only when a user 
> > invokes a menu item. Is there any way I could keep the document object 
> > bound to JSVGCanvas but only render when I show the canvas. again when 
> > the canvas is closed, free some memory. anything I could do with 
> > staticrenderer?
> 
>     One of the larger chunks of memory for the canvas is it's offscreen
> buffer (it may have two if you have double buffering set).  If you
> shrink the canvas size I think the offscreen buffers will shrink as
> well.  Ideally if you rendered statically you could drop the DOM
> completely and just keep the GVT tree.  This doesn't quite work in
> practice because Text keeps a reference to the DOM in order to resolve
> SVG Fonts (which is done at render time - for a variety of reasons).
> If you didn't care about this you could probably 'fix' this locally.

A little bit offtopic, I got questions regarding double buffering set.
- is the double buffer different with offscreen buffer ?
- Does turn off double buffering have any effect on the SVG / GVT
especially related to dynamic document ?
- Does double buffering have any effect on other stuff other than memory
eg: speed, etc ?
- Does double buffering have the same pixel size and content with
offscreen buffer ?

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to