Sud
"[If life=Dota] I'd have quit long ago" -- Acehart
- Reaction score
- 64
I have 401 triggers currently that I'm dealing with. I've done a pretty good job thus far optimizing these, but it seems I'm going to need to crunch them around further as trigger lag is starting to set in.
And so it comes to be that I want to talk about trigger lag. In particular, the particulars. I'm using a lot of different triggers to do different things, but I've got some suspicons about them. For example, I use a lot of unit is attacked triggers. I have good conditions that should prevent the trigger from being run often, but I have to wonder if the mere existance of this type of trigger is contributing to the lag, or is it really dormant until it's called upon?
Another suspicion might be triggers dealing with unit creation and giving orders to units. A lot of creating and ordering takes place. Relatively speaking, does anyone have any sort of concrete ideas on how much overhead unit creation and orders should create?
And so it comes to be that I want to talk about trigger lag. In particular, the particulars. I'm using a lot of different triggers to do different things, but I've got some suspicons about them. For example, I use a lot of unit is attacked triggers. I have good conditions that should prevent the trigger from being run often, but I have to wonder if the mere existance of this type of trigger is contributing to the lag, or is it really dormant until it's called upon?
Another suspicion might be triggers dealing with unit creation and giving orders to units. A lot of creating and ordering takes place. Relatively speaking, does anyone have any sort of concrete ideas on how much overhead unit creation and orders should create?