• 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
NSTimer causes events to be lost
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTimer causes events to be lost


  • Subject: NSTimer causes events to be lost
  • From: John Pattenden <email@hidden>
  • Date: Fri, 18 Mar 2005 16:51:32 -0500

I have an NSTimer I need to fire about every 1/500th of a second - but if I do I start to lose some events - or things that happened automatically become unreliable.

A good example is window activation and deactivation. If I slow my timer down that all works fine, but now the animation I am running starts to drop frames.

is there a good solution to problems like this, I'm thinking a thread would be problematic since I am drawing in my timer call..

its not clear to me that my code is taking longer than 1/500th of a second to execute, so I don't think that is the problem..

shouldn't these events just be getting queued rather then chewed?

Is there a way to get some time each time the run loop executes kind of like dare I say it WaitNextEvent?

John Pattenden
ScreenTime Media


_______________________________________________ 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: NSTimer causes events to be lost
      • From: "John C. Randolph" <email@hidden>
    • Re: NSTimer causes events to be lost
      • From: John Brownlow <email@hidden>
  • Prev by Date: Re: (newbie question) Putting special characters in NSStrings
  • Next by Date: Re: NSTimer causes events to be lost
  • Previous by thread: leak in NSInvocation when NOT using zero link ?
  • Next by thread: Re: NSTimer causes events to be lost
  • Index(es):
    • Date
    • Thread