[REP++] Server Lag | Question - URGENT - 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: [REP++] Server Lag | Question - URGENT (
/showthread.php?tid=601978)
[REP++] Server Lag | Question - URGENT -
buburuzu19 - 29.02.2016
I am pretty sure that my server isn't lagging because of timers (i killed all timers with a command and same server ticks - 70 / 80) or mysql database, my server is lagging because something else and i can't figure it out?
What public functions can lag the server? At 500/500 i have 60-70 server ticks.
The only thing that i have at OnPlayerUpdate is this thing ( could this affect ? ) :
pawn Код:
if(gettime() > GetPVarInt(playerid, "TutTick") && GetPVarInt(playerid, "TutTick") != 0)
{
SetPVarInt(playerid, "TutTick", 0);
TutorialShow(playerid, GetPVarInt(playerid, "TutStep"));
}
Thanks.
Re: [REP++] Server Lag | Question - URGENT -
Vince - 29.02.2016
Do not use PVars unless you want to share variables between scripts. They are much slower than regular variables and I reckon they'd get even slower the more are added since the string lookup table would get bigger as well.
Also run profiler plugin.
Re: [REP++] Server Lag | Question - URGENT -
buburuzu19 - 01.03.2016
Profiler plugin report (i cutted from the photo only the higher values)
Could YSI affect this ? I am using the YSI 4.0 version.
Re: [REP++] Server Lag | Question - URGENT -
buburuzu19 - 01.03.2016
As much players join the server server tickrate goes under 100 , like 90-80-70-60-50 .. and so on..
Re: [REP++] Server Lag | Question - URGENT - Phar - 01.03.2016
Idk, turn 0 into true perhaps..
Re: [REP++] Server Lag | Question - URGENT -
buburuzu19 - 01.03.2016
Quote:
Originally Posted by Phar
Idk, turn 0 into true perhaps..
|
What do you mean? Can you give me an example of turn 0 into true ?