ios - How to minimze quad count in SpriteKit -
ios - How to minimze quad count in SpriteKit -
i'm looking @ increasing performance in spritekit application. noticed in ios 8 apple has introduced debug property called showsquadcount
skview
. description on property says lower number better. when enabled it, i'm horrified find out quad count 1 1 mapping node count! if have 1000 nodes on screen, quad count 1000! can explain me why might be? how spritekit determine how many quads should utilize render scene?
i can post code if help, @ point i'm not sure post. help!
quite simple: display fewer nodes. 1000 nodes on screen a lot!
if cutting number of nodes downwards 800 cut down quad count 80%.
each node (on screen) requires 1 quad (two triangles). there's nil can optimize quad count except drawing fewer quads (aka nodes).
ios objective-c sprite-kit opengl-es-2.0
Comments
Post a Comment