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)
+--- Thread: Timer (
/showthread.php?tid=619589)
Timer -
Edw - 19.10.2016
Hello!
Owning a server and when they reach 100 players made an appearance about the lag that's not too big but I have an idea but want to know your opinion and.
This lag is a timer that is used every seconds for everyone, but it sure is because I had in mind to do a timer for each player separately (ie they connect with SetTimerEx).
How about, I would eliminate lag? Or be the same work and consume more timers?
My guess is they would not be such as not to log all at the same time.
Excuse my english: D
Re: Timer -
SickAttack - 19.10.2016
Switch, it will surely be better.
Re: Timer -
Edw - 19.10.2016
Quote:
Originally Posted by SickAttack
Switch, it will surely be better.
|
Ok. Thank you for the answer
Re: Timer -
Correlli - 19.10.2016
Quote:
Originally Posted by Edw
Hello!
Owning a server and when they reach 100 players made an appearance about the lag that's not too big but I have an idea but want to know your opinion and.
This lag is a timer that is used every seconds for everyone, but it sure is because I had in mind to do a timer for each player separately (ie they connect with SetTimerEx).
How about, I would eliminate lag? Or be the same work and consume more timers?
My guess is they would not be such as not to log all at the same time.
Excuse my english: D
|
You don't want to do that mate - timer per player. Your server might die (i.e. crash) with 20 or more players, especially if you have a lot of code in the timer. Stick to global timer(s) in this case.
Re: Timer -
Edw - 19.10.2016
Quote:
Originally Posted by Correlli
You don't want to do that mate - timer per player. Your server might die (i.e. crash) with 20 or more players, especially if you have a lot of code in the timer. Stick to global timer(s) in this case.
|
However a try.
That stuff is not too loaded timer, are more checks, if it is in a location, variables decrease.