Is Tile Map Node better than manually adding SKShapeNodes in terms of performance?

183 views Asked by At

I recently read this raywenderlich article about using tile map node:

https://www.raywenderlich.com/1079-what-s-new-in-spritekit-on-ios-10-a-look-at-tile-maps

In my own project, I have coded the tiles myself using SKShapeNode. Works great, but there is one thing I noticed after reading the article:

enter image description here

In the tutorial it says that there are only 5 nodes, when there are clearly quite a lot more tiles; probably more than 100. In my own project however, using an 8*8 tile board, it says that I have more than 130 nodes.

So my questions are:

  • Why does it say that there are only 5 nodes? Is there some magic with Tile Map Node that reduce the number of active nodes?

  • If Tile Map Node really does decrease the nodes, does this mean that it increase performance in comparison to manually programing the tiles oneself, making Tile Map Node that much better in terms of performance?

0

There are 0 answers