• 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.

Turn Off a Trigger every 0.03 seconds

Status
Not open for further replies.
Level 30
Joined
Nov 29, 2012
Messages
6,637
Well there will a error if i turn on and turn off a trigger every 0.03 seconds?

How does it affect in the multiplayer?

0.03 is quite a very short time and yes, It will really give some errors because you are trying to make the trigger turn off and turn on in just a short time, 0.03.

How does it affect Multiplayer? Of course, many lags and also maybe it might cause a Fatal Error.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
In the original meaning, lag describes an increased transmission delay in networks. OP has also spoken of multiplayer here. Activating/Deactivating triggers does not cause any net-traffic. Of course, a client can be too busy to respond and therefore the "wait for player" dialog appears but why should enabling/disabling a trigger be expensive? It most-likely only sets a boolean or adds/remove the trigger to/from a list. And there is no reason for it to throw a fatal error.

There are many applications like sliding a unit where you do a lot more in a 1/32 seconds interval.

I am also curious though why the OP needs to enable/disable a trigger this frequently.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
There are many applications like sliding a unit where you do a lot more in a 1/32 seconds interval.

And it does not have anything to do with multiplayer. You should just pay attention that you do not create leaks in short-periodic triggers.

@Hell_Master: Turning on/off a trigger and running it are completely different things. Of course, you can strain your system with frequently running triggers but this is less because of the framework but the actual instructions you give in your specific case.
 
Status
Not open for further replies.
Top