Hi Neil,

A deep copy clones all the data, so none of the data is shared, so if
you clone a subgraph with a texture that texture will now copied to
400 textures.  Clearly this isn't good for performance.

Robert.

On Fri, Jan 30, 2009 at 10:06 AM,  <neil.hug...@tesco.net> wrote:
> Hi All,
>
> Can anyone assist with an issue/misunderstanding I'm having when using 
> DEEP_COPY_ALL please ?
>
> The issue is that if I have a cube that I apply a texture to and add to the 
> scenegraph. This displays very quickly and no problems. If then do a clone 
> operation on the cube - say 400 times - adding each cloned node to the 
> scenegraph with a changed parent transform so that I effectively have an 
> arrangement of tiles in a grid like pattern, the realisation of the first 
> frame is very slow. Once first frame is realised, subsequent frame rate is 
> fine. Its almost as if, even though the DEEP_COPY_ALL operation has 
> completed, the nodes are referencing something that the first frame needs to 
> resolve. The only thing I can think of -perhaps erroneously I accept - is 
> that the textures are having to be loaded. Is this the case, and if so, what 
> can I do to speed up realisation of the first frame?
>
> Thanks for any help.
>
> Kind regards
>
> Neil
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to