Why is this trigger leaking

romanandre

New Member
Reaction score
2
The longer its lasts the more reduces its frames per seconds, the effects are the same on the begging as is on the end.


Trigger:
  • Jaina Ult Arcane
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • -------- Frost --------
      • Set JainaLoc123 = (Position of FrostOrb)
      • Set JainaReal[1] = (JainaReal[1] + 10.00)
      • Set JainaReal[2] = (JainaReal[2] + 5.00)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • JainaReal[2] Greater than or equal to 300.00
        • Then - Actions
          • Set JainaReal[2] = 0.00
        • Else - Actions
      • Unit - Create 1 Dummy Caster for Player 1 (Red) at (JainaUltTgt offset by (300.00 - JainaReal[2]) towards JainaReal[1] degrees) facing Default building facing degrees
      • Unit - Add a 0.10 second Generic expiration timer to (Last created unit)
      • Animation - Change (Last created unit)'s size to (55.00%, 55.00%, 55.00%) of its original size
      • Special Effect - Create a special effect attached to the origin of (Last created unit) using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
      • Special Effect - Destroy (Last created special effect)
      • -------- Fire --------
      • Set JainaReal[3] = (JainaReal[3] + 10.00)
      • Set JainaReal[4] = (JainaReal[4] + 5.00)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • JainaReal[4] Greater than or equal to 300.00
        • Then - Actions
          • Set JainaReal[4] = 0.00
        • Else - Actions
      • Unit - Create 1 Dummy Caster for Player 1 (Red) at (JainaUltTgt offset by (300.00 - JainaReal[4]) towards (120.00 + JainaReal[3]) degrees) facing Default building facing degrees
      • Unit - Add a 0.10 second Generic expiration timer to (Last created unit)
      • Animation - Change (Last created unit)'s size to (100.00%, 100.00%, 100.00%) of its original size
      • Special Effect - Create a special effect attached to the origin of (Last created unit) using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
      • Special Effect - Destroy (Last created special effect)
      • -------- Arcane --------
      • Set JainaReal[5] = (JainaReal[5] + 10.00)
      • Set JainaReal[6] = (JainaReal[6] + 5.00)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • JainaReal[6] Greater than or equal to 300.00
        • Then - Actions
          • Set JainaReal[6] = 0.00
        • Else - Actions
      • Unit - Create 1 Dummy Caster for Player 1 (Red) at (JainaUltTgt offset by (300.00 - JainaReal[6]) towards (240.00 + JainaReal[5]) degrees) facing Default building facing degrees
      • Unit - Add a 0.10 second Generic expiration timer to (Last created unit)
      • Special Effect - Create a special effect attached to the origin of (Last created unit) using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
      • Animation - Change (Last created unit)'s size to (60.00%, 60.00%, 60.00%) of its original size
      • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation(udg_JainaLoc123)
 
Your Dummy Caster is being created at "(JainaUltTgt offset by (300.00 - JainaReal[6]) towards (240.00 + JainaReal[5]) degrees)"

Rather:
Set MyUnitPosition = (JainaUltTgt offset by (300.00 - JainaReal[6]) towards (240.00 + JainaReal[5]) degrees)
And Create Dummy at MyUnitPosition

And I think your special effects are fine, not sure if you HAVE to set them to variable or not.
 
Seriously, creating 150 units per second truly hurt the performance of the computer regardless of leak or not.
Even if the unit is dead, it doesn't get removed immediately. I'd suggest you to remove the units after death, if you haven't done it already.
Code:
Event
 A unit dies
Condition
 Unit type of (Triggering unit) Equal to Dummy Caster
Actions
 Unit - Remove (Triggering unit)

> not sure if you HAVE
No.
 
Use 0.03 instead; 0.03125 is the, pretty much, the minimum you will ever need.
0.03125 is 32 frames per second, which is smooth enough for any normal human being.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top