Jump to content

Should I put ALL my images in a single sprite sheet?


crowbar
 Share

Recommended Posts

I have some images as small as 32x32 and some as large as 512x512.  Is there any reason to not put all of my images in the same sprite sheet?  I want to take full advantage of sprite batching and my current understanding is that if all textures come from the same sprite sheet there will be huge performance gains?

 

Jordan

Link to comment
Share on other sites

There are restriction on how big images can be.

E.g. I think iOS only allows 2048x2048 max.

Also each of those images have to be kept in the memory and on the GPU.

Depending on the machine the player might run out of memory. Often it's better to load assets when needed and dispose of them, when no longer needed.

If all of your images are always needed and the image size of the spritesheet is not too huge, then you sure can do that.

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