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

Cannot find my leak at all

Status
Not open for further replies.
Level 3
Joined
Apr 6, 2015
Messages
44
Sorry but this trigger is kinda long to read through, I know im asking a lot but I can't seem to find the leak at all, I tested this out, and around the 30th time there is a pretty good noticeable lag, if anyone could help me, I would really appreciate it. I didn't put up the effect triggers, simply cause they're really simply and I highly 99% am sure they do not leak.


This is the first part, the unit casts the spell, and it creates 3 dummy units, each with locust ability and regulates the time of the next trigger

attachment.php


This is the 2nd part of the spell, *Both of them are the same trigger* This makes my dummy unit teleport to every unit that my trigger captures, which is a moving whirlwind, if there are no units around the whirlwind, the dummy units will go and teleport around the old units that the whirlwind had already passed through, but will priortize units near the whirlwind if there are any. It also pauses all units it comes across

attachment.php


attachment.php



This is the last part of my spell that turns of a few special affects that are simple, deals the damage and has a special effect, nothing really special about this one here


attachment.php
 

Attachments

  • 11.png
    11.png
    62.7 KB · Views: 203
  • 1.png
    1.png
    68.7 KB · Views: 200
  • 2.png
    2.png
    32 KB · Views: 219
  • 22.png
    22.png
    43.7 KB · Views: 241
Level 19
Joined
Oct 7, 2014
Messages
2,209
Sounds also leak.

  • Sound - Destroy (Last played sound)
In the last trigger why don't you use these?

  • Custom script: call DestroyGroup(udg_SnakesAndScorpUnitGroup[1])
  • Custom script: call DestroyGroup(udg_SnakesAndScorpUnitGroup[2])
 
Last edited:
Level 3
Joined
Apr 6, 2015
Messages
44
Sounds also leak.

  • Sound - Destroy (Last played sound)
In the last trigger why don't you use these?

  • Custom script: call DestroyGroup(udg_SnakesAndScorpUnitGroup[1]) Custom script: call DestroyGroup(udg_SnakesAndScorpUnitGroup[2])

Oh haha Didn't know sounds leaked, whoops, i'll fix that and see if that has much of an effect on the overall lag, and I was a bit unsure of unit group leaks, so I deleted Unitgroup[1] in the 2nd trigger just cause I was afraid it would create a new unitgroup each time the 2nd trigger activated, so I wanted to destroy it in the same trigger as that one, and I didn't destroy Unitgroup[2] simply cause I only add and remove units from it, I don't set any units into it "Does that do something bad? ._."
 
Level 3
Joined
Apr 6, 2015
Messages
44
So I casted it about 30 times again, I saved the sound as a variable and destroyed it at the end of my trigger, but it ended up destroying it permamently during the map, and only played the first time, That I can figure out and struggle with later, But with that, I still noticed a minor lag, even with no more sound leaks
 
Status
Not open for further replies.
Top