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

Does these triggers leak ?

Status
Not open for further replies.
Hello everyone,
I'm doing a big map and I notice recently that my map suffers huge problem of lags. I was wondering if these specific triggers were done badly and were leaking.
Because these triggers repeat over times, I was thinking they could be the ones leaking.
If you want to check the map, it's here:
Empire Earth V.1.79
It's unprotected
 

Attachments

  • 1.JPG
    1.JPG
    73.4 KB · Views: 60
  • 2.JPG
    2.JPG
    125.8 KB · Views: 38
  • 3.JPG
    3.JPG
    164.9 KB · Views: 37
  • 4.JPG
    4.JPG
    158.9 KB · Views: 54
  • 5.JPG
    5.JPG
    144.2 KB · Views: 34
  • 6.JPG
    6.JPG
    75.7 KB · Views: 56
  • 7.JPG
    7.JPG
    117.9 KB · Views: 32
  • 8.JPG
    8.JPG
    143.5 KB · Views: 33
  • 9.JPG
    9.JPG
    137.9 KB · Views: 56

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,871
In #4 you call DestroyGroup two times in a couple of cases.

In #5 you leak a Point in the "Pick every unit with 220 range of picked unit". You need to set the position of the picked unit as a Point variable and remove it afterwards.

In #7 you leak 4 Unit Groups in your conditions. "If number of units in playable map area" creates Unit Groups that will leak. Instead, you would want to set a Unit Group variable like TempGroup = Units in playable map matching their point value = 200, 201, 202, etc..." then in your conditions check to see "If number of units in TempGroup = 0 then skip remaining actions", and finally destroy TempGroup after.
 
Status
Not open for further replies.
Top