realbasic-games
[Top] [All Lists]

Re: Syncing to the vertical retrace

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Syncing to the vertical retrace
From: Asher Dunn <asher at fireyesoftware dot com>
Date: Fri, 1 Oct 2004 23:20:08 -0400
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <7BAC3A30-13E8-11D9-99AD-000A95DB6C90 at fireyesoftware dot com> <FB085161-13EA-11D9-83D9-0003933EA538 at chaoticbox dot com>

On Oct 1, 2004, at 4:46 PM, Frank Condello wrote:

It says calling CGLFlushDrawable now syncs to the vertical retrace of the monitor. What about aglSwapBuffers?

You're trying too hard ;) Just use aglSetInteger with AGL_SWAP_INTERVAL and pass 1 to turn on VBL sync, and 0 to turn it off. aglSwapBuffers will automatically use this setting.

Cool!

Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software <http://www.fireyesoftware.com/> Make PDFs from your RB app <http://www.fireyesoftware.com/code/pdfclasses/>
AIM: fireye2005
REALbasic 5.5.3 Mac OS X 10.3.5

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>