Best memory allocation strategy for iOS ?

Posted by Mr.Gando on Game Development See other posts from Game Development or by Mr.Gando
Published on 2011-03-14T22:36:18Z Indexed on 2011/03/15 0:18 UTC
Read the original article Hit count: 421

Filed under:
|

Hey guys,

I'm debating myself about memory allocation on iOS. I write most of my code in C++ and I really like using ObjectPools, FreeLists, etc. In order to pre-allocate a lot of the stuff that I'll be constantly "alloc/dealloc" during the course of my game, ( like particles, game entities, etc ).

Still on iOS, it's not like we are developing for a console like PSP, where I can know for fact that I'll get a fixed amount of memory. iOS , will issue "memory warnings" when the system needs memory.

Does anyone have some suggestions about this ? Is it too serious since the new iPod touch/iPhone 4 are carrying more RAM ? or it's still a big concern ?

Thanks!

© Game Development or respective owner

Related posts about ios

Related posts about memory-efficiency