A nice feature would be to limit the FPS of the client. I could then limit the client to 100 instead of it rendering 1000 FPS and me only seeing 1/20th of them.... save the fans in my iMac

Thanks
Jan
Code: Select all
#include <OpenGL/OpenGL.h> // OpenGL framework
// ...
CGLContextObj cglContext;
long vsync = 0 or 1;
cglContext = CGLGetCurrentContext(); // this is how you can get it if you didn't use CGL yourself to set it up in the first place
CGLSetParameter(cglContext, kCGLCPSwapInterval, &vsync);
Wee! Good find.Jonathan wrote:Wait, it looks like SDL ≥1.2.10 can do it.