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

I need help :)

Status
Not open for further replies.
Level 7
Joined
Sep 11, 2013
Messages
220
Ok, Im not sure if this is the right section to put it but... Here it is!

I have problems with leaks that make my maps lag. I have found ways to remove but I still dont understand some stuff.

1. Does moving a UNIT to position of UNIT offset by 30 towards facing ANGLE create a leak? Should I set the point into a VARIABLE?

2. I understand that creating special effects at a point would create leaks, but how about creating it on a UNIT? would it still create leaks?

3. Moving units to a REGION (Not a variable), would it create leaks?

4. Would adding ARRAYS to a VARIABLE decrease game speed? or increase file size?

5. Is there a way or tool that can convert all GUI triggers into JASS? to increase the space.

6. I have this special effect, it only animates when someone is viewing it, how to make it just animate even if no one views it? It is made out of particle emitters, i think...

Thats all, it would be great if anyone would be kind enough to answer my questions. :)
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
1. I think that would leak locations.
2. Regardless of where or on what, the special effect will use memory, you should destroy the effect after it is used.
4. No, IIRC, it would make it slower. I don't think it will increase the file size significantly.
5. GUI Triggers are really jass code, World Editor just uses a UI to interface with the user. If what you meant is optimized jass code, I think there isn't. You have to write it yourself.
 
Level 7
Joined
Sep 11, 2013
Messages
220
Thanks man xD, how about #3?
I tried this ability that creates a special effect on a target, not through triggers. It has no death animation, and it never gets removed. Does it decrease game speed? should I create special effects only through triggers?
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
I tried this ability that creates a special effect on a target, not through triggers. It has no death animation, and it never gets removed
If you don't spam those effects, it wouldn't lag.
should I create special effects only through triggers?
I think so, since you wouldn't need any object editor dependent stuff.
 
1) double leak: positin of unit + offset of position of unit

3) Yes this also leaks. You don't just move a unit to a region, actually you say "move unit to centre of region. Thats exactly the same as you move it to a specific point.

6) Idk but maybe wc3 just really animates it if this animation fits into the view of anyone to reduce senseless animations. (if noone is viewing it). Try it maybe via trigger to do unit's animation, but idk if this would work better. :p

But may I ask you how you know that it's not animating, when you don't see it?
 
Level 7
Joined
Sep 11, 2013
Messages
220
1) double leak: positin of unit + offset of position of unit

3) Yes this also leaks. You don't just move a unit to a region, actually you say "move unit to centre of region. Thats exactly the same as you move it to a specific point.

6) Idk but maybe wc3 just really animates it if this animation fits into the view of anyone to reduce senseless animations. (if noone is viewing it). Try it maybe via trigger to do unit's animation, but idk if this would work better. :p

But may I ask you how you know that it's not animating, when you don't see it?

Actually, its just a special effect, a steam, so its supposed to keep producing smoke, but when I look at it again, all the smoke is gone but it starts producing again. Thanks man xD
 
Status
Not open for further replies.
Top