【问题标题】:What the energy impact depends on? How can I improve that? (Xcode 8, Swift 3, SpriteKit)能源影响取决于什么?我该如何改进呢? (Xcode 8、Swift 3、SpriteKit) 【发布时间】:2017-09-24 09:11:50 【问题描述】: 我正在使用 Swift3 创建一个 SpriteKit 游戏,我的 Xcode8 调试区域告诉我我的游戏具有非常高的能量影响。根据什么?我该如何改进它? 提前致谢。 【问题讨论】: 标签: ios swift3 sprite-kit xcode8 【解决方案1】: 您可以通过查看性能使用情况来改善能源使用情况。您是否在每一帧 update() 函数上都做繁重的工作?你能优化你的算法吗?使用Instruments 应用帮助您进行分析: https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/ 【讨论】: