NokFrt Posted February 13, 2014 Share Posted February 13, 2014 I have sprites and backgrounds in one image file. The image file is now 1024x2048. Is this ok for mobile browsers or should I split the sprites and the backgrounds into more files? Is it necessary to have pixel size of image files aligned to power of 2 if I don't use WebGL? Quote Link to comment Share on other sites More sharing options...
rich Posted February 13, 2014 Share Posted February 13, 2014 1) Personally I don't go over 1024 x 1024, but this should be ok for mid-range and above mobiles. 2) Doesn't matter if you use WebGL or not, it's how most GPUs use texture data, and all browsers use the GPU, so... I would also say it's not a huge worry, but it depends on the game and your texture size. When they're as large as you've got there then it matters. Basically test as much as you can. Quote Link to comment Share on other sites More sharing options...
NokFrt Posted February 13, 2014 Author Share Posted February 13, 2014 Thanks for the info. Quote Link to comment Share on other sites More sharing options...
AshleyScirra Posted February 15, 2014 Share Posted February 15, 2014 I think the smallest maximum texture size in common use is 2048x2048, but 1024x1024 will definitely keep you safe. Quote Link to comment Share on other sites More sharing options...
Victor Posted February 15, 2014 Share Posted February 15, 2014 There are older post where people says that Iphone 3GS with Safari can't handle 2048x2048 images. They must went with smaller graphics, 1024x1024 images went ok.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.