Posts: 887
Threads: 251
Joined: Jun 2011
Reputation:
0
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
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
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.
Posts: 887
Threads: 251
Joined: Jun 2011
Reputation:
0
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..