Jump to content

Map size vs. efficency


Recommended Posts

Hello! I was just wondering roughly what determines the FPS between two different maps generated with Tiled.. is it size? number of layers? number of spritesheets?  some kind of subset of those?


Just noticed I have 2 maps, and though they are close in size 60x60 vs 50x50 the smaller runs a bit slower, and when I increase the 60x60 up to 240x240 I don't see much of a chance.. maybe because all the newly added area is white space?

Link to comment
Share on other sites

The reason why larger maps might perform better is because Phaser uses quad trees for things like collision detection and probably other things. A quad tree basically reduces the load by not performing operations (such as collision) between objects that are far enough away from each other. At least that's my theory.    

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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