CoreAudio 编程中最快的动画图形是什么:CoreGraphics?核心动画?科科斯2D? OpenGL?
我有一个 iPhone 项目,它使用 CoreAudio 同时播放多个文件。那么,通过 CoreAudio 编程实现图形动画最快的库/框架是什么:CoreGraphics
? 核心动画
? Cocos2D? OpenGL
?
我的需求很简单:加载、显示、隐藏、旋转图像和平移一些视图。
谢谢。
安德烈
I have a project for the iphone that use CoreAudio to play multiple files at the same time. So what is the fastest library/framework to animate graphics along CoreAudio programming : CoreGraphics
? CoreAnimation
? Cocos2D
? OpenGL
?
My needs are simple : loading, displaying, hiding, rotation images and panning some views.
Thanks.
André
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果我正确解释你的问题,你想知道哪个指定的框架可以足够快地动画图形以跟上一些音频。我会为此使用核心动画。 Core Animation 是 OpenGL 的包装器,因此性能非常高效。它支持 2D 和 3D 动画,并且所有动画都是硬件加速的。 Core Graphics 不是用于动画而是用于绘图,因此您可以排除这一点。 OpenGL 是一个可能的候选者,但它的水平非常低并且很难学习,所以我不推荐。此外,它主要用于 3D 动画。 Cocos2D 是一个游戏框架,可用于动画,但如果您不将其用于实际游戏,我不建议仅将其用于动画。
希望这有帮助!
If I am interpreting your question correctly, you want to know which of the specified frameworks can animate graphics fast enough to keep up with some audio. I would use Core Animation for this. Core Animation is a wrapper around OpenGL and therefore is very performance effective. It supports both 2D and 3D animations and all animation is hardware accelerated. Core Graphics is not for animating but for drawing, so you can rule that out. OpenGL is a possible candidate, but it is very low level and difficult to learn, so I wouldn't recommend. Furthermore, it is largely used for 3D animations. Cocos2D is a game framework and can be used for animation, but I don't recommend using it solely for animation if you are not also using it for an actual game.
Hope this helps!
这个问题没有意义。图形独立于音频。
听起来你可以摆脱 UIView 上的动画属性,但如果你需要高性能,你会需要核心动画。
实际上,核心动画在概念上是一个更好的路径,因为您可能不需要响应触摸事件。
无论如何,这就是你想要的。核心动画。
The question doesn't make sense. Graphics is independent of audio.
Sounds like you could get away with animating properties on UIViews, although if you need high performance you would want core animation.
actually, core animation is conceptually a better path, seeing as you probably don't need to respond to touch events.
That is what you want anyway. Core animation.