Moderator
M
Moderator
12.12
IcemanBo: For long time as NeedsFix. Rejected.
Bribe
Only make arrays when they are unavoidable. Point[1] -> Point1, Unit[1] -> Unit1. Easily avoidable here. Makes things a lot faster.
(Owner of Unit[1]) -> (Triggering player). A lot faster.
Save (Triggering player) to a variable before entering the loop, you have a buttload of excess function calls that just don't need to be, making it a lot faster.
(Integer A) -> Integer Loop ---> custom integer loops are a lot faster.
The bj_wantDestroyGroup custom script is superior to group set/pick/destroy: less lines of code equates to less file size consumed by the map, faster execution in-game, faster to write... win/win situation.
If it was only one of these things, fine, but there is lots of room for improvement here.
IcemanBo: For long time as NeedsFix. Rejected.
Bribe
Only make arrays when they are unavoidable. Point[1] -> Point1, Unit[1] -> Unit1. Easily avoidable here. Makes things a lot faster.
(Owner of Unit[1]) -> (Triggering player). A lot faster.
Save (Triggering player) to a variable before entering the loop, you have a buttload of excess function calls that just don't need to be, making it a lot faster.
(Integer A) -> Integer Loop ---> custom integer loops are a lot faster.
The bj_wantDestroyGroup custom script is superior to group set/pick/destroy: less lines of code equates to less file size consumed by the map, faster execution in-game, faster to write... win/win situation.
If it was only one of these things, fine, but there is lots of room for improvement here.