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

Leaks? please help!!

Status
Not open for further replies.
Level 4
Joined
Jul 25, 2007
Messages
71
Ive invested days upon days of my time into coding this map. Its an RPG. But not just a kill everything in sight rpg. There is some strategy involved. Its very personable. And the other day i made a minigame for it. But after someone does the mini-game, everyone starts to lag. Well, lag isnt the word. They start to delay a LOT. Like, they click attack, and 6 seconds later, their guy will go attack. My friends tell me its "memory leaks". I was wondering if they were fixable, and if anyone would be kind enough to assist me.
 
Level 8
Joined
Nov 9, 2008
Messages
502
Leaks are like the equavilent of weeds for a Gardener. No one likes de-weeding but they will choke your garden if you don't get em.

Can you guess I do some gardening? xD
 
Level 18
Joined
Mar 13, 2009
Messages
1,411
Maybe you have to preload your units and spells used in the mini-game.
This can be done by making a dummy unit with all abilities and placing all the units in a small region. Then at 0.00 seconds remove all those units in the region. This makes your map load the units during the loading screen.
 
Level 4
Joined
Jul 25, 2007
Messages
71
Nice, thanks. This method actually works!

I put the units randomly on the map, and when the time comes, instead of creating units, i just move(instantly) the unit, and it stops all forms of leakage.

+1
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
...... I think there is more leaks in your map than you would like to believe.
Remember that locations leak if you lose hold of them without removing them. Same with groups and most handles.

Also by the sounds of you getting delay, are probably leaking net-traffic not really that many objects. Basically avoid too many syncronized options.

Removing leaks and following that should remove all lag.
 
Status
Not open for further replies.
Top