Deciphering instruments readout

浪子不回头ぞ 提交于 2019-12-14 02:15:07

问题


CPU usage at ~50% / energy usage "Very high" in my sprite kit game.

I use tile sets to setup the levels. After the tile sets are in place I use clear, non-dynamic sprites with collision/contact bit masks for floors/walls/etc. I get a constant 60FPS, and my memory usage is only ~32MBs.

For animations as of now I have:

  • 3 roving (forever) enemies which are not removed from the scene unless stepped on and killed

  • 9 vertically moving platforms (up and down forever). Each platform uses an SKaction from game scene.sks and each also moves at different speeds / distances. These aren't ever removed from the scene.

I suspect my issue is related to the platforms, but I'm not sure since I'm having trouble deciphering the instruments readout from the CPU. Here is a screenshot of the readout at the point I think the issue is:

来源:https://stackoverflow.com/questions/45569540/deciphering-instruments-readout

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!