Does mysql debugging speeds down the server - 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)
+--- Thread: Does mysql debugging speeds down the server (
/showthread.php?tid=418902)
Does mysql debugging speeds down the server -
PaulDinam - 26.02.2013
Title says all.
Another question:
I have a timer which saves player stats every 20 mins.
it will slow down my server because there's a loop for saving each character
Re: Does mysql debugging speeds down the server -
Vince - 26.02.2013
Debugging won't slow the server as it's just a matter of putting a couple prints in a file. Further, if you are using threads then you shouldn't have problems. However, I would still advice to set a 20 minute per-player timer when a player connects, so all updates are more or less spaced. Don't forget to kill the timer on disconnect.
Re: Does mysql debugging speeds down the server -
PaulDinam - 26.02.2013
oh right, i'll just make a timer which starts when player logins.
lol when I just started to code, I forgot to killtimers on player disconnect and I was like wtf..