I want to be able to run my game without a locked framerate (currently 60 fps). The only way that I have found to run the animation is with a NSTimer. Is there a way to have an unrestricted framerate in Cocoa. If so, a link or a code snippet would help greatly.
相关问题
- Is GLFW designed to use without LWJGL (in java)?
- Faster loop: foreach vs some (performance of jsper
- glDrawElements only draws half a quad
- Why wrapping a function into a lambda potentially
- Ado.net performance:What does SNIReadSync do?
相关文章
- 现在使用swift开发ios应用好还是swift?
- Visual Studio Code, MAC OS X, OmniSharp server is
- xcode 4 garbage collection removed?
- IntelliJ IDEA can't open projects or add SDK o
- Automator: How do I use the Choose from List actio
- Converting glm::lookat matrix to quaternion and ba
- ImportError: No module named twisted.persisted.sty
- How can I vertically align my status bar item text
This enabled me to get around ~700 frames per second on my MacBook Pro
It is not permanent either, perfect for testing/benchmarking.
Source
If you really want to do this, you might need to use the CGL interface. In a valid GL context,
CGLGetCurrentContext
returns an (opaque) context object.CGLSetParameter
can be used to set a value for thekCGLCPSwapInterval
parameter. A value of(0)
disables waiting for vsync.