freeze 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: freeze lag (
/showthread.php?tid=644434)
freeze lag -
CodeStyle175 - 07.11.2017
What may cause freeze lag?
Re: freeze lag -
Aylan - 07.11.2017
If you are talking about lag spikes, they are caused by low FPS. Lag spikes mainly occur with low end PCs with low specs. The best way to solve it is by lowering your display settings (resolution, draw distance etc).
Re: freeze lag -
CodeStyle175 - 07.11.2017
Hmm no pc is top of the notch, i more mean serverside
Re: freeze lag -
Xeon™ - 07.11.2017
hug global timers/per player timers
or a huge usage of OPU (rarely)
but mostly big loops and hug timers
Re: freeze lag -
Aylan - 07.11.2017
Oh right, my mistake. Well if it's server-side it is mainly caused by excess use of callbacks like OnPlayerUpdate and from my experiences, timers and loops. There are cases where the script hasn't being optimised to the point where it has caused lag for players. Of course the main reason is most likely just inefficient code.
Don't forget that there are cases where your hosting service can be pretty bad too which can have a effect on your server. That is just something to take into consideration though.
Re: freeze lag -
CodeStyle175 - 07.11.2017
Its not that kind of lag, when some process is taking long time or so, but more like character or moving vehicle getting stuck for 0.1ms or so.