sprite-kit SKView Displaying Debug Information


The current frame rate (in FPS, Frames Per Second) and total number of SKNodes in the scene (nodeCount, each sprite is an SKNode but other objects in the scene are also SKNodes) can be shown in the bottom right hand corner of the view.

These can be useful when turned on (set to true) for debugging and optimising your code but should be turned off (set to false) before submitting the app to the AppStore.

In Swift:

skView.showsFPS = true
skView.showsNodeCount = true


enter image description here