Zwiebelchen
You can change this now in User CP.
- Reaction score
- 60
Since I am currently coding a new threat system, I was wondering which of the following is the fastest:
1) Having a unit array (and a maxindex integer) and looping through the units.
--> this also comes with the advantage of having perfect control over all the values assigned, so I would prefer this, if there are no big differences in run-time.
2) Having a group, copying it and using a loop with the FirstOfGroup(), GroupRemoveUnit() method.
3) Using ForGroup()
Also, I was wondering if IsUnitInGroup() is faster than looping through a unit array or group?
Does anyone know this?
1) Having a unit array (and a maxindex integer) and looping through the units.
--> this also comes with the advantage of having perfect control over all the values assigned, so I would prefer this, if there are no big differences in run-time.
2) Having a group, copying it and using a loop with the FirstOfGroup(), GroupRemoveUnit() method.
3) Using ForGroup()
Also, I was wondering if IsUnitInGroup() is faster than looping through a unit array or group?
Does anyone know this?