• 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.

[Solved] Special Effects case.

Status
Not open for further replies.
Level 21
Joined
May 16, 2012
Messages
644
Sleep action works too. TriggerSleepAction has some problems: it is usually off by a quarter of a second or so, it waits real time vs game time, and it pauses the current thread.

But if that is fine in your case, then feel free to use it. With longer waits, it is usually okay.
But using SleepAction can cause performance issues or just that difference in execution? its a 3 sec wait btw.
 

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,290
SleepAction can cause lag (network latency) as I believe it generates net traffic.

Although the special effect object likely leaks, I do not think the graphics do because they are attached to something else which gets removed automatically (the unit). As such they probably do not have a place to be rendered at.
 
Level 21
Joined
May 16, 2012
Messages
644
SleepAction can cause lag (network latency) as I believe it generates net traffic.

Although the special effect object likely leaks, I do not think the graphics do because they are attached to something else which gets removed automatically (the unit). As such they probably do not have a place to be rendered at.
that's what i was thinking, there's no unit for the effect to be attached anymore, so how can it leak? I dont know if the function call leak any references but i'm gonna take the safest way and remove it anyway, but thx for the explanation guys.
 
Status
Not open for further replies.
Top