Getting FPS
I have a GLUT template setup that I will soon start filling in with my code, and I have a timer setup to fire every 1/60 of a second... so my game code will get executed every 1/60 of a second..
How would I go about setting up an FPS counter? Since my draw function is continuously drawing irrespective of my timer...
I thought about just adding to a counter everytime my draw function was called.. but now that I have thought about it.. that makes little sense..
any ideas on how i should approach this..
I am using the the GLUT event loop right now so i am not looping with my own function..
Hank-
How would I go about setting up an FPS counter? Since my draw function is continuously drawing irrespective of my timer...
I thought about just adding to a counter everytime my draw function was called.. but now that I have thought about it.. that makes little sense..
any ideas on how i should approach this..
I am using the the GLUT event loop right now so i am not looping with my own function..
Hank-
/* Drunk...... fix later.... */
Search the forum. I've answered it before (with specific reference to GLUT IIRC).

