[osg-users] How can we have a single VRAM footprint over multiple contexts/windows/views/camera in a multi-thread safe way?

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Tue Sep 29 20:39:41 PDT 2020


Greetings. 
 
Using OSG 3.6.3, we have experimented with the 'osgwindows' example, 
loading a test model and observing the VRAM usage. 

We saw that having two graphics context, set to each camera of the two 
windows (as in the example) has twice the VRAM footprint usage compared to 
using a single graphics context, camera and window.
 
Is there a multi-thread safe way to only have a single VRAM footprint 
usage, using two graphics contexts/cameras/windows ?
 
We have tried "sharing" the first graphics context to the 
'traits->sharedContext' of the second window. 

This seems to have given us the the desired effect of single VRAM footprint 
usage, but any multi-threading model seems to be unstable, not functional.
 
Thank you!

- Vaillancourt

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/fec92607-7b68-4144-b480-5cd2c071283fo%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200929/39f9bb18/attachment.html>


More information about the osg-users mailing list