使用 cocos2d 将 CCLayer 旋转 90 度时 iPhone 帧率下降
我完成了我的 cocos2d 项目,该项目使用加速度计来旋转当前的 CCLayer 以实现特定的游戏机制。我一直注意到帧速率下降了 10-15 帧,但我找不到,所以现在决定查看一下。我认为这与迭代对象有关,但事实并非如此。
当 CCLayer 未旋转 90/270 度时会发生下降,因此当它接近 0 度时,我会丢失 10 - 15 帧......超级烦人。
我不会将 CCLayer 用于任何不寻常的事情,有人知道吗?
TL; DR:当 CCLayer 旋转 90 度时,fps 会下降...为什么?
I am finished my cocos2d project, which uses the accelerometer to rotate the current CCLayer for a particular game mechanic. I've always noticed a 10-15 fps drop of which I couldn't find and decided to take look now. I thought it would have something to do with iterating over objects but it doesn't.
The drop occurs when the CCLayer is not rotated at 90/270 degrees, so as it approaches 0 degrees I lose 10 - 15 frames...super annoying.
I don't use the CCLayer for anything unusual, does anyone have any idea?
TL; DR: fps drops when CCLayer is rotated 90 degrees...Why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论