Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is different between CoreGraphics and CoreAnimation?

I am developing iphone game using coregraphics. but the speed is very slow. I could not play my game.. So, I googled a lot.. During the googling, I found the belows.

CoreGraphics, CoreAnimation, OpenGL ES, CALayer, Quartz 2D

I am so confused between them. Someone told me coregraphics is not using GPU. Some told me it is using GPU. coregraphics is best or openGL is best, calayer is better. ^^;;;; What is different between them and which one is using GPU?? Which one is the best to make a game. I have many image to draw.

Please let me know..... Thanks in advance.

like image 624
mooongcle Avatar asked Dec 08 '10 22:12

mooongcle


People also ask

Does Core Animation use GPU?

Core Graphics uses the CPU for rendering , while Core Animation uses the GPU.

What is Core Animation in Swift?

Overview. Core Animation provides high frame rates and smooth animations without burdening the CPU and slowing down your app. Most of the work required to draw each frame of an animation is done for you.


1 Answers

The iOS graphics APIs are layered. Even though some portion of the final render might go thru the GPU, most of the CoreGraphics drawing functions do not.

CoreAnimation does use the GPU, but the types of graphics operations within its API (transforms of existing image data mostly) is limited.

OpenGL ES uses the GPU, but (re)compiling any changes to the rendering pipeline is reported to be quite CPU intensive.

And anything that uploads new bitmaps, images or textures to the display pipeline appears to be both CPU and GPU intensive.

like image 84
hotpaw2 Avatar answered Sep 25 '22 03:09

hotpaw2