About Server Lag!
#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


Messages In This Thread
About Server Lag! - by dud - 19.02.2012, 10:43
Re: About Server Lag! - by Babul - 19.02.2012, 11:28

Forum Jump:


Users browsing this thread: 2 Guest(s)