Hello there,
I am still working on my game and I am about to finish it. I have read a article about garbage collection, that it could be useful to to it manually instead of letting unity handle this. Unfortunately i cant find that article
Does anyone have a good site or script on how to handle it? As for now, my game is doing fine, but there are some lags sometimes, that cut down the FPS a little bit. Here is a picture of my profiler, so you can see, what I am talking about 
Thanks in advance
If you find the article I’d be interested.
GC.Collect() tells Mono to do a Garbage Collection, however I understood that not recomended to use it unless you are at a point in you game where you can deal with a lag - I have a turn based game, and so I have natureal points at which I can deal with a hickup, but a long running action game may not. I’m not a mono expert (non gaming regular .Net day job), I’d be interested in others opnions on this.
I suspect you would be better to spend you time trying to reduce your object creation through pooling and reuse.
Look at line where GC alloc != 0
For many, you’ll not be able to do something (unity buildin allocation) but for other, try to remove all (or most) allocations.
The less you allocate, the better.