Global variable limitations

Back to topics list To post a new topic, please log in or register
avatar
147
nondisclosure 2016.09.06 03:39
 

No problem with code or anything.  Just wondering here before I set off on an adventure (that will probably end in a horrific crash.  :)   )

Is there any hard and fast limitations on how many global variables that can be set? 

avatar
Moderator
3406
GumRai 2016.09.06 04:13 #
 

I don't know of any limitations.

When discussing global variables, please make it clear whether you are referring to globally declared variables or Global Variables of the client terminal.

avatar
147
nondisclosure 2016.09.06 23:52 #
 
GumRai:

I don't know of any limitations.

When discussing global variables, please make it clear whether you are referring to globally declared variables or Global Variables of the client terminal.

Good point.  Sorry.  I'm asking about the Global Variables of the client terminal.
avatar
Moderator
3406
GumRai 2016.09.07 03:19 #
 

I ran this in a script

  for(int x=0; x<10000; x++)
     GlobalVariableSet("GV"+IntegerToString(x),x);
  GlobalVariablesFlush();
  Print("Total GVs=",GlobalVariablesTotal());

It quite surprised me that it took 20 seconds to run the script, quite slow really.

Anyway, I got to over 120,000 GVs

Back to topics list  

To add comments, please log in or register