SetPVarInt/SetPVarString VS Enum/New variables
#1

Which one is the faster and takes low memory?
SetPVarInt/SetPVarString or Enums/New variables
Reply
#2

From a response I saw recently, normal variables take less memory and are faster. Difference is pvars just automatically reset on player disconnect meaning you don't manually have to do it.

Don't take my word for it though, just started scripting so unsure.
Reply
#3

Pvars can be accessed in any script. (you can use them in filterscripts and gamemodes where their values are globally same)

Variables are limited to the script only.

Pvars take more memory but speed is allright. You should concentrate on what you are using them for.
Reply
#4

Hm.. aight thanks for the information.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)