On Wed, Jul 15, 2009 at 05:15:54AM -0700, [email protected] wrote:
> 
> I know this is a strange question but is there a way to
> programmatically (and dynamically) to do what the
> __GL_SYNC_TO_VBLANK environment variable does?
> 
> I want to sync every n-th frame to VBLANK and let all the other
> frames "free-run". Put another way, only the n-th frame will be
> visualized and all the other frames will be generating intermediate
> results. Also, "n" can vary dynamically as the program is running.

If the itermediate frames don't need to be seen, then just don't call
swap buffers on those frames.  The next frame will clear the buffers
and start over.  Why would you want to sometimes see tearing and
sometimes not?

-- 
David Fries <[email protected]>
http://fries.net/~david/ (PGP encryption key available)
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to