How to draw unlimited FPS on Mac OS X with OpenGL?
- by V1ru8
I d'like to draw as many frames as possible with OpenGL on Mac OS X to measure the performance on different scenes.
What I've tried so far:
Using a CVDisplayLink that has NSOpenGLCPSwapInterval set to 0, so it does not sync with the Display. But with that it's still stuck at max 60FPS
Using normal -drawRect: with a timer that fires 1/1000sec and calls -setNeedsDisplay: Still not more than 60FPS
Same as 2. but I call -display in the timer callback. With that I get the FPS above 60, but it still stops at 100-110 FPS. Although the frame rate should easily be at 10times more.
Andy idea how I can really draw as many frames as possible?