[Anti-Leak] Do you always have to remove variables?

jayhant

New Member
Reaction score
0
Im wondering if you always have to remove your used variables to prevent leak/lag
I have a few variables that are used over and over again, should I remove them after very use or is it necessary?
 

Hatebreeder

So many apples
Reaction score
381
But carefull, everything that returns non-native types ( location, Ubersplat, ... ) will leak ( unless stored in a Variable. If thats the case and you use it over and over again, there is no need to clear it. However, once you use it and don't need it again, clear it ).
 

chobibo

Level 1 Crypt Lord
Reaction score
48
Handle type variables point to objects, the objects are the ones you destroy or remove. The issue with variables is that it interferes with the game engine's garbage collector, since it does not remove objects from memory when there is still a reference to it. To avoid memory leaks, set the handle variables (on all local variables) to null.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top