Reduce Server Lag ? - 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: Reduce Server Lag ? (
/showthread.php?tid=301250)
Reduce Server Lag ? -
park4bmx - 03.12.2011
ok so i started having a problem with my server when i made it
0.3d
and it keeps on restarting very oferten now i got like 14/16 players
using SerferFFS(will change)
what could cause the lag ?
timers
bim sure i killed them all after use
Audio Streaming ?
i have a /plaeyr cmd in the server to play some music
Speed Meter ?
speed meter is updated udenr OnPlayerUpdate
Re: Reduce Server Lag ? -
English-Conceptz - 03.12.2011
dont timers in general cause lots of lag ?
audio streaming wont do hardly any damage same for speedo
Re: Reduce Server Lag ? -
Ash. - 03.12.2011
Quote:
Originally Posted by English-Conceptz
dont timers in general cause lots of lag ?
audio streaming wont do hardly any damage same for speedo
|
The speedometer may cause problems as it is run in OnPlayerUpdate.
Try
benchmarking parts of your script, to see what is taking the most time to execute.
Re: Reduce Server Lag ? - [L3th4l] - 03.12.2011
That benchmark is nothing compared to using the "Profiler plugin" which will give you a full list of all process that the script runs + times it takes to execute each. So I HIGHLY suggest you to use the "Profiler Plugin" for a few hours running in your public server.