Skip to main content
gamedev.net
🔒 Locked

FPS AMOUNT PROBLEM

Started by Buch Aug 19, 2006 at 2:44 PM 5 replies 1.1k views
Original Post
Buch
Buch
Greetings This is my problem: I am trying to count the fps amount, but i never get higher rank that 75 fps which is my monitor freq. I disabled Vsync in driver properities in my gcard tab. I also read that ogl limit fps and synchronise it to monitor freq, but can we avoid this, so the rotating triangle in this example can have more then 75 fps??? I mean i want to know how much fps my computer can have with dealing with rotating triangle or other example. This is not code fault because i have this limit for every fps counter i write/found. Waitng for answears.
Yann L
Yann L
You didn't properly disable v-sync in your driver option panel. Make sure it is disabled, and not controlled by the application. Alternatively, you can also use the WGL_swap_control extension.

BTW, please don't post thread titles in all CAPS. That's considered as being quite rude.
MARS_999
MARS_999
Its considered to be YELLING! [smile]
i_luv_cplusplus
i_luv_cplusplus
I use this function for disabling/enabling vsync

void SetVSync(bool sync){	typedef bool (APIENTRY *PFNWGLSWAPINTERVALFARPROC)(int);	PFNWGLSWAPINTERVALFARPROC wglSwapIntervalEXT = 0;	wglSwapIntervalEXT = (PFNWGLSWAPINTERVALFARPROC)wglGetProcAddress("wglSwapIntervalEXT");	if( wglSwapIntervalEXT )		wglSwapIntervalEXT(sync);};
OpenGL fanboy.
Lord_Vader
Lord_Vader
Hmm,I think it would be

typedef void (APIENTRY *PFNWGLSWAPINTERVALFARPROC)(int);

And you call this function in your Initialization function right?

and maybe some type casting? wglSwapIntervalEXT((int)sync);
But I dont think that makes any difference.
i_luv_cplusplus
i_luv_cplusplus
rofl :) I don't know how this function works but it does turn vsync on/off... instead of 60 fps I get around 180
OpenGL fanboy.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.