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

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

References: 
 >Question on thread communication (From: Karim Morsy <email@hidden>)
 >Re: Question on thread communication (From: Kaelin Colclasure <email@hidden>)
 >Re: Question on thread communication (From: Kaelin Colclasure <email@hidden>)
 >Threading and NSViews (From: Karim Morsy <email@hidden>)
 >Re: Threading and NSViews (From: John Stiles <email@hidden>)
 >Re: Threading and NSViews (From: Karim Morsy <email@hidden>)
 >Re: Threading and NSViews (From: John Stiles <email@hidden>)
 >Re: Threading and NSViews (From: Karim Morsy <email@hidden>)

  • Prev by Date: Re: Installer
  • Next by Date: Intercepting messages
  • Previous by thread: Re: Threading and NSViews
  • Next by thread: Re: Threading and NSViews
  • Index(es):
    • Date
    • Thread