[osg-users] How change the vertical sync?

2013-10-17 Thread Julio Jerez
Oh there is one more thing you need to first, you need create a new context so that you can realize it, otherwise the function make current do not take place here is the final code viewer.setUpViewInWindow(x, y, width, height); //Get the traits of the current window os

[osg-users] How change the vertical sync?

2013-10-17 Thread Julio Jerez
No, I do not think that controlling this at the driver level is the right way to do that. I digged a litle and I think I found a better way, in case any anyone wants to know, here is how it can be done on initilaization //Get the traits of the current window osg::ref_ptr< osg:

Re: [osg-users] How change the vertical sync?

2013-10-17 Thread PCJohn
Hi Julio, this is the code I am using (you may need to reformat it, because email splits many lines into two). Call it once you have active context. You may still need some includes like #include #if defined(__WIN32__) || defined(_WIN32) # [...] #else # include #endif and so on. John //

Re: [osg-users] How change the vertical sync?

2013-10-15 Thread Eric Sokolowsky
If you have an Nvidia card, you can set the environment variable __GL_SYNC_TO_VBLANK=1 or =0 to enable or disable vertical syncing, but this must be done before the graphics context is initialized. I'm not sure how to do it for ATI or Intel chips. A google search turned up this tip for ATI cards: h

[osg-users] How change the vertical sync?

2013-10-15 Thread Julio Jerez
In my app I wrote this class function void InitWindowsSystem (osgViewer::Viewer& viewer, const char* const title, int x, int y, int width, int height) { viewer.setUpViewInWindow(x, y, width, height); //Get the traits of the current window osg::ref_ptr< osg::GraphicsCont