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: Thu, 16 Jun 2011 10:34:52 -0600
Hi Ken,
On 15 Jun 2011, at 19:24, Ken Tozier wrote:
Just curious, what kind of speed are you getting with the CIImage
methods? I saw the usefulness of generating random images for my own
purposes and polished the posted code a bit today. It was generating
100 million pixel images (10,000 x 10,000) with per-pixel
randomization in about 2.2 seconds. What kinds of times are you
getting for comparable images using the CIImage methods?
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
-Ken
On Jun 15, 2011, at 2:30 PM, Stephen Blinkhorn wrote:
I've got the random noise part working and it easily fast enough.
Its a shame there isn't a way to specify the opacity when drawing
CGLayers. I'd find that useful but I imagine there is a reason for
it.
Stephen
_______________________________________________
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