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

Date view Thread view Subject view Author view

From: lawrence bertoldi (lberto++at++adelphia.net)
Date: 11/10/2005 20:08:24


On a related note I have found that __GL_SYNC_TO_VBLANK=1 dose not do
for me what I expected.
Objects that are close (like an antenna that is in front of my view)
still tear as if the image is being redrawn mid frame. Hopefully mine is
the same issue in reverse? like PF_SYNC_TO_VBLANK is set to Zero
causing __GL_SYNC_TO_VBLANK has no effect?

zys++at++ocag.ch wrote:

>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
>>-----------------------------------------------------------------------
>>
>>
>>
>>
>>
>
>
>
>


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Nov 10 2005 - 20:10:31 PST