Robert,
 
I am not even running with vsync, what does vsync do?  Also how do I trun it off and on?
 
Thanks,
 
Shane


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield
Sent: Wednesday, September 06, 2006 9:27 AM
To: osg users
Subject: Re: [osg-users] OSG Question

Hi Shane,

Are you using your own custom viewer code, or basing it on osgProducer?

W.r.t the CPU spike, is it simply that you are running with vsync off so the main loop is just free running consuming as much resouces as it can.  I strongly recommend switching vsync on, it improves visual quality, reduces CPU and GPU load, and even helps stop global warming ;-)

I also recommend moving onto the the latest release of the OpenSceneGraph, we have just made 1.2-rc2, and compared to 0.9.9 its more stable, faster and more feature complete.  Support is also far easier as any problems you come across will be relevant to bulk of the OSG community.

Robert.

On 9/6/06, Rogers, Shane <[EMAIL PROTECTED]> wrote:
Hello, I am with Mentor Graphics and we are developing a 3DViewer for our ExpeditionPCB software.  We run on Windows, Linux 7.3, ew3 and ew4 platforms.  We are currently using OSG 0.9.9 and I am running into some issues on Linux.  In Windows we us the on button up and down functions to manipulate the object in the 3DViewer.  In Linux we use a trackball function that calculates the matrices. 
 
There is a OnStartRendering function that will do a DoFrame in Windows this function is called from any mouse movement or button click so there is no issue with the rendering.  In the OnStartRendering function there is a while loop and while in Linux while rendering you are constantly in this while loop.  This causes the CPU to spike, but if I but in a break in the while loop or exit the function the object on the screen stops moving.  After I am out of the OnStartRendering function the 3DViewer no longer recognizes any input from the mouse.  Unless I force it to get back into the OnStartRendering function.  Once this happens all mouse commands are recognized but the CPU will continue to spike once in the function again.  So the question is how do I get the Scene Graph to recognize my mouse input once I am out of the OnStartRendering function?  I need the mouse input so that I can call the OnStartRendering function which in return will let me manage the CPU spikes.  Any input would be welcome.
 
Thanks,
 
Shane

_______________________________________________
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