1
Support / Re: Sprite Collections and you...
« on: April 17, 2014, 01:16:17 pm »
Sprites that are in the same collection are usually packed in the same atlas texture. This means that unity will be able to easily batch the draw calls for multiple objects if they are in the same collections (because they share the same texture).
You have to trade-off memory for performance basically. If you put all the sprites in the same collections you will have better performance because opengl won't have the unload the texture and load the new texture every time. It will just load that one texture in memory and use it for every draw call. The disadvantage here is that there may be cases where you want to draw one specific object but you will load the whole atlas in the video card memory even though you only use like 5% of it.
You have to trade-off memory for performance basically. If you put all the sprites in the same collections you will have better performance because opengl won't have the unload the texture and load the new texture every time. It will just load that one texture in memory and use it for every draw call. The disadvantage here is that there may be cases where you want to draw one specific object but you will load the whole atlas in the video card memory even though you only use like 5% of it.