Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a CADisplayLink equivalent for macos/cocoa/opengl?

I've discovered CADisplayLink for IOS 3.1+ which triggers events when the display has been refreshed, effectively allowing you to synchronise with display updates without having to use NSTimer.

Is there an equivalent for timing when writing opengl applications under macos/cocoa?

like image 656
Nick Sonneveld Avatar asked Oct 06 '10 13:10

Nick Sonneveld


1 Answers

CVDisplayLink.

like image 104
Jens Ayton Avatar answered Nov 07 '22 11:11

Jens Ayton