Page 1 of 1

Hey :) How to get the number of frames ingame??

Posted: Sat Jan 29, 2005 1:17 pm
by RedmoonX
like instead of "SetFrameRate()" i want to do this ingame to check
how many fps the program has "GetFrameRate()"
but i cant find anything :(

is it any algorithm to get fps??

RedmoonX

Posted: Sat Jan 29, 2005 2:36 pm
by dmoc
In rough:

c=gettickcount()
repeat
game-code
f+1
if gettickcount()-c>1000
fps=f
f=0
c=gettickcount()
endif
loop