Global Array or PVars
#5

PVars are slower than normal variables/arrays, but consume more memory depending on the operation, seeing as PVars do not allow you to allocate a static amount of memory.

Seeing as how 1 cell / a variable with only 1 cell consumes only 4 bytes of memory, I'd say that you're fine with either option, especially as PVars aren't that much slower.

PVars are also a lot more convenient as they reset when a player connects, but I personally use arrays/normal variables.
Reply


Messages In This Thread
Global Array or PVars - by anonymousx - 25.01.2011, 23:35
Re: Global Array or PVars - by Not available - 25.01.2011, 23:36
Re: Global Array or PVars - by Grim_ - 25.01.2011, 23:36
Re: Global Array or PVars - by iggy1 - 25.01.2011, 23:37
Re: Global Array or PVars - by Calgon - 25.01.2011, 23:38
Re: Global Array or PVars - by The_Moddler - 25.01.2011, 23:39
Re: Global Array or PVars - by [L3th4l] - 25.01.2011, 23:52
Re: Global Array or PVars - by Calgon - 25.01.2011, 23:55
Respuesta: Global Array or PVars - by anonymousx - 15.02.2011, 00:56
Re: Global Array or PVars - by Macluawn - 15.02.2011, 05:35

Forum Jump:


Users browsing this thread: 1 Guest(s)