Hey,
So i want to show my Frames per Second on my iPhone Simulator.
I know that i should have a count and increment it by one each time it enters the drawView method (im in OpenGL ES)
but what timer class should i use?
Looking at NSTimer and not to sure how to use it.
I want the timer class to check if a second has passed when in the drawView method, and if so then show the count and set the count to 0.
Then keep checking if another second has passed.
What time class should i use? and how should it be used (if its NSTimer then im not to sure how to lay it out)
Thanks in advance!
So i want to show my Frames per Second on my iPhone Simulator.
I know that i should have a count and increment it by one each time it enters the drawView method (im in OpenGL ES)
but what timer class should i use?
Looking at NSTimer and not to sure how to use it.
I want the timer class to check if a second has passed when in the drawView method, and if so then show the count and set the count to 0.
Then keep checking if another second has passed.
What time class should i use? and how should it be used (if its NSTimer then im not to sure how to lay it out)
Thanks in advance!