- Home /
Does Unity Automatically Runs Garbage Collector, or Have a Similar Stuff That Automatically Runs?
If not, is it a good idea to make a regular invoking method for garbage collector? Thanks.
Answer by Landern · Jun 29, 2015 at 10:04 PM
Yes it does, you can read more about it in the Documentation on Understanding Automatic Memory Management
Answer by Novodantis · Jun 29, 2015 at 10:04 PM
Yes.
Unity runs garbage collection duties; it's not something you need to manage yourself. However, it is still a performance consideration in most cases. So having an awareness of it is definitely a good thing.
Can you give an example situation that i need to call garbage collector myself?
It's more that it might affect other coding decisions; such as instantiation vs pooling of objects, or (as is mentioned in the above documentation) concatenating strings.
Your answer

Follow this Question
Related Questions
I have this out of memory issue when running my webgl game in iOS. 0 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
CPU being choked by GC.MarkDependencies 1 Answer
How much RAM does textmesh use? 1 Answer