How to draw unlimited FPS on Mac OS X with OpenGL?

Posted by V1ru8 on Game Development See other posts from Game Development or by V1ru8
Published on 2012-05-07T12:47:49Z Indexed on 2012/09/21 21:57 UTC
Read the original article Hit count: 213

Filed under:
|

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:

  1. 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

  2. Using normal -drawRect: with a timer that fires 1/1000sec and calls -setNeedsDisplay: Still not more than 60FPS

  3. 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?

© Game Development or respective owner

Related posts about opengl

Related posts about mac-os