Instance Property

showsDrawCount

A Boolean value that indicates whether the view displays the number of drawing passes it needed to render the view.

Declaration

@property(nonatomic) BOOL showsDrawCount;

Discussion

Some operations in SpriteKit can require multiple rendering passes to draw a scene’s content. For example, an SKEffectNode object must render its children into a separate buffer, apply the effect, and then perform another pass to blend those results into its parent node. These additional rendering passes use more rendering resources, reducing your game’s frame rate or increasing its total power consumption. Use the draw count as another piece of data when you profile your game’s performance.

See Also

Enabling Visual Statistics for Debugging

showsNodeCount

A Boolean value that indicates whether the view displays an overlay that shows physics bodies that are visible in the scene.

showsQuadCount

A Boolean value that indicates whether the view displays the number of rectangles used to render the scene.

showsPhysics

A Boolean value that indicates whether the view displays physics-related debugging information.

showsFields

A Boolean value that indicates whether the view displays information about physics fields in the scene.