Riddik Posted June 20, 2014 Share Posted June 20, 2014 Hi! Can I use a texture this size for mobile browsers and don't worry about performance? Or better use many textures 1024x1024 then one 2048x1024? Link to comment Share on other sites More sharing options...
lewster32 Posted June 20, 2014 Share Posted June 20, 2014 Pretty much all devices will support textures up to 2048x2048 though using more than a few will lead you towards memory issues. The real performance hit comes from uploading these textures to the GPU. In that respect, one large texture is much better than lots of smaller ones - this is why texture atlases and sprite sheets are recommended. Please bear in mind that Phaser doesn't just use WebGL, and a lot of mobile devices currently in use will drop back to canvas, which doesn't have the same performance profile. Canvas for the most part doesn't care about texture atlases, but instead its bottleneck is fill-rate; actually drawing those pixels to the screen. In this case, moving large sprites around or drawing lots of sprites on the screen will have more of an impact to performance. Riddik 1 Link to comment Share on other sites More sharing options...
Riddik Posted June 21, 2014 Author Share Posted June 21, 2014 Thank you for this point! Link to comment Share on other sites More sharing options...
Recommended Posts