• 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: NSTimers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimers


  • Subject: Re: NSTimers
  • From: Robert Dell <email@hidden>
  • Date: Sat, 28 Jan 2006 07:33:41 -0500

Ricky Sharp wrote:
First, be careful when using NSTimer for high-resolution needs.  You'll often get drifting.

In terms of priorities, I'm not aware of any. However, it sounds like for your needs, you could just use a single timer that would fire at the highest resolution you need. On certain boundaries, you could excecute the code in the order you need.

the reason i use timers is because the main program doesn't issue a timed control to the plugins (my program is a plugin) and will only send plugins commands if something in the main game changes. i need to run scripts within the plugin (which is a script engine) to do certain things within the main game app. the timer allows me to gain control of the cpu for decoding textual script commands into actions used in the game or for text processing needed in other areas of the script or other scripts. numbers are stored as text as well to make things MUCH simpler to code.

_______________________________________________
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


References: 
 >NSTimers (From: Robert Dell <email@hidden>)
 >Re: NSTimers (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: CFPreferences
  • Next by Date: Warning with NEXT_ROOT environment and libgcc.a
  • Previous by thread: Re: NSTimers
  • Next by thread: Re: NSTimers
  • Index(es):
    • Date
    • Thread