Jump to content

How big source image can I use


NokFrt
 Share

Recommended Posts

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? 

Link to comment
Share on other sites

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.

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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