I would like to know how to make a Frames Per Scond counter for my game.
FPS Counter?
Root / Programming Questions / [.]
MochaProbablyCreated:
Usually what I do is something like:
VAR OLDMS=MILLISEC VAR AVGSPEED=1/60*1000 WHILE 1 ... VAR SPEED=MILLSEC-OLDMS 'get speed in milliseconds per frame OLDMS=MILLISEC AVGSPEED=(AVGSPEED*10+SPEED)/11'smoothing PRINT 1000/AVGSPEED 'convert to millisec/frame to frames/sec WENDThe FPS will ideally be 59.834 (not 60)
Ah yes thanks, this will be helpful! The team iām in has both the o3ds and n3ds so we needed to compare performance.