- Joined
- Mar 30, 2007
- Messages
- 26
I'm not good with solving memory leaks. Here's my prob.
I have these two triggers to spawn a group of units every 2 seconds, and order them to attack a random unit in a unit group. Of course, the game slows down considerably after a while (particularly, the game freezes for a split second every time more new units are spawned). How should I fix this?
Also on a side note: All the units spawned will have been destroyed after the above trigger is finished.
EDIT: Nevermind. It turns out I just had some invisible corpses. Problem fixed now
I have these two triggers to spawn a group of units every 2 seconds, and order them to attack a random unit in a unit group. Of course, the game slows down considerably after a while (particularly, the game freezes for a split second every time more new units are spawned). How should I fix this?
Also on a side note: All the units spawned will have been destroyed after the above trigger is finished.
EDIT: Nevermind. It turns out I just had some invisible corpses. Problem fixed now
Last edited: