Hi Robert,
Robert Osfield wrote:
Hi J.P,
On Tue, Oct 20, 2009 at 7:44 AM, J.P. Delport <[email protected]> wrote:
is it OK to create a viewer in e.g. the main thread and then call frame()
from a different thread? We're getting erratic results on Linux vs Windows
vs Mac. So I just want to know if this use case is "legal".
I've done this under Linux - the osgqtbrowser example in svn/trunk has
the option of creating a background thread form running the frame loop
while qt takes control over the main thread. I haven't tested this
under Windows or OSX though. OSX I wouldn't be surprised at problems
as it has a really stupid limitation of only getting window events
from the main thread - you simply can't poll for events in any other
thread. I don't know what the status is under Windows though. X11
copes just fine with getting events from any thread in your app -
sometimes the oldest tech still totally outstrips the new...
this confirms my findings. Our app runs fine on Linux, on Mac we have to
do something in the main thread to make sure the view updates, on
Windows we are not sure if it is working or not. I will try osgqtbrowser
on Windows and see what happens.
Anyone else have reports on osgqtbrowser on Windows?
thanks
jp
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org