Ok so when many npcs are being murdered at once, mob/Del() is being called on all of them, and naturally it is laggy, because I am forcing the garbage collector to activate with each call or something.
But I recently read something that said if I remove all references to an object, then the garbage collector will get rid of it on its own, and that it is much less "laggy".
So does anyone know how to remove all references to an object? They said something about the tag variable but I'm not entirely sure what that has to do with anything.
Copyright © 2024 BYOND Software.
All rights reserved.
If you have any other objects that refer to the mob, it won't get cleaned up.
Basically, you have to really know what you're doing if you want to take advantage of the garbage collector.