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

[General] Ability Shockwave Leaks??

Status
Not open for further replies.
Level 9
Joined
Oct 14, 2013
Messages
238
After spending half a day thinking that my code is causing a leak in the game (Although all leakage issues had been dealt in the trigger), I decided to try something else. I removed the triggers and cast the spell on its own and saw to my amazement that the ability itself is causing the leak.

The spell is shockwave and I had turned its every data to zero, even cooldown. By casting it a high amount of times (even with pauses between each cast), I saw that it causes the game to start lagging. What is wrong?
 
Level 4
Joined
Jul 26, 2016
Messages
88
After spending half a day thinking that my code is causing a leak in the game (Although all leakage issues had been dealt in the trigger), I decided to try something else. I removed the triggers and cast the spell on its own and saw to my amazement that the ability itself is causing the leak.

The spell is shockwave and I had turned its every data to zero, even cooldown. By casting it a high amount of times (even with pauses between each cast), I saw that it causes the game to start lagging. What is wrong?

Setting 0 for some things like buff duration or terrain deformation duration is effectively setting it to infinite. try setting some fields that are 0.00 or 0.01
 
Level 9
Joined
Oct 14, 2013
Messages
238
Setting 0 for some things like buff duration or terrain deformation duration is effectively setting it to infinite. try setting some fields that are 0.00 or 0.01
I know that. I set the numbers to non-zero and it still lagged the game. According to the topic KILLCIDE has referred, it seems that terrain deformations are the cause of this lag. Thank you!
 
Status
Not open for further replies.
Top