On Wed, Feb 6, 2013 at 1:51 PM, Yonas Sahlemariam <[email protected]>wrote:
> > Do you think the problem lies on from the fact that I used two threads, > what sort of design ideas do you follow in such scenarios, where you > require orientation information to manipulate the camera. > Without seeing your code nobody can really help you. A common problem with multiple threads is priority inversion - your "vrpn" thread is blocking the rendering way too often. I am using VRPN with OSG in such way that I call the mainloop() function in the main viewer loop and poll VRPN for new data in an update callback. The VRPN client classes are designed to be lightweight and return immediately, so there is no need to run it on separate thread. Jan
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

