Jump to content

Tilemap performance iOS


ggfela
 Share

Recommended Posts

So I created a tilemap with Tiled. It contains a layer 'terrain' with tiled sprites and a layer 'physics' with polylines for physics.

 

When I create the terrain layer the game struggles in iOS. When I delete the terrain layer the performance is fine. I thought maybe the issue is that the tileset image is to big for iOS. When I manually add the same sprites to the scene the performance is fine, I add them as separate sprites to a group.

 

I just do:

addTilesetImage
createLayer

 

Using autoCull on the layer doesn't change anything.

 

So why do I get such a large performance hit when I create a layer? What is the recommended approach to add a tilemap?

 

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...