April 26, 2024, 07:21:55 PM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
IRC channel - server:
waelisch.de
channel:
#wme
(
read more
)
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Removing Global variables
« previous
next »
Pages: [
1
]
Print
Author
Topic: Removing Global variables (Read 2591 times)
0 Members and 1 Guest are viewing this topic.
eborr
Regular poster
Karma: 4
Offline
Posts: 196
Removing Global variables
«
on:
September 13, 2010, 10:52:23 AM »
With my usual rubbishy coding I have ended up with a load of gloabl variables, I understand that they can be set to null, but what if I want to remove them completely. I have tried Game.DeleteEntity and this does not work - any ideas ?
Logged
metamorphium
Global Moderator
Addicted to WME forum
Karma: 12
Offline
Gender:
Posts: 1511
Vampires!
Re: Removing Global variables
«
Reply #1 on:
September 13, 2010, 12:02:35 PM »
you can't do that and I see no reason why would you even want doing that.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet
eborr
Regular poster
Karma: 4
Offline
Posts: 196
Re: Removing Global variables
«
Reply #2 on:
September 13, 2010, 02:29:29 PM »
2 reasons, firstly the number of globals is cluttering up the code in the debugging window and secondly a large number of globals being carried in memory might have an adverse effect on performanace and loading/saving times
Logged
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Removing Global variables