[REP++] Server Lag | Question - URGENT
#1

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.
Reply
#2

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.
Reply
#3

Profiler plugin report (i cutted from the photo only the higher values)

Could YSI affect this ? I am using the YSI 4.0 version.
Reply
#4

As much players join the server server tickrate goes under 100 , like 90-80-70-60-50 .. and so on..
Reply
#5

Idk, turn 0 into true perhaps..
Reply
#6

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 ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)