Re: [osg-users] Running viewer loop and physic calculations in different threads

2009-05-22 Thread Cory Riddell
Hi Alfonso, I'm doing something similar to what you are doing. My viewer is running in it's own thread. I have a shared object that I use to communicate between the threads. If you are looking for sample code, I can try to distill what I have to something relatively simple. I'm using the

Re: [osg-users] Running viewer loop and physic calculations in different threads

2009-05-22 Thread Alfonso Callejo Goena
Cory Riddell c...@... writes: Hi Alfonso, I'm doing something similar to what you are doing. My viewer is running in it's own thread. I have a shared object that I use to communicate between the threads. If you are looking for sample code, I can try to distill what I have to something

Re: [osg-users] Running viewer loop and physic calculations in different threads

2009-05-22 Thread Cory Riddell
Alfonso, I've distilled my code down. I hope I haven't cut out too much. The most complicated part for me was getting the halting sequence correct. I tell the viewer to stop drawing and then have to wait until the viewer thread is finished and notifies me that it is complete. I have a view