Hi,

thanks for your response.

The memory usage only increases if I add a uniform variable to the stateset and 
use it in the shader. I also noticed that the memory increases just once per 
osg::Program, so I can use the same program in multiple statsets, even with 
different uniform parameters.

So, for now, I'm limiting the number of different shaders I use and try to 
reuse the same program as often as possible. It's not perfect but works for me.

... 

Thank you!

Cheers,
Clemens

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to