SA-MP Forums Archive
[Profiler result] Gamemode is generating lags - 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: [Profiler result] Gamemode is generating lags (/showthread.php?tid=614872)



[Profiler result] Gamemode is generating lags - Amads - 14.08.2016

Hello everyone.
There's something wrong with the code in my gamemode, because sometimes (but not always) players experience massive lags with no connection to their ping. Sometimes the lag is so heavy they have to reconnect. It seems pretty random so I have no clue what I should be looking for. I've already checked all of the loops and timers and they're correct.

So, I've run the profiler plugin and got this result from 14 hours of running it, with 10-20 players online. Is there anything that could show me what is generating lags?

Any help much appreciated.


Re: [Profiler result] Gamemode is generating lags - Misiur - 14.08.2016

Quote:

public HPTextUpdate 2380124 14.49% 41.9

Can we see HPTextUpdate? I guess by public it's run on a timer, how often is it called?


Re: [Profiler result] Gamemode is generating lags - Vince - 14.08.2016

Please compile your scripts with full symbolic information; add the -d3 flag to a file called pawn.cfg in the Pawno folder. I don't know what unknown@0003e274 is and considering that it's being executed 10% of the time, it's quite significant.


Re: [Profiler result] Gamemode is generating lags - Amads - 14.08.2016

Yeah, I've already managed to fix HPTextUpdate so there's that.
However there is no pawn.cfg file in my Pawno folder.


Re: [Profiler result] Gamemode is generating lags - J0sh... - 14.08.2016

Quote:
Originally Posted by Amads
View Post
Yeah, I've already managed to fix HPTextUpdate so there's that.
However there is no pawn.cfg file in my Pawno folder.
Create one.