Full-Screen slow

Hi

I have just finished a small (and very basic) OpenGL demo and while it runs very fast in window mode, it is quite slow (almost half-speed) in Full-Screen.

I’m very new at this and there’s a very good chance I might have done something fundamentally wrong, so please post ANY suggestions.

I use OpenGL32 and the GLu32 Library (no glut) and VC++ 6.0.

Thank you all.

[This message has been edited by joeyTR (edited 03-22-2003).]

You have to disable vsync from opengl settings.

Thanks, but this is not the case.

Only MY program slows down when in full-screen. I haven’t written any code to control vsync. The program should always be running in full speed.

Please help! Any takers?

Thanks

[This message has been edited by joeyTR (edited 03-22-2003).]

You can use these code to disable vsync from
your progarm:

PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT = 0;
PFNWGLGETSWAPINTERVALEXTPROC wglGetSwapIntervalEXT = 0;

wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC)
wglGetProcAddress(“wglSwapIntervalEXT”);
wglGetSwapIntervalEXT = (PFNWGLGETSWAPINTERVALEXTPROC)
wglGetProcAddress(“wglGetSwapIntervalEXT”);
wglSwapIntervalEXT(0);

0=Off;
1=1Vsync;
2=2
Vsync;
.
.
.

If i didnt confuse you may use above code.

Sorry i forget the header.You have to include wglext.h

It worked! Soulreaver thank you very much!

Still, would you happen to know why this was necessary? I mean, I run other programs from tutorials, etc much more advanced than the program that I did, and they run fine, without vsync control.

Is it something that I might do that causes the need for disabling vsync?

Again thanks so much for helping me out! (and how come no one else is joining in - esp the old members of the forum? )