Extreamly high framerate!!!!!!

Started by
15 comments, last by XaOs 22 years, 9 months ago
I have a very sufficient way using Clock();

void CalcFPS( void )
{
nFrames += 1;
if(nFrames > 100)
{
// Get the current Time

storclock = storclock + clockint;

clockint = clock() - storclock;

fps = (float)nFrames/((float)clockint/CLOCKS_PER_SEC);
// Display the fps
nFrames = 0;
// Resets the timer

}

return;
}

It can be pretty whacky, but it works rather well.
- Twilight Terror of Syntesis
Advertisement
What''s the problem with GetTickCount ??
Help me with my Isometric OpenGL engine.
quote:Original post by Ak37
What''s the problem with GetTickCount ??

I believe it is inaccurate... might be wrong on that.

||--------------------------||Black Hole Productionshttp://bhp.nydus.netResident expert on stuffmax621@barrysworld.com||--------------------------||
I''m getting this data from the VC++ help thing, but the thing that makes GetTickCount suck is that it is only updated at fairly long intervals. (10-15milliseconds on WinNT, 55 on Win95) where a performance counter can be every 1/2 millisecond.
This means if you are doing movement distance scaled by the millisecond count between frames (which you should be ), you won''t have smooth movement, but jolts.. (although it will not be noticable).
omg, 1000+ fps in fullscreen without lighting (around 800 with lighting)..

p2 400, GeForce2 GTS (Quadro2 pro software patch, shouldn''t matter in this case)

ya... I get bout 1050fps with/without lighting normal/lists dont matter it stays the same

1.7ghz
128mb ram
geforce 2 32mb
winxp rc1
Thanx guys!! (and girls....if any )


Take Care!
- -- ---[XaOs]--- -- -[ Project fy ||| CyberTux ]

This topic is closed to new replies.

Advertisement