- Joined
- Jul 6, 2009
- Messages
- 1,885
I was wondering what way of enumerating units is more efficient:
1. Enumerating a unit group using
2. Adding units to a unit group variable and looping through units by picking a random unit in group,executing actions and removing the unit from group.
I heard that using loop instead of group enumeration is more efficient, which is, i guess, the second way
Or is there a more efficient way than these two?
1. Enumerating a unit group using
GroupEnumUnitsInRange
and doing all actions within filter with filter always returning false.2. Adding units to a unit group variable and looping through units by picking a random unit in group,executing actions and removing the unit from group.
I heard that using loop instead of group enumeration is more efficient, which is, i guess, the second way
Or is there a more efficient way than these two?