• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Question about eventless triggers

Level 11
Joined
Aug 11, 2009
Messages
612
I was just wondering about efficiency since I dont really know much about it.

The question is if triggers with no events in large quantities slows down the map? If its better to have them turned off and turn them on when referenced by another trigger?

Why I ask is because I want to make multiple stages with different setups of enemies in each stage.
So each stage would have a trigger with no event to create the units, which could end up in the hundreds of these triggers.

Then I have another trigger where i buy an item which will check what stage im on and run the appropriate trigger to create the enemies.

I already have the triggers in place so Im just curious about efficiency when having a large number of these triggers :D
I understand it will add a longer load time of the map but that is ok, im only worried about ingame performance.

Thanks for any clarifications on this.
 
As far as I know...

Turning an Eventless trigger off/on won't have any affect.

Each Event gets registered by the engine. Once this happens the engine begins listening to your Trigger, it wasn't before.

If a Trigger is Off then it's registered Events are still going to fire but the engine is going to ignore them. It goes, "Oh, this trigger is turned off, let's not even bother checking the Conditions let alone the Actions". Without any Events this process never happens in the first place.

The main concern would be World Editor performance due to bloat. There will likely be a slight increase in loading time as well, but I can't imagine it'd be more than 1 or 2 seconds when you have 100's of triggers.
 
Last edited:
eventless trigger is a like a function that wasnt subscribed to the continoiusly checked event list by the engine. Nothing happens. It sits idle and only runs if you run it with a function
So the engine is busy with less (or no) events to listen to

Triggers will slow the map only if continously and very frequiently fired
or if you create a lot of objects fast like units, decorations,items
 
Oh yeah, that makes perfect sense!
Thanks to both of you for the very good explanations for someone who lacks coding knowledge :D
 
Back
Top