• 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
Re: question about NSTimer objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question about NSTimer objects


  • Subject: Re: question about NSTimer objects
  • From: Karim Morsy <email@hidden>
  • Date: Wed, 15 Mar 2006 11:24:10 +0100

How often do your timers fire? You can definitely run into problems if they fire too often.

-timer1 for redrawing an opengl view fires every 0.05 seconds
-timer2 for redrawing another opengl view: every 0.05 seconds
-timer3 for redrawing a custom nsview: every 0.02 seconds
-timer4 for updating user information on the ui: every 0.1 seconds
-timer5 for animating sliders fires only upon activation by the user: every 0.06 seconds (for approxaimately 8 seconds)


do you see any problems here and if so, is there an alternative and better approach for what I'm doing... I know I can't use threads because of the thread-insafety of UI elements.

thanks,
Karim



On Mar 15, 2006, at 4:29 AM, Ricky Sharp wrote:

On Mar 14, 2006, at 7:48 PM, Karim Morsy wrote:

In my application I'm using several timers for animations and update of the UI. I am using like 6 different instances, all of them on the main run loop and at different time intervals.
so I was wondering wether this could cause any trouble (?). could the timers interfere in anyway ?
the app's behavior sometimes appears strange to me and I'd like to find out wether the cause for this could be the many timers I'm using. so in general, can there occur any problems with a bunch of timers and if so, which and under which circumstances ? any advice, hints or experience with this would be really appreciated.

How often do your timers fire? You can definitely run into problems if they fire too often.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com



_______________________________________________ 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
  • Follow-Ups:
    • Re: question about NSTimer objects
      • From: Ricky Sharp <email@hidden>
References: 
 >question about NSTimer objects (From: Karim Morsy <email@hidden>)
 >Re: question about NSTimer objects (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: Getting a variable from another class
  • Next by Date: RE: Getting a variable from another class
  • Previous by thread: Re: question about NSTimer objects
  • Next by thread: Re: question about NSTimer objects
  • Index(es):
    • Date
    • Thread