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!
The "Wait" function is rather inaccurate. It varies from time to time, and the minimum wait tends to vary from 0.1-0.3 seconds (and it may vary depending on other factors).
Yeah, waits are slow and inaccurate, they go down to to .10 max i think. creating a timer and a secondary trigger that would run every .04 sec would work much faster and smoother.
Yeah, 2 seconds is usually long enough. It won't be any more accurate (it'll still be off by some milliseconds = same error), but you won't notice it as easily. Think of it this way:
If you are tapping your desk once every 5 minutes, you won't notice if you're a second off. You may end up tapping it once every 5 minutes + 1 second, or maybe 5 minutes - 1 second. Either way, you probably won't notice that you were off by a second.
However, if you were tapping your desk every half a second, then you would definitely notice a 1 second delay. You'll notice that it is going a lot, lot slower than you would expect.
That is the general rule of thumb to waits. You'll be fine with a long duration, but they are pretty awful for short durations. There are other reasons why waits are problematic, but some of it applies to JASS or they're very specific oddities, so don't worry about them unless you experience problems.
The "wait game-time seconds" function addresses the cases where waits measure time inaccurately due to lag/etc. Still can't address the basic inaccuracy issues obviously though.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.