Difference between PolledWait and TriggerSleepAction

Vassilev

New Member
Reaction score
39
Timers are the most accurate? are you sure?

i remember making a timer for every 0.03 seconds and i put a debug msg in the timer itself.

then i used TriggerSleepAction(0.30) seconds then destroyed the timer

so 30 / 3 should be 10 right? but the timer runs more than 10 times usually... though it might be because im using triggersleep instead of PolledWait =\
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
PolledWait leaks :p
There's a leak free version somewhere around...

Anyway, PolledWait uses TriggerSleepAction to wait most of the time, and it creates and starts a timer for the details...

TriggerSleepAction is just that, it waits...
Unfortunately, it's not all that precise.
Especially on really short delays.
Waiting 0.3 might be 0.3, but it could just as well be 0.32...

Timers are precise. Very. Always.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top