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

Upgrading buldings

Status
Not open for further replies.
Level 12
Joined
Apr 15, 2008
Messages
1,063
I have a little problem in my map: when i upgrade a building, it consumes about 1MB of memory. Since my map is based on upgrading buildings over and over, it has became an issue. I tried disabling all the triggers and the problem remains, so it not caused by leaks. Is it possible that it is caused by different pathing map/collision size/ or any other attribute of the two units?
 
Level 9
Joined
Oct 7, 2007
Messages
599
I have a little problem in my map: when i upgrade a building, it consumes about 1MB of memory. Since my map is based on upgrading buildings over and over, it has became an issue. I tried disabling all the triggers and the problem remains, so it not caused by leaks. Is it possible that it is caused by different pathing map/collision size/ or any other attribute of the two units?

Are you certain that it is consuming 1MB of memory every time? How are you getting this number?
 
Level 12
Joined
Apr 15, 2008
Messages
1,063
I read the values from Windows Task Manager. If i don't do anything, it stays at 105MB, when i upgrade building (without doing anything else) it goes up by 0.7-1MB. I tried exporting data to another map (free of triggers) and it still consumed the memory. I thought there may be some problem with pathing, because in another map i did, incredible lags were caused only by moving units with pathing maps.
What i actually wanted to know was which attributes should be same on both the original and upgraded unit.
 
Status
Not open for further replies.
Top