SA-MP Forums Archive
How you can found out what make lagg/delay? - 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: How you can found out what make lagg/delay? (/showthread.php?tid=583737)



How you can found out what make lagg/delay? - Metharon - 30.07.2015

I'm trying to find out what makes lagg on my server.... i mean sometimes when i'm using a command it takes a little delay ? 1 second , 2 ? .....

- All mysql are only on player disconnect.
timers

Код:
	SetTimer("SyncUp", 60000, 1);
	SetTimer("OtherChecks", 1000, 1);
	SetTimer("ReduceGas", 30000, 1);
 	SetTimer("ImproveKM", 25000, 1);
 	SetTimer("Hunger", 60000, 1);
        SetTimer("StoppedVehicle", RunOutTime, 1);
Update deleted old timers , useless timers

pawn Код:
SetTimer("SyncUp", 60000, 1);
    SetTimer("OtherChecks", 1500, 1);
    SetTimer("ReduceGas", 30000, 1);
..


Re: How you can found out what make lagg/delay? - Vince - 30.07.2015

Run profiler plugin for a few hours during heavy load.