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: 95
  • 2.JPG
    2.JPG
    125.8 KB · Views: 78
  • 3.JPG
    3.JPG
    164.9 KB · Views: 80
  • 4.JPG
    4.JPG
    158.9 KB · Views: 102
  • 5.JPG
    5.JPG
    144.2 KB · Views: 71
  • 6.JPG
    6.JPG
    75.7 KB · Views: 98
  • 7.JPG
    7.JPG
    117.9 KB · Views: 73
  • 8.JPG
    8.JPG
    143.5 KB · Views: 84
  • 9.JPG
    9.JPG
    137.9 KB · Views: 101
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.
Back
Top