PDA

View Full Version : VBL Sync


NYGhost
2003.05.01, 03:29 PM
Hello All
I saw a fullscreen demo in which openGL is sync with the screen VBL using Core Graphics.

Can I do the same thing with Carbon or Can I use Core Graphics with Carbon?

Thank you.

arekkusu
2003.05.01, 05:04 PM
Apple has several examples of VBL sync on the sample code site:
http://developer.apple.com/samplecode/Sample_Code/Graphics_3D.htm

From Carbon you can use either AGL or CGL, and synching to VBL is only two lines of code in either.

See this technote for the AGL method:
http://developer.apple.com/technotes/tn/tn2014.html

NYGhost
2003.05.01, 05:11 PM
Thanks arekkusu
that technote is really helpful :)