• 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: Drawing noise in Cocoa (preferably fast)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing noise in Cocoa (preferably fast)


  • Subject: Re: Drawing noise in Cocoa (preferably fast)
  • From: Stephen Blinkhorn <email@hidden>
  • Date: Fri, 17 Jun 2011 10:30:04 -0600


On 17 Jun 2011, at 00:18, Uli Kusterer wrote:

On 17.06.2011, at 03:08, Ken Tozier wrote:
On Jun 16, 2011, at 12:34 PM, Stephen Blinkhorn wrote:
A quick test on a 2GHz iMac takes at least twice as long 4.5 seconds to generate a 10,000 X 10,000 CGLayer of noise.

Stephen

Thanks. Difference could just be the processor. My laptop has a 2.4 GHz core i5

Might also be the GPU. After all, CoreImage's whole point is that it runs on the GPU preferably, and frees the CPU up for other uses.

This is great for my purposes as I want to keep as much CPU power available for the main processing (audio app) and not consume it all in the GUI.


Saying that, I've found that the CPU requirements of the raw drawing code (even with relatively fast refresh rates of 20-25 FPS) pales into insignificance when compared to the objective-c messaging overhead of co-ordinating the redrawing. Cocoa seems to need to do a lot of leg work with respect to view drawing.

Anyway, glad I learnt all about CIImage!

Thanks,
Stephen



Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://groups.yahoo.com/group/mac-gui-dev/



_______________________________________________

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

_______________________________________________

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


  • Follow-Ups:
    • Re: Drawing noise in Cocoa (preferably fast)
      • From: Stephen Blinkhorn <email@hidden>
References: 
 >Drawing noise in Cocoa (preferably fast) (From: Stephen Blinkhorn <email@hidden>)
 >Re: Drawing noise in Cocoa (preferably fast) (From: Quincey Morris <email@hidden>)
 >Re: Drawing noise in Cocoa (preferably fast) (From: Stephen Blinkhorn <email@hidden>)
 >Re: Drawing noise in Cocoa (preferably fast) (From: Ken Tozier <email@hidden>)
 >Re: Drawing noise in Cocoa (preferably fast) (From: Stephen Blinkhorn <email@hidden>)
 >Re: Drawing noise in Cocoa (preferably fast) (From: Ken Tozier <email@hidden>)
 >Re: Drawing noise in Cocoa (preferably fast) (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: So... we can't use UIWebView (with a delegate) on a page that's pushed onto a UINavigationController stack?
  • Next by Date: Making NSCache evict only unreferenced objects
  • Previous by thread: Re: Drawing noise in Cocoa (preferably fast)
  • Next by thread: Re: Drawing noise in Cocoa (preferably fast)
  • Index(es):
    • Date
    • Thread