Lomaz Posted June 13, 2015 Share Posted June 13, 2015 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 More sharing options...
Skeptron Posted June 15, 2015 Share Posted June 15, 2015 From what I have seen so far map size doesn't change much, if reasonable. Layers impact performance, and game width / height impact it a lot. Link to comment Share on other sites More sharing options...
ForgeableSum Posted June 15, 2015 Share Posted June 15, 2015 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 More sharing options...
Recommended Posts