Re: Drawing noise in Cocoa (preferably fast)
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