Player Stats Auto Save
#1

Would it cause lag if i set a timer to auto save player states every 1 second?
Reply
#2

Probably. Maybe not with 1-2 or even 5-10 players. But SA-MP supports 500
With 10+ players it isn't probably the best idea.
Reply
#3

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.
Reply
#4

Yea thats what i was thinking
Reply
#5

I tried it once, it lagged like hell.
Reply
#6

Quote:
Originally Posted by TheHoodRat
Посмотреть сообщение
I tried it once, it lagged like hell.
Lol maybe i should change to every 10 minutes or something idk? I never did it.


Offtopic:

Whats EC-RP?
Reply
#7

Quote:
Originally Posted by Steven82
Посмотреть сообщение
Lol maybe i should change to every 10 minutes or something idk? I never did it.


Offtopic:

Whats EC-RP?
It's a roleplay script that had 6000 lines, but I accidentally overwritten the file, so I'm starting all over.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)