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

[Trigger] Leak Problem

Status
Not open for further replies.
Level 4
Joined
Aug 28, 2004
Messages
81
Hi,
I am having trouble figuring leaks in somes of my triggers. I am using ''Leak Check'' and it does not scan any leaks in these triggers but obviously they do leak as the game start lagging after a few using these triggers only.

I will post the triggers and hopefully someone can help me and fix the lag?




FIRST :
trigger001.png

trigger002.png


SECOND :
trigger003.png

trigger004.png

trigger005.png

trigger006.png



Thank you for your time.
 
Level 4
Joined
Aug 28, 2004
Messages
81
*Update*

I have merged the triggers and increased the events to 0.04+. (+rep to Yixx)
I can feel less lag now but it still does start lagging again after a few minutes playing the game. (Note: when the game start, it is completly lag-free and it does only start lagging after spamming these triggers for a few minutes.)

I figure no one noticed any leaks in the triggers so i am going to post everything that use time events :

triggeragain001.png

triggeragain002.png




triggeragain003.png
 
Level 16
Joined
Oct 12, 2008
Messages
1,570
Only one location leak detected.
Set TempPoint2 = (TempPoint1 offset by 100 towards (Angle from (Position of (Picked Unit)) to RushingDirection[(Player Number of (Owner of (Picked Unit)))]) degrees
Only leak i can detect, which, i think, cannot be the cause of lagg, as it is only one (though, you still SHOULD kill it!)
 
Level 4
Joined
Aug 28, 2004
Messages
81
Thanks again for pointing out this leak, Yixx.

Anyway, I have finally found the problem. Here's my story.

After many hours of testing and searching, I noticed one thing :
(Note: I have two kind of jumps in my map but both are almost the same)
When I use the second type of jumping (Spinning) it never caused any lags/leaks while if I used the first kind a few time, the map get very laggy.

Now that was very confusing because both triggers were almost the same (only the animation and sound effect changed). So I came with the conclusion : ''wtfisthisshit''.
Then after thinking about it for a few minutes I thought about the base of both spells. The first one was using Shockwave and second Carrion Swarm.

Would it be possible that the spell Shockwave may be the cause of this lag?
The answer is yes. I changed the base of my first jumping spell with Breath of Fire and poof, the lag is gone.
 
Last edited:
Status
Not open for further replies.
Top