[osg-users] Is there any way to preload textures/geometry?

2012-08-13 Thread Nick Jones
Hello,

  I am experiencing a performance decrease when OSG culls new objects into view 
for the first time. My current assumption is that the objects' textures and/or 
geometry must be pushed down to the GPU before it can be used. Once they are 
cached in the GPU, the performance returns to normal.

  Does anyone know of a way I can tell OSG to preload textures and/or geometry 
to the card during my load time? If I can preload all my data at load time, I 
won't have any performance decrease at run time. I am working on a real time 
system and I cannot afford the performance hits that I am getting.

Thank you!
Nick

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=49251#49251





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Is there any way to preload textures/geometry?

2012-08-13 Thread Jason Daly

On 08/13/2012 05:26 PM, Nick Jones wrote:

Hello,

   I am experiencing a performance decrease when OSG culls new objects into 
view for the first time. My current assumption is that the objects' textures 
and/or geometry must be pushed down to the GPU before it can be used. Once they 
are cached in the GPU, the performance returns to normal.

   Does anyone know of a way I can tell OSG to preload textures and/or geometry 
to the card during my load time? If I can preload all my data at load time, I 
won't have any performance decrease at run time. I am working on a real time 
system and I cannot afford the performance hits that I am getting.


You probably want to take a look at osgUtil::GLObjectsVisitor

--J

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Is there any way to preload textures/geometry?

2012-08-13 Thread Buckley, Bob CTR MDA/DES

osg::GraphicsOperation *gOp = camera-getRenderer();
((osgViewer::Renderer *) gOp)-setCompileOnNextDraw(true);


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Nick Jones
Sent: Monday, August 13, 2012 3:26 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Is there any way to preload textures/geometry?

Hello,

  I am experiencing a performance decrease when OSG culls new objects into view 
for the first time. My current assumption is that the objects' textures and/or 
geometry must be pushed down to the GPU before it can be used. Once they are 
cached in the GPU, the performance returns to normal.

  Does anyone know of a way I can tell OSG to preload textures and/or geometry 
to the card during my load time? If I can preload all my data at load time, I 
won't have any performance decrease at run time. I am working on a real time 
system and I cannot afford the performance hits that I am getting.

Thank you!
Nick

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=49251#49251





___
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


Re: [osg-users] Is there any way to preload textures/geometry?

2012-08-13 Thread Nick Jones

Buckley, Bob CTR MDA/DES wrote:
 osg::GraphicsOperation *gOp = camera-getRenderer();
 ((osgViewer::Renderer *) gOp)-setCompileOnNextDraw(true);


Thank You Bob! That did the trick...

Nick

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=49254#49254





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org