SA-MP Forums Archive
LAGS in server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Client Support (https://sampforum.blast.hk/forumdisplay.php?fid=16)
+--- Thread: LAGS in server (/showthread.php?tid=263094)



LAGS in server - Amine_Mejrhirrou - 20.06.2011

Well my server is hosted by a good host
some time some players lags ! not all the players only few of them !
(to know if they are lagging i slap them for test ! but nothing hapen or they get slaped 10 seconds after ! i'm sue that's com from the GM / FS but i have know idea to know what FS make them lag
to fix they're lag they must relog
well any suggestion to fix that


Re: LAGS in server - XFlawless - 20.06.2011

It could be due to inefficient scripting/timers.


Re : Re: LAGS in server - Amine_Mejrhirrou - 20.06.2011

Quote:
Originally Posted by XFlawless
Посмотреть сообщение
It could be due to inefficient scripting/timers.
timer ...
i have about 7 timer !
2 of them workevery time
4 of them work only when you type a command
the other one detect if a player is on OPTION menu
and a last one is anti Cheat !
is that too much ?


Re: LAGS in server - Kitten - 20.06.2011

anything OnPlayerUpdate Callback?


Re : Re: LAGS in server - Amine_Mejrhirrou - 20.06.2011

Quote:
Originally Posted by Kitten
Посмотреть сообщение
anything OnPlayerUpdate Callback?
yes ! i use a fader(text drawn) system ! (actually i'm deleting a lot of timer ! and the fader system too i don't know if this will avoid the lags)


Re: LAGS in server - XFlawless - 21.06.2011

Use foreach and Y_Timers. It will definitely reduce some amount of lag.