Xcode has long showed CPU at about 25% for a SceneKit
game I’m working on. But recently, that number suddenly jumped to about 45%.
Instruments
seems to suggest that the scene’s SCNSceneRendererDelegate
method is running on 2 different threads simultaneously (unless I’m misunderstanding the data).
Here is a screenshot of Instruments
. This is from whatever template Instruments
uses when you click the Profile in Instruments
button in the Xcode Debug Navigator
. I’ve highlighted the relevant info in yellow:
Q: Is this run-on-2-threads paradigm by design — or could this be related to the increase in CPU usage?
2