gpt4 book ai didi

sprite-kit - spritekit ios9 fps 下降

转载 作者:行者123 更新时间:2023-12-01 19:53:25 25 4
gpt4 key购买 nike

我注意到我的 Sprite Kit 游戏从 iOS 8.4 升级到 iOS 9 后 fps 大幅下降。还有其他人遇到过这种情况吗?

我的纹理图集仍然隐藏在 .atlas 文件中。我尝试使用 Assets 目录纹理图集功能作为实验,但性能更差。

最佳答案

你试过这个吗?

skView.ignoresSiblingOrder = YES;

您可能需要在更改后显式设置一些 zValue,但绘制调用的数量有望减少。顺便说一句,您可以通过此行显示绘制调用的数量:

skView.showsDrawCount = YES;

https://developer.apple.com/library/ios/documentation/GraphicsAnimation/Conceptual/SpriteKit_PG/Nodes/Nodes.html

关于sprite-kit - spritekit ios9 fps 下降,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32706105/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com