[info-performer] pfInit() and __GL_SYNC_TO_VBLANK

Date view Thread view Subject view Author view

czys++at++ocag.ch
Date: 11/09/2005 02:27:58


Hi all,
 
I use Performer 3.2.0 on a Linux PC with an NVIDIA graphics card and driver.
 
If I set pfPhase(PFPHASE_FREE_RUN) and the NVIDIA driver environment
variable __GL_SYNC_TO_VBLANK = 0 then I expect my application to render the
images as fast as possible, i.e. without waiting for the buffer swap
(vertical retrace). But it does not! Surprisingly my application was not
able to render more than 64 fps no matter how (un)complex the rendered scene
is. Setting PFNFYLEVEL = 7 I noticed the following output of Performer on
startup:
 
PF Debug: pfInit: calling putenv("__GL_SYNC_TO_VBLANK=1");
 
Since my graphics card runs with a 64 Hz refresh rate this explains why no
more than 64 images per second are rendered. Does anyone know why pfInit()
overrides the __GL_SYNC_TO_VBLANK setting and how I can stop pfInit() from
doing this?
 
Thanks for any answers,
Yves
 

--
Yves Strube
 
Oerlikon Contraves AG
Birchstrasse 155
Postfach
CH-8050 Zurich, Switzerland


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Nov 09 2005 - 02:28:07 PST