Only 60 fps

Hi all,

When I try display a simple triangle in my display, I have only 60 fps. Why this limitation?

Vsync. Your graphics card is limiting the draw rate to the vertical refresh rate of your display, which is usually 60 hertz. Look for a “Disable vsync” option in your graphics settings.

Hope that helps.

Thanks Yakusa,

Now I would like to saw how to increase the draw rate by opengl code. This is possible?

Originally posted by yakuza:
[b]Vsync. Your graphics card is limiting the draw rate to the vertical refresh rate of your display, which is usually 60 hertz. Look for a “Disable vsync” option in your graphics settings.

Hope that helps.[/b]

I’m developing with OpenGL / SDL on Mac OS X. To enable vsync in my program I used this code:

CGLContextObj ctx = CGLGetCurrentContext();
const long interval = 1;

CGLSetParameter(ctx, kCGLCPSwapInterval, &interval);

And to disable vsync I set interval = 0.

Very Tanks Slur

Originally posted by slur:
[b]I’m developing with OpenGL / SDL on Mac OS X. To enable vsync in my program I used this code:

CGLContextObj ctx = CGLGetCurrentContext();
const long interval = 1;

CGLSetParameter(ctx, kCGLCPSwapInterval, &interval);

And to disable vsync I set interval = 0.

[/b]