CoreGraphics和CoreAnimation之间有什么不同? [英] What is different between CoreGraphics and CoreAnimation?

查看:125
本文介绍了CoreGraphics和CoreAnimation之间有什么不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用coregraphics开发iphone游戏。但速度很慢。我无法玩我的游戏..所以,我google了很多..在谷歌搜索期间,我发现了以下。

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

他们之间我很困惑。有人告诉我,coregraphics没有使用GPU。有人告诉我它正在使用GPU。 coregraphics是最好的,或者openGL是最好的,calayer更好。 ^^ ;;;;它们之间有什么不同,哪个使用GPU?制作游戏的最佳选择。我有很多画像。

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.

推荐答案

iOS图形API是分层的。即使最终渲染的某些部分可能通过GPU,但大多数CoreGraphics绘图功能都没有。

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确实使用GPU,但是图形操作的类型其API(主要是现有图像数据的变换)是有限的。

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

OpenGL ES使用GPU,但是(重新)编译对渲染管道的任何更改都被报告为非常耗费CPU。

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

任何将新位图,图像或纹理上传到显示管道的内容似乎都是CPU和GPU密集型。

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

这篇关于CoreGraphics和CoreAnimation之间有什么不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆