Hi James,

The new osgVIewer library in the subversion of the OSG supports
multi-threaded, multi-context usage across Windows, Linux and OSX.
osgProducer/Producer support multi-threaded, multi-context usage
across Linux and OSX.

Now the OpenGL drivers should support multi-thread mutl-contex usage,
if this weren't possible then we'd have problems opening up multiple
OpenGL applications at once.  If this isn't supported then its a bug
in the driver.  If it is supported then the OSG "should" be able to
run just fine multi-threaded multi-context.

Note, in all the above I mean one thread per context.

Robert.

On 3/21/07, James Bigler <[EMAIL PROTECTED]> wrote:
I've spent most of my OpenGL development on Linux using NVidia drivers.
  In the past I've opened multiple windows each with their own thread
and GL context, and I've been able to successfully render into each
context in parallel.

The other day I tried doing so with an ATI card using both the open and
closed source drivers (ati and flxgl), but OpenGL reports that it isn't
multithreaded.

Stack trace (goes down to up):

/lib/tls/i686/cmov/libc.so.6(abort+0xe9) [0xb1af12e9]
/lib/tls/i686/cmov/libc.so.6(__assert_fail+0x101) [0xb1ae8f71]
/usr/lib/libGL.so.1(_glapi_check_multithread+0) [0xb209e090]
/usr/lib/libGL.so.1(_glapi_check_multithread+0x67) [0xb209e0f7]
/usr/lib/libGL.so.1(glXMakeCurrentReadSGI+0x13c) [0xb20b5ee5]
/usr/lib/libGL.so.1(glXMakeCurrent+0x23) [0xb20b62aa]

I want my code to run on other architectures, so I'm wondering if anyone
has had experience trying to render into multiple contexts in parallel
on other systems like Windows or Mac OSX.

Note that I'm not trying to use more than a single thread for each
context.  I know OpenGL isn't that parallel. ;)

Thanks,
James
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to