Well, basically, Collecting the Garbage allows your system to clean up objects and variables that no longer have references, if a global is defined, or not dereferenced, they will stay in memory, if you have a loop that declares an object over and over, and you have some variables within them defined as self.somthing, then these will not be released. and the memory will grow, or the clean up will clean less. its usefull to keep in the code, and always use it to check if things are growing without check.
letting the garbage to be collected should be the right word. it is more important than collecting garbage (which is done automatically more or less, although it can be done from time to time). by letting collected i mean that what you don't need anymore should not be a child of something or referenced by something (as cyberience explained), and then it will be released from memory automatically at some point. as i understand making an object not used anymore equal to nil is also useful to release its content.
Comments
What android version you compile?
If it is on android simulator, then it is normal. You can't get anything run on that thing
Ultimate Games on Appstore
Ultimate Games on Google Play
Ultimate Games on Appstore
Ultimate Games on Google Play
---------------------------------------
So what i understand is that if the count of the garbage differ from one time to another then there is a need to collect the garbage.
its usefull to keep in the code, and always use it to check if things are growing without check.
Likes: a00za
---------------------------------------
collecting garbage (which is done automatically more or less, although it can be done from time to time). by letting collected i mean that what you don't need anymore should not be a child of something or referenced by something (as cyberience explained), and then it will be released from memory automatically at some point. as i understand making an object not used anymore equal to nil is also useful to release its content.
Likes: a00za
Fragmenter - animated loop machine and IKONOMIKON - the memory game