[osg-users] Switch call to viewer::frame() between threads

Robert Osfield robert.osfield at gmail.com
Tue Sep 11 11:23:19 PDT 2018


Hi Steven,

osgViewer was never designed to be used in the way you want to use it,
there are almost certainly better ways of doing what you want to do
functionally and a simpler way that trying play games with who invokes
frame.  It's just a bad approach so trying to help do something that
isn't sensible is a waste of our time and yours.

Robert.
On Tue, 11 Sep 2018 at 18:40, Steven Powers <StevenAPowers at gmail.com> wrote:
>
> Thanks for the replies. This is mostly experimental and I have already been calling frame() from a child thread for a while now without any problems as long as I call createGraphicsContext() and realize() from the same child thread.
>
> This effort is to streamline the initialization of the application on the mainthread which would require me to call realize/cGC() on a different thread.
>
> This seems to break all of the windows event control when I start calling frame() on a thread other than the one that created the graphics context and called realize().
>
> My question is if I can re-initialize this or do I have to create a fresh window to get this to work.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=74710#74710
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


More information about the osg-users mailing list