Ehsan Kamrani
08-06-2008, 07:01 PM
Hi
I have used wglSwapIntervalEXT in my previous win32 project and it has worked correctly( it disabled the VSync )
But now, In my MFC project it doesn't disable VSync:
if( WGLEW_EXT_swap_control )
wglSwapIntervalEXT(0);
Note that I have used GLEW library, It has been initialized and I can recognize the OpenGL extensions( For example I'm currently using multisampling ). wglSwapIntervalEXT(0) is executed, but it doesn't change anything.
I have used MFC timer, I have set the timer with the following function:
SetTimer( 1, 1, 0 );
My application runs about 65 FPS, but my GPU supports this extension.I render simple objects with only 2000-3000 vertices. I don't use GLSL or any special effects.So something is going wrong...
BTW, my graphics card is Geforce 7300 GT
Any suggestions?
Regards
-Ehsan
I have used wglSwapIntervalEXT in my previous win32 project and it has worked correctly( it disabled the VSync )
But now, In my MFC project it doesn't disable VSync:
if( WGLEW_EXT_swap_control )
wglSwapIntervalEXT(0);
Note that I have used GLEW library, It has been initialized and I can recognize the OpenGL extensions( For example I'm currently using multisampling ). wglSwapIntervalEXT(0) is executed, but it doesn't change anything.
I have used MFC timer, I have set the timer with the following function:
SetTimer( 1, 1, 0 );
My application runs about 65 FPS, but my GPU supports this extension.I render simple objects with only 2000-3000 vertices. I don't use GLSL or any special effects.So something is going wrong...
BTW, my graphics card is Geforce 7300 GT
Any suggestions?
Regards
-Ehsan