Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

So I've switched from NSTimer to CADisplayLink and I'm still seeing unexpected variation in my frame counter - it fluctuates between 59-60fps, even when I'm not rendering much.

Has anyone else seen this? Is this an expected variation in iOS? Or should I look more closely at my game loop?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

From my experience this is normal behavior. The measured time can change slightly and if 59.99 FPS are calculated and you output that with just 2 digits, it's going to show 59.

Don't worry about fluctuations of one frame.

share|improve this answer
    
Ok - I was outputting XX.XX digits but it flickers too quick for me to see, and I didn't bother tracking min/max value. If other people see this then I'm happy. –  Justicle Feb 22 '11 at 23:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.