Komaqtion
You can change this now in User CP.
- Reaction score
- 469
Why timers are better? Look at PolledWait function:
JASS:function PolledWait takes real duration returns nothing local timer t local real timeRemaining if (duration > 0) then set t = CreateTimer() call TimerStart(t, duration, false, null) loop set timeRemaining = TimerGetRemaining(t) exitwhen timeRemaining <= 0 // If we have a bit of time left, skip past 10% of the remaining // duration instead of checking every interval, to minimize the // polling on long waits. if (timeRemaining > bj_POLLED_WAIT_SKIP_THRESHOLD) then call TriggerSleepAction(0.1 * timeRemaining) else call TriggerSleepAction(bj_POLLED_WAIT_INTERVAL) endif endloop call DestroyTimer(t) endif endfunction
PolledWait uses Timers.
If you can read the green comments you'll see that it's not that good with lower periods either, as they skip intervals, and they still use TSA, so it still won't be very accurate... It's not that you use timers that's the only good thing, it's how you use it too, you know