HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Zero seconds timers?

09-02-2008, 05:22 AM#1
Vexorian
Is it true that when you start up multiple zero seconds timers their expiration times can be in different order than the one you used to start them up?

I've been trying to reproduce this by using a big loop from i=0 to 100, and in every step I start a timer, attach the i and start it with 0 seconds time out, then during expiration, make the timer show a text message with the attached value. But it doesn't seem to ever be showing the numbers in a different order. How do you reproduce this claim?
09-02-2008, 09:04 AM#2
DioD
There is only one way to ruin timers - waits.

Code:
function Overload takes nothing returns nothing
    loop
        exitwhen BREAK //some external value you can change ever inside lag
        call ExecuteFunc("Overload")
        call Sleep(0.)
    endloop
endfunction
09-02-2008, 07:29 PM#3
Ammorth
wasn't able to reproduce the claim, even when using a random order of timers.