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: Raffael Cavallaro <email@hidden>
- Date: Sat, 27 Mar 2010 10:35:46 -0400
On Mar 27, 2010, at 9:05 AM, Oleg Krupnov wrote:
> 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?
So you can have an animated view whose contents are an OpenGL pane. Imagine you want to show some 3d content in an OpenGL pane, and you also want this pane itself to be animated (e.g., move across its parent view).
> (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?
If you are a good/very good/expert OpenGL programmer you may be able to achieve equivalent functionality with greater speed if you write raw OpenGL code yourself. Before you attempt this, you should test the higher level frameworks to be sure they aren't fast enough to do what you want. For example, on a 13" unibody MBP, I can get arbitrary 600 x 700 tiff images to animate smoothly at 30 frames per second (i.e., a new image each frame) using NSView and NSImage only - and from common lisp with other interactive tasks and garbage collection no less (i.e., via a cocoa bridge from another language whose gc is collecting during the animation, while continuing to compile and evaluate other code at the toplevel, not even by using Objective-C directly).
warmest regards,
Ralph
Raffael Cavallaro
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