- Joined
- Mar 27, 2008
- Messages
- 8,035
Is it the new style of coding in Warcraft III that we have to remove unit once we're done with it ?
I see many new users do this, especially dummies.
Usually I just kill the dummy and remove it from Unit Group, but now I see people kill it then remove from group AND remove it from the map (RemoveUnit).
Is it really does affect your game performance if we don't remove the unit (just kill it) ?
The thing is, I am making my dummy to move (missile) from Point A to Point B.
Once it reaches Point B, it's suppose to play its death animation (kill - by default, will play its death animation).
So, by removing that unit, I can't see the animation any longer and I don't want to create a more advance system just to handle this animation.
That's why I opened this thread, to ask if the RemoveUnit function to dummy unit does has big impact on the game performance.
If you give your opinion, please prove with some experiments and benchmarking, don't simply put words, thank you.
I see many new users do this, especially dummies.
Usually I just kill the dummy and remove it from Unit Group, but now I see people kill it then remove from group AND remove it from the map (RemoveUnit).
Is it really does affect your game performance if we don't remove the unit (just kill it) ?
The thing is, I am making my dummy to move (missile) from Point A to Point B.
Once it reaches Point B, it's suppose to play its death animation (kill - by default, will play its death animation).
So, by removing that unit, I can't see the animation any longer and I don't want to create a more advance system just to handle this animation.
That's why I opened this thread, to ask if the RemoveUnit function to dummy unit does has big impact on the game performance.
If you give your opinion, please prove with some experiments and benchmarking, don't simply put words, thank you.