Hi everyone.
So I recently became aware of a bug that apparently exists with Unity’s Mono regarding foreach loops. Apparently there’s a bug that causes it to slow down and allocate memory.
Well, I had no idea. I’ve used those a lot in my code and now I have to change those to for loops.
Another one was the recent information regarding Unity’s custom ‘==’ operator. Apparently that was doing a bunch of work behind the scenes and having a bit of a performance hit. So I had to change my code again to get around that issue, because I was using that in performance critical areas.
So I’m just wondering if there are any other situations like this that you guys know of, that we should be aware of. Issues that aren’t obvious and you wouldn’t expect them to be an issue.