Jump to content

Tiled Map Sizes


jake
 Share

Recommended Posts

Hello everyone,

 

So I've been testing out Phaser (I love the API btw) with a tiled map but I've been having performance issues. The map consists of 12 layers at 100 x 100 units (which are 16 x 16 pixels) and when traversing the map with the arrow keys it's quite slow. I don't know if I'm doing this optimally within Phaser so I'll just share code snippet I'm using.

 

http://pastebin.com/QEd3ccr1

 

If there isn't issues with my code, could anyone tell me if Phaser would have problems handling maps this size or larger? Thanks.

Link to comment
Share on other sites

Don't use 12 layers :)

 

It's having to redraw all tiles across 12 layers, every frame. Which is quite a hit. If any of those layers can be combined it would help a lot.

 

In 1.1.4 I've added the ability to render multiple layers to a single canvas, but that won't be ready until end of this month.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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