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

Laaaaaaaag

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
There are a few leaks such as a location in Mine Copy. A example of a potentially big leak is fighter which leaks 2 locations and a rect (GUI region) every time the main action path runs. There are potentially others, with any leak that occurs frequently potentially helping towards poor late game performance.

GUI Replace Unit is used which leaks handle indices due to a game bug. Would have to be used thousands of times to make a difference though...

I would also suggest temporarily removing the Stealth System in case there are leaks or efficiency problems with it.
 
Level 14
Joined
Jul 2, 2015
Messages
878
There are a few leaks such as a location in Mine Copy. A example of a potentially big leak is fighter which leaks 2 locations and a rect (GUI region) every time the main action path runs. There are potentially others, with any leak that occurs frequently potentially helping towards poor late game performance.

GUI Replace Unit is used which leaks handle indices due to a game bug. Would have to be used thousands of times to make a difference though...

I would also suggest temporarily removing the Stealth System in case there are leaks or efficiency problems with it.
Mine Copy? and how do I fix leaks?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
Mine Copy?
Yes the trigger named that in your map.
and how do I fix leaks?
Pass the handle value of objects you create to the appropriate destructor functions after the object is no longer useful.

There are a lot of tutorials on eliminating leaks in Warcraft III triggers.
Things That Leak
Triggers - Memory Leaks and Custom Scripts
Short Tutorial: Avoiding "leaks" and making efficient triggers | Brigand's Haven

And many, many more seeing how it is one of the most common problems people have.
 
Status
Not open for further replies.
Top