Hi all! (Long-time-reader-first-time-poster here)
I'm making a game that uses a few atlases, and as I've been tinkering with it and using Instruments, I'm finding some odd behavior. I've stripped down the confusion to this example:
I added a 2048x2048 atlas (using [Media initAtlas] from the Media class), but didn't do anything further with it. The memory usage didn't bump up too much. In fact, as I'm watching in Instruments - testing on my iPhone - I don't notice any change in allocations. (Again, throughout all these tests, I'm not drawing any display objects with these atlases).
On the other hand, I have another atlas that is 1024x2048, so rectangular. I do the same test with that atlas, but when I initiate the media class now, there is a 10 Mb increase in allocations.
I was trying to ponder if maybe this atlas is small, but more detailed. So I rearranged it into a square (removed a couple images, so it got down to 1024x1024), and it behaved precisely as the other square atlas. When added, there was no effect on the memory usage that I could detect.
So, what is it:
a) I shouldn't pay much attention to Instruments
b) Square really is an incredibly better shape for an atlas
c) Something else is going on...?
d) Perhaps I'm just misunderstanding something? (I'm still new to all this)
I'm at a loss here, so I'd appreciate any insights you may have. Thanks!