Re: Observing Time
Re: Observing Time
- Subject: Re: Observing Time
- From: Kyle Sluder <email@hidden>
- Date: Sat, 27 Jul 2013 09:35:31 -0700
On Sat, Jul 27, 2013, at 09:16 AM, email@hidden
wrote:
>
> On 2013/07/28, at 0:38, Scott Ribe <email@hidden> wrote:
>
> > On Jul 27, 2013, at 9:15 AM, email@hidden wrote:
> >
> >> But I'm avoiding NSTimer because I want to avoid being run looped in completely
> >
> > Why??? If the run loop on the main thread is busy, your display won't update anyway. I think you're adding a lot of complexity for 0 gain.
> >
> Why would I add to slowing down the main thread when I can run a
> dispatch_timer on another thread and get the timer to fire more reliably?
> That doesn't make sense.
More threads != more better.
You're drawing on the main thread. Firing the timer on a background
thread gets you _zero_ benefit, because you have to forward those timer
pulses to the main thread anyway!
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden