crowbar Posted April 14, 2015 Share Posted April 14, 2015 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 Quote Link to comment Share on other sites More sharing options...
Sebi Posted April 14, 2015 Share Posted April 14, 2015 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. Quote Link to comment Share on other sites More sharing options...
crowbar Posted April 15, 2015 Author Share Posted April 15, 2015 Ok so there is no advantage to splitting images up into different sprite sheets other than memory? I'm running my app on a computer only, so I don't think it will be a problem. 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.