Game mode Role Play lag -
Semedo - 02.03.2014
hello
I open my server and in 5 minutes i have in server 15/20 players and when this happened the server was full of lag.
I know it's not the machine, I have a good machine and host, someone can tell me what script or function can cause this lag?
I need help fast
Re: Game mode Role Play lag -
Mike.FTW - 02.03.2014
If you say the host is good, then your code is the problem. Read this to see how to improve it performance:
https://sampforum.blast.hk/showthread.php?tid=57018 (At "Memory reduction", "String optimisation", "CPU vs Memory" and "Minor optimisations" (Ctrl + F to find them quicker).
https://sampforum.blast.hk/showthread.php?tid=486877
From what i know big foreach loops, long lenght strings, timers and Public OnPlayerUpdate make some useless memory usage / lag if you use them wrong / in execs. For exemple if you do a loop for all players that server can have(MAX_PLAYERS) at a function called every secound or lower will result in big lag.
And make sure there was no flood.
Re: Game mode Role Play lag -
SupaVZ - 02.03.2014
Okay, what kind of lag? is it command lag I.E /help *5 seconds after* it shows? or is it a position in a map where say you walk to and you *FPS* lags?
Re: Game mode Role Play lag -
Semedo - 02.03.2014
Ok thanks for help yes host is good the problem is i dont find out where this error
Re: Game mode Role Play lag -
Semedo - 02.03.2014
dean lag is players enter 10 server goods 15/20 mapping disappears and you dont move
Re: Game mode Role Play lag -
SupaVZ - 02.03.2014
Okay, it got be multiple things.. have you updated your streamer plugins?, and when you compile the script dose it give you any errors, as *any* host box should be able to handle the playerbase you are saying here.
Re: Game mode Role Play lag -
Semedo - 02.03.2014
Yes i updated all plugins
Re: Game mode Role Play lag -
SupaVZ - 02.03.2014
dose your script compile without any warnings
Re: Game mode Role Play lag -
Semedo - 02.03.2014
yes dont have erros in compile
Re: Game mode Role Play lag -
SupaVZ - 02.03.2014
um, the only thing it could be is something in the plugins or you may have to many objects for your streamer plugin you are using so maybe /change/streamer plugins.