HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Delete global variables?

10-04-2011, 05:45 PM#1
rednek
Hi again after all these years folks :D
I wonder: is it possible to permanently delete an udg_variables I no longer need?
Just thought I might clean the RAM a bit and optimize the map this way :)

Is even possible somehow?
10-04-2011, 05:48 PM#2
Bribe
Well you can go into Object Manager, and delete unused variables.

Or are you talking about as time goes on?

If so, no, you can't delete globals in-game.
10-04-2011, 05:53 PM#3
rednek
Quote:
Originally Posted by Bribe
no, you can't delete globals in-game.
AAaaaaaw, that's exactly what I wanted :C
I didn't really think it possible myself but... Eh, perhaps anyone knows a way? :D
10-04-2011, 07:07 PM#4
Av3n
Use locals or array globals instead?

-Av3n
10-04-2011, 07:37 PM#5
Anitarf
Quote:
Originally Posted by rednek
Hi again after all these years folks :D
I wonder: is it possible to permanently delete an udg_variables I no longer need?
Just thought I might clean the RAM a bit and optimize the map this way :)
That is not possible and even if it were, the optimization would be insignificant. There are likely much more meaningful ways in which you can improve the performance of your map.
10-04-2011, 07:43 PM#6
rednek
Quote:
Originally Posted by Av3n
Use locals or array globals instead?
Already using both whenever possible
Quote:
Originally Posted by Anitarf
That is not possible and even if it were, the optimization would be insignificant.
Ok I get it this time.
Nevermind then, but thanks for the replies anyway!
10-04-2011, 10:34 PM#7
Tastingo
I think making the call to the function to delete the variable would overall be worse than just keeping it anyway.