| 08-14-2008, 04:28 AM | #2 |
You create a unit and, as far as I can tell, do many actions with Last Created Unit (the unit) and THEN set the variable to it. Why don't you set the var first and then make all the last created units the var? |
| 08-14-2008, 04:53 AM | #3 |
You're using the War Stomp, and, like Thunder Clap, it creates a terrain deformation, which lags HORRIBLY. workaround is damaging the units yourself, using a loop. |
| 08-14-2008, 05:35 AM | #4 |
Might want to fix the thread title to say OLY instead of ILY. |
| 08-14-2008, 09:52 AM | #5 | |
Quote:
|
| 08-14-2008, 06:00 PM | #6 | ||
Quote:
Quote:
|
| 08-14-2008, 06:23 PM | #7 | |
Quote:
I'm new at this, but, as I recall: 1. When you call the last unit, you're calling a function that is then using a global variable. 2. Every time you call this unit, you're repeating that function. 3. If you just assign the unit to the variable, then you're only calling the function once. 4. As a further benefit, if a new unit gets created while the trigger is running, it won't change the return on the Last Created Unit call. Basically, if you're only using the Last Unit once, then just call it. Otherwise, assign it to a variable. |
| 08-14-2008, 06:24 PM | #8 |
I don't see a periodic timer there, so a leak will not be the cause. Especially because you're already only using points that you destroy again. Try taking out those 36 created effect-dummies, and see if the lag gets less. Or just take the optional parts out until you finde the one that causes the lag. |
| 08-14-2008, 07:18 PM | #9 |
In the new patch there was something that made the Shockwave abililty lag pretty much I think. Try to remove the nova-casting and see if it still lags. |
| 08-14-2008, 07:29 PM | #10 |
Leaks can lag the game up, that's true, but they don't do it when they first occur, but later when they have the time to build up. If your spell is when you cast it, that's not leaks, that's either too much graphical effects/terrain deformations or a code issue such as heavy calculations or many units being created, or both. |
| 08-14-2008, 07:36 PM | #11 |
I can't figure out why 2 hammers do occur! This trigger only create 1, where do other other be created from??? |
| 08-14-2008, 09:34 PM | #12 |
Perhaps it is part of the model itself...? |
