# FPS AMOUNT PROBLEM

## Recommended Posts

Buch    122
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.

##### Share on other sites
Yann L    1802
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.

##### Share on other sites
MARS_999    1627
Its considered to be YELLING! [smile]

##### Share on other sites
Guest Anonymous Poster
I had this problem with directx. No matter how fast your video card is, if you leave the presentation interval at "default" or one, you never see your real speed. Switch your presentation interval to "immediate", otherwise it will always be capped at your refresh rate EVEN IF you have vysnc turned off. You absolutely need this for performance evaluation. (Umm, I';m assuming that OpenGL like directx has this option; would be very surprised if it doesn't.)

##### Share on other sites
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);};

##### Share on other sites
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.

##### Share on other sites
rofl :) I don't know how this function works but it does turn vsync on/off... instead of 60 fps I get around 180

## Create an account or sign in to comment

You need to be a member in order to leave a comment

## Create an account

Sign up for a new account in our community. It's easy!

Register a new account