• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] TriggerSleepAction

Status
Not open for further replies.
Level 2
Joined
Oct 20, 2007
Messages
18
Hi. I have a function which does some stuff and creates a unit every 0.01 second, but when I execute it it seems to be much slower. I only perform a few basic calculations, so why is it so slow?
 
Level 23
Joined
Nov 29, 2006
Messages
2,482
Since this is a question regarding TriggerSleepAction it would probably not be about leaks, thus it would give lag instead of slow calculations.

the TriggerSleepAction action has a threshold of the minimum "sleep" it is allowed to do. And it is somewhere beweteen ~0.27-0.30 seconds (and it has been prooved that it is inaccurate as well.) So, when you try to TSA 0.01 seconds, it will be every ~0.27 seconds.

If you want the faster way, use a timer.
 
Status
Not open for further replies.
Top