Re: Threading and NSViews
Re: Threading and NSViews
- Subject: Re: Threading and NSViews
- From: j o a r <email@hidden>
- Date: Tue, 21 Mar 2006 09:04:18 +0100
On 21 mar 2006, at 08.58, Karim Morsy wrote:
I've just thought that the UI would be more responsive if the all
drawing was done seperate threads.
but it's good to hear that it doesn't really matter. the timer
approach is a lot easier to implement.
thanks!
I think that John responded to your comment about things that could
be "troublesome". Threads are definitively things that can trip you
up if you're not 100% certain of how to deal with them. Much more so
than timers.
The main thread will of course be more responsive if you need to do
very heavy drawing, and if you can offload it to a secondary thread -
but in the end it might not matter if you end up crashing because of
improper use of threads...
It also sounds to me like you're doing a really bad thing: Premature
optimization. If you're not sure that you have performance problems
because of drawing operations in the main thread, don't waste time
offloading this to secondary treads! Always start with a benchmark!
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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