[osg-users] force vsync to false (sofware not hardware) on NVidia
Christian Schulte
christian.schulte at onera.fr
Wed Jul 22 06:30:47 PDT 2015
Hello Jan,
I succeeded in OSG to turn off vSync in soft when the driver is set to
application controlled. The problem in my case was really that in the
GraphicsWindowWin32.cpp CreateWindow method the setSyncToVBlank method
is only called if vSync==true... and that's the odd thing!
I'm currently modifying the code in order to make it possible to
activate and DESACTIVATE vSync in OSG. And it works for me under windows
but I first have to check that it will also work for ATI cards (I have
no Intel Graphics so cannot test these ones) before I try to submit. I
don't know if there is a similar bug in Linux ?
By the way I will try also to see if there is a correct manner to
integrate the handling of transparent windows (as specified by Chris
Hidden in the mailing list end of 2014 (see "Transparent Window
Application" discussion) without having some negative impact on already
existing codes...
Maybe I should launch a new discussion thread on this subject, as I
would want to know if there would be some interest in being able to
change transparency and window behaviour even in use of OSG, not only on
initialization...
Christian
Le 22/07/2015 10:39, Jan Ciger a écrit :
> Hello,
>
> I am prototyping some OpenGL stuff in Python using Pyglet and have
> encountered the same vsync problem, both in Linux & Windows. I think
> it is Nvidia's driver that is (again - Nvidia had various vsync issues
> in the past) trying to be smart and is breaking vsync in OpenGL. It
> has most likely nothing to do with OSG.
>
> For me if the vsync setting in the driver is set to application
> controlled, it is always on, no matter what the application specifies
> (vsync=False or vsync=True in the gl.Config setup in Pyglet makes no
> difference). The only way to turn vsync off is to disable it in the
> driver's control panel.
>
> J.
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
--
SCHULTE Christian
Ingénieur Recherche
Responsable du Laboratoire de Simulation
ONERA - DCSD/PSEV
Département Commande des Systèmes et Dynamique du Vol
ONERA - Centre de Salon de Provence
BA 701
13661 SALON AIR Cedex - France
Tel :04.90.17.01.45
More information about the osg-users
mailing list