saving all player stats timer.
#1

Hi, so i know saving to file is pretty slow no matter what system you use (in comparason to alot of other things used in sa-mp scripting). So my question is this, if i had a high population and save all player stats in a single timer with a loop would that cause lag spikes on the server?

If so would i be better using SetTimerEx when a player connects so each player has an update timer of his own? or is that a bad idea?

Thanks in advance
Reply
#2

I use a timer when the player logs in to avoid having it save every ones data at the same time, I think it's best.
Reply
#3

I had a feeling that might be the case thanks for the reply cessil.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)