Advertisement

Rendering Nothing at a higher FPS..

Started by April 17, 2003 07:32 AM
4 comments, last by UponTheEnd 21 years, 10 months ago
I have seen a few programs that a run at extremly high FPS without even rendering anything, they are just updating the background for the Opengl window each frame. thats all. and on my computer, i get around 232 FPS which is very good for me. But on my programs off nehe''s base code and others, when i am doing the exact same thing as the engine and not rendering anything except the background, i only get around 132 FPS. What kind of optimizations are they doing probley that gives them such high frame rate. Or do you know if they are initalizing the window in a different way. if you need the link to the program and the source to look at, just let me know and i will post it. Thanks
"What we do in life, echos in eternity" -- Gladiator
it's probably the way you are measuring your frame rate.

I personally use a very accurate (when fps are high) method - keep a count of frames drawn, and every second that elapses, you have your fps... 640x480x32 gl window with just a 700 or so polys of text gets me around ~4300fps (radeon 9500p).. in D3D that gets around 3600.. score for GL (higher again if not clearing the colour/z/stencil buffers)

| - Project-X - my mega project.. getting warmer - | - adDeath - an ad blocker I made - | - email me - |

[edited by - RipTorn on April 17, 2003 8:48:12 AM]
Advertisement
All of my render methods take a time delta argument (how many seconds have passed since our last render), and so your FPS is just 1.0/time-delta. This will wildly fluctuate (as it''s not averaged), but seems to work well.

- sighuh?
- sighuh?
I count my frames the same way as RipTorn, and I only get 212 frames-per second!
I''m not rendering a single polygon, not checking for input, and I''m running in 640x480x32 windowed-mode... I am clearing the screen every frame, (if I don''t I get about 100k frames per-second!)...

I have a Hercules 3D Prophet 4000XT, Kyro card...

Is this right, or am I doing something wrong?

And how on earth do you get that high frame-rates, RipTorn??!!
This is very very strange! When I added a model to the scene (750 tris...) I got 100 more frames per-second!
This is just a thought but .......
Maybe when your program is not doing anything the OS doesn''t give it as much CPU time as when it is trying to draw 700 poly''s

I might be wrong ......

______________________________
My Website: [link]www.antondev.tk[/link]
or directly at http://home.attbi.com/~antonweb/
"I''ve read about...doom being used to manage unix programs(you "kill" the processes)" dede

This topic is closed to new replies.

Advertisement