• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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