HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Optimization question

10-04-2007, 04:32 PM#1
Castlemaster
If I no longer need a trigger, does it reduce lag to turn that trigger off? For instance, If I have 8 heroes to choose from, but only 4 are chosen, should I just turn off the triggers to the other 4 heroes to optimize it?
10-04-2007, 05:02 PM#2
TEC_Ghost
What's the event for picking them? Could it be fired by other players later on, or is a constant check?
10-04-2007, 05:14 PM#3
Castlemaster
For instance, I have alot of "unit starts the effect of an ability" triggers, about 4 for each hero. So I'm asking if disabling them if the hero is not picked would help optimize the map.
10-04-2007, 05:18 PM#4
TEC_Ghost
If the triggers wont ever be run, they shouldn't cause any performance issues, as turning them off would just keep them from being run, if they wont run in the first place you'd be causing more code to be run by turning them off then leaving them alone.
10-04-2007, 05:33 PM#5
Castlemaster
So even if 7 triggers have the same event, and only the same one of the trigger's conditions are ever met, then it is just as efficient as having one trigger?
10-04-2007, 07:27 PM#6
Salbrismind
In your case it is better to disable the triggers, yes.

What happens is your event is "Whenever a unit uses an ability" so yes, disabling the trigger means that the trigger will no longer run when a generic unit uses an ability.
10-04-2007, 07:39 PM#7
blu_da_noob
It'll just stop the conditions for those triggers being checked. So yes it will strictly help so go ahead, but realistically you shouldn't notice a difference.