Curo
Why am I still playing this game...?
- Reaction score
- 109
Well if it's looping (WE bug) probably then you have no other choice except for creating some kind of wait or using some kind of timer.
I highly doubt it is a WE bug. Must be something in his coding.
Hmm... Seems like it fixed itself . The trigger doesn't loop anymore I just deleted and added Order unit to stop between pause/unpause unit.
Then your trigger was probably looping because you had a faulty event. When the unit was ordered to stop, the event fired.
Oh, and removing units DOES leak. Looks like it's more of a graphical leak rather than a memory leak.
This is very simple to check.
Create a trigger that runs every 1 second and creates 1 invisible dummy unit at some point (lets assume that the point leak is removed in this trigger), waits 0.5 and removes it from the game with the Unit - Remove Unit action. Or you can just use an expiration timer.
You will see that after some time your fps will go down. But you won't see ANYTHING on the screen as the unit is invisible (and it's removed anyway). On my PC (kind of an old PC, but not too old) the fps loss from a single dummy unit is 0.05-0.1 fps.
I think there's nothing that can be done about this. WC3 garbage collector must suck.
You may be right in some technical aspect, but I made an inquiry here about units leaking. They only seem to create a leak if there is a variable pointing to them.
I understand what you are saying about "graphical leaks" though, but I would like a reputable person to varify that (ty Darthfett). As far as I am concerned, after a unit is removed, there shouldn't be any graphical reference to it.