czys++at++ocag.ch
Date: 11/09/2005 04:33:48
Hi Amir,
thanks a lot! That helped me and it works now.
Additionally I had to call pfFrame(0) (or I must at least not call
pfFrame(x) with x != 0), so that I get really free run.
Thanks again,
Yves
-----Original Message-----
From: Amir Meteraso [mailto:amir++at++sgi.com]
Sent: Wednesday, November 09, 2005 11:16
To: czys++at++ocag.ch
Cc: info-performer++at++sgi.com
Subject: Re: [info-performer] pfInit() and __GL_SYNC_TO_VBLANK
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
This archive was generated by hypermail 2b29 : Wed Nov 09 2005 - 04:34:00 PST