Non constant framerates when all else is equal
Hi,
I am printing the framerate to the windows title bar in my win32 OpenGL application. The scene is not moving and I am pressing no keys. IE: nothing is changing with time.
If I render the whole scene, I am getting a framerate of 130-133 fps, which varies just because of the way I''m calculating the framerate (ie if cuurenttime-lasttime>1sec, print framerate)
BUT, if I render only a small part of the scene (ie take out lots of the objects) the frame rate jumps all over the place, anywhere between 130 to 160 fps.
What could be causing the framerate to jump like this? Any why doesn''t it jump for the more complex scene?
Is there a way to calculate a very accurate framerate? See, I want it printed out so I can get a feel for how much doing certian things slows it down or speed it up: eg fog, or displays lists or whatever.
Thanx,
Cat
ps: the only other applications I have running are explorer, VC++ and Ultraedit. And anyway, if they were affecting the framerate, why not affect it for the complex scene as well. LOL, this is bugging me....
Your method of measuring the frame rate is about as accurate as you can get. The whole scene going between 130 and 133 frames is not because of your method of measuring framerate. The computer is actually takeing a little different amount of time each time it renders. If you could try this out in a non-multitasking enviroment, then you might get very constant framerates, but theres no way that you will running windows in the background.
I''m not sure why the "complex" scene varies alot, but your framerate counter is accurate.
- Go not to the elves for counsel, for they will say both yes and no.
I''m not sure why the "complex" scene varies alot, but your framerate counter is accurate.
- Go not to the elves for counsel, for they will say both yes and no.
- Go not to the elves for counsel, for they will say both yes and no.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement