HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

TriggerSleepAction

03-16-2006, 10:16 PM#1
The_AwaKening
What is the difference between
call TriggerSleepAction(wait)
and
call PolledWait(wait)

If I were setting a local real wait=.20 and using that wait in a loop, would either of those function give me one second after 5 loops?
03-16-2006, 10:51 PM#2
Blade.dk
PolledWait is like a game time wait, TriggerSleepAction is a real-time wait.

However, TriggerSleepAction is not completely accurate with small values, and as PolledWait uses TriggerSleepAction it is not completely accurate either.
03-17-2006, 09:10 PM#3
Thunder_Eye
TriggerSleepAction is a native also, Polledwait call some functions, So I assume TriggerSleepAction is faster.
03-17-2006, 09:18 PM#4
Captain Griffen
However, PolledWait is better since it takes into account lag, etc.