Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Global variables and Local Map variables.
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#5
RE: Global variables and Local Map variables.

I see, so global vars are re-declared every time the script is run, but local map vars are more like (if they aren't actually, though I don't have a very good knowledge of game scripting as a whole yet) private class variables for each map.

I feel like this could cause a memory leaks though. Are local map variables kept in memory every session (whether the player is in the map that uses them or not), or are the read/written to some save file somewhere or something and only loaded during loading screens when they're needed?

04-29-2012, 01:37 AM
Find


Messages In This Thread
RE: Global variables and Local Map variables. - by Homicide13 - 04-29-2012, 01:37 AM



Users browsing this thread: 1 Guest(s)