NSTimer causes events to be lost
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