本文介绍了Spritekit iOS9 fps下降的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我注意到我的Sprite Kit游戏中的fps大幅下降,已经从iOS 8.4升级到iOS 9.
I've noticed a major drop in fps in my sprite kit game having upgraded from iOS 8.4 to iOS 9. Has anyone else encountered this?
我的纹理图集仍然埋在.atlas文件中.我尝试使用资产目录纹理图集功能作为实验,但性能却更差.
My texture atlases are still buried away in .atlas files. I've tried to use the asset catalog texture atlas functionality as an experiment and that gives even worse performance.
推荐答案
您尝试过吗?
skView.ignoresSiblingOrder = YES;
更改后,您可能必须显式设置一些zValue,但是希望可以减少绘制调用的次数.您可以通过以下行来顺便显示抽奖电话的数量:
You will probably have to set some zValues explicitly after the change, but the number of draw calls will hopefully be reduced. You can BTW display the number of draw calls by this line:
skView.showsDrawCount = YES;
这篇关于Spritekit iOS9 fps下降的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!