OnPlayerUpdate performance question
#6

Quote:
Originally Posted by Kindred
Посмотреть сообщение
Yea, do what Steven82.

I personally recommend simply making a timer call ever, lets say, 5 seconds, if it only updates a few things.

I wouldn't recommend a SHITTON of variables in a timer every 5 seconds.

The way you are wanting to do this would cause quite alot of lag if there were a lot of variables that needed to be saved as-well as several players being online.
Sweet, thanks. I'll try it this way and then do some stress-tests

Note that the players aren't actually being saved though, it's just the variables are having updated values Performing that many SQL queries a second would be suicide, lol.
Reply


Messages In This Thread
OnPlayerUpdate performance question - by Derelict - 20.07.2012, 15:25
Re: OnPlayerUpdate performance question - by L.Hudson - 20.07.2012, 15:27
Re: OnPlayerUpdate performance question - by Steven82 - 20.07.2012, 15:28
Re: OnPlayerUpdate performance question - by Derelict - 20.07.2012, 15:30
Re: OnPlayerUpdate performance question - by Kindred - 20.07.2012, 15:31
Re: OnPlayerUpdate performance question - by Derelict - 20.07.2012, 15:32

Forum Jump:


Users browsing this thread: 2 Guest(s)