• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Timer firing not by set interval
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Mysterious warning (initialization from distinct Objective-C type)
  • Next by Date: Compound KeyPaths
  • Previous by thread: Re: NSTextField delegate how to?
  • Next by thread: Compound KeyPaths
  • Index(es):
    • Date
    • Thread