• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] Player Group leaks

Status
Not open for further replies.

SpasMaster

Hosted Project: SC
Level 25
Joined
Jan 29, 2010
Messages
2,018

Sunken City

Hello Hive!

I have a question regarding a specific memory leak: the Player Group leak, that is cleaned with Custom script: call DestroyForce(udg_PlayerGroup)
I was surprised that I never knew these leak, so my question is what is their significance? Are they equally bad as the other leaks such as location and unit group leaks? I just need a bit of information regarding this type of leaks. Thanks!
 
PlayerGroups (aka Forces) can leak momory just like other handles can.
UnitGroup leaks may maybe be a worse leak in some case, if there is a difference
it's not important to know exact numbers. One just should know that they should be prevented.

I suggest reading this, the parts you are interested in: https://www.hiveworkshop.com/threads/memory-leaks.263410/post-2661133
 
Force leaks are slightly worse than location leaks but better than group leaks. Group leaks can contain several dozen units, while forces are limited to at most 16. Locations should not have dynamic sizes so should be the smallest.

As far as which usually causes the most damage it is group followed by location then force. Forces are seldom created in comparison to the other two.

Leaks will usually render a map unplayable (<1 FPS) long before the game crashes. There are a few exceptions where finite resources are depleted. An example is units and destructibles which will crash the game after ~40,000-60,000 are present on the map.
 
Status
Not open for further replies.
Back
Top