Is there a CADisplayLink equivalent for macos/cocoa/opengl?
Asked Answered
H

2

8

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?

Hindquarter answered 6/10, 2010 at 13:28 Comment(0)
P
12

CVDisplayLink.

Protract answered 6/10, 2010 at 20:4 Comment(1)
hah that was easy. :) I think I ignored a lot of things that came up in google as they all seemed iOS related.Hindquarter
E
0

CVDisplayLink has been deprecated. You should use [NSView displayLinkWithTarget] as of MacOS 14+

Euphrates answered 15/8, 2024 at 17:19 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.