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


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Nick Jones
Sent: Monday, August 13, 2012 3:26 PM
To: [email protected]
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
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to