Posts: 2,431
Threads: 86
Joined: Nov 2009
Reputation:
0
Would it cause lag if i set a timer to auto save player states every 1 second?
Posts: 12
Threads: 3
Joined: Nov 2010
It all depends on what format of file saving you are using. For example if you were saving the players statistics to their user file ever second that's going to cause a high CPU usage due to the constant file writing. And saving them via MySQL is going to cause adverse effect on your CPU usage too if your running a query every second. It isn't advisable to save the statistics every 1 second.
Posts: 180
Threads: 20
Joined: May 2010
Reputation:
0
I tried it once, it lagged like hell.