About Server Lag!
#1

server LAG has been caused by the host or is caused by script?
How to check ?
Reply
#2

server sided lag is caused by a bad script (therefore the scripts' bad optimisation) in 99%.
search for all player loops which contain a(nother, maybe recursive) loop. also avoid lots of trigonometric calculactions using floats, squareroots, sinus etc. avoid timers at all costs, they tend to collide. a bad stats-saving system (saving using d_ini or on a seconds basis). clear your onplayerupdate() callback, its the most often used callback...

there are a few plugins which can help you estimating the lag causer. th loadavg (cpu usage only usable in linux, but a server CP should show you the CPU usage anyways), and the best way to detect lag, is the Profiler plugin...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)