Hi all,
I am working on an Audio Units plugin for OS X. The user interface
is composited in an off-screen bitmap that I draw to the screen
with CGContextDrawImage. I create a CGImage to encapsulate the
off-screen buffer, like this:
CGImageRef image = CGImageCreate(getWidth(), getHeight(), 8, 32,
getWidth() * sizeof(Pixel), fColorSpace, kCGImageAlphaNoneSkipLast,
provider, 0, false, kCGRenderingIntentDefault);
I've written a simple direct data provider that just returns a pointer
to the off-screen buffer.
Now, when I profile the plugin with Shark, I see the following in
the UI thread:
32% CoreGraphics decode_data
13% CoreGraphics vecCGSConvertRGB888toXRGB8888
These are by far the most time-consuming operations, and both are
called indirectly by HIViewDrawCGImage (and CGContextDrawImage). Could
someone familiar with CoreGraphics tell me what I can do to avoid
these or to speed them up? Maybe I should use a different format of
the bitmap that I draw?
Thanks a lot!
Frederik Slijkerman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden