saving all player stats timer. - 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: saving all player stats timer. (
/showthread.php?tid=192885)
saving all player stats timer. -
iggy1 - 24.11.2010
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
Re: saving all player stats timer. -
cessil - 24.11.2010
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.
Re: saving all player stats timer. -
iggy1 - 24.11.2010
I had a feeling that might be the case thanks for the reply cessil.