• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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