Timer firing not by set interval
Timer firing not by set interval
- Subject: Timer firing not by set interval
- From: Hisaoki Nishida <email@hidden>
- Date: Thu, 22 Sep 2005 20:15:09 -0700
Hi,
I have a timer which I want to be fired every 0.02 seconds but it is
only being fired 10 times a second.
If I change my interval to 1.0 it fires every second with += 0.003
which is negligible but still not exact.
If I don't do anything besides NSlogging when the timer fires, it
fires at an accurate interval.
It looks like it's because my drawRect: is not getting the job done
fast enough, but even then why should the timer take that into
account? My other OpenGL application had the same timer with the same
interval and it fired accurately regardless of drawRect not getting
the job done in time (so the frame sometimes skips).
Thanks,
-hyn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden