Re: [info-performer] pfInit() and __GL_SYNC_TO_VBLANK

Date view Thread view Subject view Author view

From: Amir Meteraso (amir++at++sgi.com)
Date: 11/09/2005 02:16:25


Hi Yves,

You can try unset __GL_SYNC_TO_VBLANK, and set
PF_SYNC_TO_VBLANK to "0" before running your performer app.

pfInit will look for the environment variable PF_SYNC_TO_VBLANK.
If this is not set, or set to "1" it will set the environment
variable __GL_SYNC_TO_VBLANK to "1" (and print a debug message).

Thank
Amir
 
czys++at++ocag.ch wrote:

>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
>
>-----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-----------------------------------------------------------------------
>
>
>

-- 
Amir Meteraso			    amir++at++sgi.com
OpenGL Performer - SGI		(972)-9970-6680


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Nov 09 2005 - 04:18:11 PST