Game mode Role Play lag
#1

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

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

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

Ok thanks for help yes host is good the problem is i dont find out where this error
Reply
#5

dean lag is players enter 10 server goods 15/20 mapping disappears and you dont move
Reply
#6

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

Yes i updated all plugins
Reply
#8

dose your script compile without any warnings
Reply
#9

yes dont have erros in compile
Reply
#10

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


Forum Jump:


Users browsing this thread: 3 Guest(s)