20.07.2010, 03:01
Oi, you actually did benchmark it - nice, anyways yeah PVars aren't meant to be faster, but it gives a better overview plus is tons easier to work with than variables, don't have to reset them, AMX size gets smaller, less memory usage and you gotta put some serious effort into getting SetPVarString to crash the GM for overflow/OOB.
Anyways there are cases I'd use PVar over variables to speed up, like when you'd have to do IsPlayerConnected() as well as using the variable it'd be just as fast or even faster getting the PVar as that would both check that he's still connected and get what you're looking for.
Great work tho, I love it when people actually benchmark their code! Thumbs up
Anyways there are cases I'd use PVar over variables to speed up, like when you'd have to do IsPlayerConnected() as well as using the variable it'd be just as fast or even faster getting the PVar as that would both check that he's still connected and get what you're looking for.
Great work tho, I love it when people actually benchmark their code! Thumbs up
![Smiley](images/smilies/smile.png)