Star wars commander forum deutsch

broken image
broken image

Do anyone have any experience with that and maybe somebody have an answer how this could affect performance? But here the question could be: how to work with such arrays. I know that arrays could increase performance in programming compared with recalling functions many times. But if you want to rearrange order of this army, you could probably rearrange positions inside this array. My idea is to test how such ways compare:įor example if you put army of knights into one array, on each update they would behave like a large group and as a single game object. This could increase performance if it would be possible to store objects into array and instead of calling Update() or FixedUpdate() thousands of times it could be possible to call these functions once and modify arrays. When I looked to how trees are placed on terrain (as it can be placed hundreds thousand of trees), I found that trees are putted into arrays: I am also creating RTS game and facing this problem.