Re: The fastest way to render bitmaps to screen in Cocoa on Snow Leopard?
Re: The fastest way to render bitmaps to screen in Cocoa on Snow Leopard?
- Subject: Re: The fastest way to render bitmaps to screen in Cocoa on Snow Leopard?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Sat, 27 Mar 2010 15:26:42 +0100
Le 27 mars 2010 à 14:05, Oleg Krupnov a écrit :
> Thanks everyone! Ariel, thanks for the CoreImageGLTextureFBO sample.
> No, Paul, NSImage performance is not enough for my purpose.
>
> Mike, I am aware that OpenGL is perhaps the fastest drawing API in the
> system. However, because it's so low-level, there must have been built
> many wrappers around it in modern operating systems such as Snow
> Leopard. That's what I mean by "easiest".
>
> Of course, I could build a bunch of prototypes to benchmark-test each
> drawing method I find, but I'm looking to avoid that :).
>
> So, before I go down to OpenGL I'd like to know what wrappers exist
> and try them first. I'd appreciate if anyone pointed me to them.
>
> Currently I've found only Core Animation, but the information about
> its underlying technology is rather scarce. It's said that it uses the
> graphics hardware, but is it really built on OpenGL? If it is, then
> why such a thing as CAOpenGLLayer is there? (Does it mean other layers
> are not based on OpenGL, or it's just a door to access the raw
> OpenGL?). If it is not, than is it faster than OpenGL or slower?
>
Why do you care about what API CoreAnimation uses ?
If it is fast enough for your purpose use it. If it is not, use an other technology.
You are the only one able to test if it is faster or slower for your purpose as we don't know what you're doing.
And CGImage/NSImage with QuartzGL enabled should be probably fast enough for most (if not all) needs.
http://developer.apple.com/mac/library/qa/qa2007/qa1536.html
-- Jean-Daniel
_______________________________________________
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