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

nulling stuff (summoning deathismyfriend)

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,765
You should null anything that

1) Isn't a real, integer, string, or boolean
2) Isn't a global variable (If you use GUI, everything is global so your good)

though you do have to forcefully remove locations and player forces
 
Level 6
Joined
Jul 21, 2011
Messages
139
no one can confirm if vexorian auto nulls stuff?

another thing, is there something that would make maps lag that handlecounters dont detect?
 
Level 6
Joined
Jul 21, 2011
Messages
139
so terrain deformations dont leak? im testing with the handlecounter, triggered deformations dont leak, the skills from mountain king and tauren chief dont either, (i also read that somewhere)
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
so terrain deformations dont leak? im testing with the handlecounter, triggered deformations dont leak, the skills from mountain king and tauren chief dont either, (i also read that somewhere)

war stomp, shockwave, and any variable of type terraindeformation leak.
 
Level 6
Joined
Jul 21, 2011
Messages
139
how hard does it leak? because 1-2 points increase in the handlecounter for everytime its used is nothing

i mean it could be used to add spells more eye candy at a very cheap cost i think the same as creating 1 single unit

Arhowk, the stun of the tauren and the aoe damage from mountain king added 0 to the handlecounter
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
I think, but am not completly sure, that Terrain Deformation can desync if for instance you start terrain deformation and when its deforming the terrain, you try to take the Z coord of the point and use it.

Thats caused, because Z coordination ignores anything that cant be seen, so it takes the height you can see with fogs on, and so the height may be different for each player
 
Level 6
Joined
Jul 21, 2011
Messages
139
Leaks caused outside the JASS level can not be caught by a handlecounter.
Terrain deformations leak in the game itself, not in the script.

no idea what you are talking about but, how hard does 1 terrain deformation leak? should we add this thing to our spells for eye candy?

about the sync thing...ive seen terrain deformation in maps without desyncs so i dont worry about that
 
no idea what you are talking about but, how hard does 1 terrain deformation leak? should we add this thing to our spells for eye candy?
You can, but should only do that for spells that are not used frequently.
Boss spells should be fine, for example.

about the sync thing...ive seen terrain deformation in maps without desyncs so i dont worry about that
It depends on wether you use z-coordinates somewhere.
 
Terrain deformations have a separate handle count. Basically any handle you create will remain in memory until removed or destroyed. Some don't have destroy/remove functions (such as trackables or terrain deformations--they stay in memory for the entire map's length).

A few handles are not tracked on the regular handle stack, and therefore they won't show up on the handle count. This includes text tags, weather effects, lightning, and a few others.

All in all, just make sure you check your triggers. A lot of fps lag is just because of graphic strain (particle-intense effects, many units, etc.). It won't necessarily be because of leaks. The handle count method is a good way to check for leaks, but it won't always show you what you want, especially because of the way the handle stack behaves. Just leak-proof your triggers and you should be fine. 1000 or 2000 leaks won't make significant performance hit on your map (unless perhaps it occurs all at once, but it will be just a quick lag spike), so remember that you have leeway.
 
Status
Not open for further replies.
Top