问题
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