Spawn, Memory leak I think

Raveren

New Member
Reaction score
1
Hi. I made a spawn trigger, and after 7 waves map started to run very sloooowly (30 fps -> 20 fps -> 10 fps -> 0,5 fps)
Can You look at this and say if it leak?
Code:
RedMobs
    Events
        Time - Elapsed game time is 120.00 seconds
    Conditions
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Unit - Create 5 Sludge Minion for Player12 (Brown) at (Center of Red <gen>) facing default building orientation degrees
                Wait 6.00 seconds
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Jednostka - Create 5 Lesser Dark Minion for Player12 (Brown) at (Center of Red <gen>) facing default building orientation degrees
                Wait 6.00 seconds
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Jednostka - Create 5 Lesser Lava Spawn for Player12 (Brown) at (Center of Red <gen>) facing default building orientation  degrees
                Wait 6.00 seconds
        For each (Integer A) from 1 to 10, do (Actions)
           Loop - Actions
                Jednostka - Create 5 Skeleton Archer for Player12 (Brown) at (Center of Red <gen>) facing default building orientation  degrees
                Wait 6.00 seconds
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Jednostka - Create 5 Sludge Flinger for Player12 (Brown) at (Center of Red <gen>) facing default building orientation  degrees
                Wait 6.00 seconds
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Jednostka - Create 5 Skeletal Orc for Player12 (Brown) at (Center of Red <gen>) facing default building orientation  degrees
                Wait 6.00 seconds
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Jednostka - Create 5 Dark Minion for Player12 (Brown) at (Center of Red <gen>) facing default building orientation degrees
                Wait 6.00 seconds
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Jednostka - Create 5 Lava Spawn for Player12 (Brown) at (Center of Red <gen>) facing default building orientation degrees
                Wait 6.00 seconds
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Jednostka - Create 5 Greater Dark Minion for Player12 (Brown) at (Center of Red <gen>) facing default building orientation  degrees
                Wait 6.00 seconds
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Jednostka - Create 5 Zombie for Player12 (Brown) at (Center of Red <gen>) facing default building orientation degrees
                Wait 6.00 seconds
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Jednostka - Create 5 Sludge Monstrosity for Player12 (Brown) at (Center of Red <gen>) facing default building orientation degrees
                Wait 6.00 seconds
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Jednostka - Create 5 Skeletal Orc Grunt for Player12 (Brown) at (Center of Red <gen>) facing default building orientation  degrees
                Wait 6.00 seconds
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Jednostka - Create 5 Burning Archer for Player12 (Brown) at (Center of Red <gen>) facing default building orientation degrees
                Wait 6.00 seconds
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Jednostka - Create 5 Skeletal Orc Champion for Player12 (Brown) at (Center of Red <gen>) facing default building orientation  degrees
                Wait 6.00 seconds
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Jednostka - Create 5 Greater Lava Spawn for Player12 (Brown) at (Center of Red <gen>) facing default building orientation  degrees
                Wait 6.00 seconds
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Jednostka - Create 15 Dark Minion (Mass) for Player12 (Brown) at (Center of Red <gen>) facing default building orientation  degrees
                Wait 6.00 seconds
        For each (Integer A) from 1 to 2, do (Actions)
            Loop - Actions
                Jednostka - Create 1 Fire Lord for Player12 Brown) at (Center of Red <gen>) facing default building orientation degrees
                Wait 30.00 seconds
Sorry for eventually mistakes at translating, but I have polish World Editor and I wanted better text to understand for You.
Hope that someone will know :(
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> You should use a variable for that and remove it later in the trigger with a custom script

Given he's using that same point over and over, I'd suggest to store it once, and never destroy anything...

Event:
- Map init
Conditions:
Actions:
- Set myPoint = Center of <somewhere>

And simply use that "myPoint" variable.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top