For example we have 50 coin in game and we want to calculate distance between each object to player. How do we get more performance? In for loop calculate distance from each object to player and attach the one object in scene or just calculate one of them and attach it each coin in scene? Which one is give more performance? The amount of coin can be increased.
Imo when calculate every object in loop it seem like overloading the code. I don’t know am I right.