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

Wait vs Timer: what's better for online?

Status
Not open for further replies.
Level 7
Joined
Jun 1, 2009
Messages
125
Hi! I wonder which function is better for loop triggers in map, if you gonna play it online? (By "better" I mean less desync chance and memory leaks).

From what I've learned, "wait" isn't that accurate, especially online. But I'm not sure about how many timers could being running at same time. Map has 10 player slots, thus it could be up to 10 loop triggers with 0,1 sec countdown. How many timers could being safely running at same time?

Thank you in advance!
 

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
2,010
there are (is) not a single reason to use wait when you have timers
Wrong, it has its use in cinematics, using timers there is mostly plain stupid and ridiculous.
It also has many other uses, but you and many others are only reinforcing the idea that it is bad, and can't be used for this and that, while ignoring its actual use.
One needs to check the intention behind his idea, thinking of all possible ways and the undesired results.
One can use a lot of timers anyway, it's not like today's computers are toasters.
 
Status
Not open for further replies.
Top