Hey all.
I got this project running where i require to move a lot of objects constantly. These objects move towards a target at all times, target differs per objects. I am not talking hundred of objects, i am moving thousands of them, so any bit of performance i can get extra would give quite a bit seeing the number of objects.
One thing i did to start with, it to make all objects be moved from one script. Going trough one array containing all units and telling them all to move. When comparing this to giving each object their own Update, and making them move on their own gives no performance increase at all, it is infact the same. This suprised me a bit because the amount of Update calls are reduced dramaticaly, is there anything else i can do to boost this?
Also these objects need to move, so i am simply using transform.Translate to move them from their current position, to the position they need to go to. Ofcourse everything i can cash is cashed, but is there a more performance friendly way of doing what Translate() does?
I am not that unhappy with the current performance, but since i can not think of any good alternatives, than that most likely means there is stuff i do not know. So if anyone got a idea on how i could get some extra performance out of that, i would be gratefull.