SA-MP Forums Archive
PVars or regular memory? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PVars or regular memory? (/showthread.php?tid=206096)



PVars or regular memory? - Whizion - 03.01.2011

Which of the above is faster?

Thanks.


Re: PVars or regular memory? - admantis - 03.01.2011

PVars are slower than variables.


Re: PVars or regular memory? - Sky4D - 03.01.2011

Quote:
Originally Posted by admantis
Посмотреть сообщение
PVars are slower than variables.
I actually thought it was the other way around.


Re: PVars or regular memory? - admantis - 03.01.2011

Yes but it's just a fact of milliseconds, not really very important. Thought I dont use PVars, I heard their easier to use.

This forum requires that you wait 60 seconds between posts. Please try again in 10 seconds.
GTFO


Re: PVars or regular memory? - cessil - 03.01.2011

I prefer PVars, they're easier to use and less to worry about.
pawn Код:
SetPVarInt(playerid,"test",1);
printf("test: %d",GetPVarInt(playerid,"test"));
it still going to be really fast, you won't actually notice the difference


Re: PVars or regular memory? - Scenario - 03.01.2011

Variables are faster, but PVars are more memory efficient and seem easier to use.


Re: PVars or regular memory? - Tomejus - 03.01.2011

I prefer variables. PVars sucking for me.


Re: PVars or regular memory? - [L3th4l] - 03.01.2011

I only use PVars for cross scripts. I prefer normal variables


Re: PVars or regular memory? - Whizion - 03.01.2011

So... is there any meaningful difference in speed PVars vs. Variables?

Because my gamemode is 60% PVars and if their are slow, i would change them to normal ones.


Re: PVars or regular memory? - admantis - 03.01.2011

Quote:
Originally Posted by Whizion
Посмотреть сообщение
So... is there any meaningful difference in speed PVars vs. Variables?

Because my gamemode is 60% PVars and if their are slow, i would change them to normal ones.
The difference is very small, don't worry, there's no need