- Joined
- Jul 10, 2008
- Messages
- 353
If some could benchmark these two...
I really wonder if (1 unit, 1 trigger) is better or worse than (1 trigger, 1 event).
It can be any EVENT_UNIT, for 300 units (or anything above 100)
TriggerArr[count] gets destroyed or recycled once Unit[count] dies, while SingleTrigger not.
P.S Can also be TriggerHash instead of array
Also wonder if (1 unit, 1 event, 1 trigger, 1 function) is better or worse,
as to create 1 Trigger per Event you want to monitor per Unit -> calling for specific unit, for specific event, specific Function, avoiding operands if/else.
I really wonder if (1 unit, 1 trigger) is better or worse than (1 trigger, 1 event).
JASS:
call TriggerRegisterUnitEvent(SingleTrigger, Unit[count], EVENT_UNIT_XXX)
VS
call TriggerRegisterUnitEvent(TriggerArr[count], Unit[count], EVENT_UNIT_XXX)
It can be any EVENT_UNIT, for 300 units (or anything above 100)
TriggerArr[count] gets destroyed or recycled once Unit[count] dies, while SingleTrigger not.
P.S Can also be TriggerHash instead of array
Also wonder if (1 unit, 1 event, 1 trigger, 1 function) is better or worse,
as to create 1 Trigger per Event you want to monitor per Unit -> calling for specific unit, for specific event, specific Function, avoiding operands if/else.
Last edited: