Server Lagging Issue. -
bugmenotlol - 16.09.2017
Nowadays my server is lagging when there are more players online.
so i took a step to optimize it.
What are the basic things i should remember to optimize and make the server to get a better perfomance...
I had heard somewhere that this function :
PHP код:
public OnPlayerSpawn(playerid)
{
foreach(new i : Player)
{
// procedure or messages
}
return 1;
}
This will make any problem and i have many lines or declaration like
Any help is appreciated
Sorry for bad English
I will ++ Rep for who will help me.
Re: Server Lagging Issue. -
bugmenotlol - 16.09.2017
Update :
I had used profiler plugin in ma localhost and got this result:
and i dont have any idea about it
Re: Server Lagging Issue. -
Fungi - 16.09.2017
from the provided information and code we cannot help
u could use this to get more info from profiler
http://forum.sa-mp.com/showpost.php?...32&postcount=7
Re: Server Lagging Issue. -
Sew_Sumi - 16.09.2017
Quote:
Originally Posted by Fungi
|
Are you even sure that you're in the right thread? This isn't about CrashDetect...
OP, have you got a severe amount of mapping in your server?
There are other things that can cause 'lag' as such, is there anything in your logs that turn up when it is actually lagging?
Re: Server Lagging Issue. -
Fungi - 16.09.2017
Quote:
Originally Posted by Sew_Sumi
Are you even sure that you're in the right thread? This isn't about CrashDetect...
|
using (-d3) works with profiler too
http://forum.sa-mp.com/showpost.php?...&postcount=115
https://sampforum.blast.hk/showthread.php?tid=271129&page=12
Re: Server Lagging Issue. -
Sew_Sumi - 16.09.2017
Quote:
Originally Posted by Fungi
|
Should quote that then rather than throwing up unrelated quotes...
My statement still stands as well, the logs should reveal something, even something that could be disregarded, can still show a problem that is elsewhere.
Re: Server Lagging Issue. -
bugmenotlol - 16.09.2017
yeah i have got some warnings on log tht
Sscanf Warning : Stack Buffer overflow ... something like tht but i dont get in which command its happening
Re: Server Lagging Issue. -
Sew_Sumi - 16.09.2017
Quote:
Originally Posted by bugmenotlol
yeah i have got some warnings on log tht
Sscanf Warning : Stack Buffer overflow ... something like tht but i dont get in which command its happening
|
Chances are those errors, whilst they may relate to other things, could be signs that there are larger bugs in your script that you've missed.
Re: Server Lagging Issue. -
bugmenotlol - 16.09.2017
Quote:
Originally Posted by Sew_Sumi
Chances are those errors, whilst they may relate to other things, could be signs that there are larger bugs in your script that you've missed.
|
can u fix it for me plZ
i will send the script
Re: Server Lagging Issue. -
Fungi - 16.09.2017
Quote:
Originally Posted by Sew_Sumi
Should quote that then rather than throwing up unrelated quotes...
My statement still stands as well, the logs should reveal something, even something that could be disregarded, can still show a problem that is elsewhere.
|
he just said my server lags. and nothing else. there are a million reasons why a server could lag. are you gonna just guess why his server lag without knowing anything? stop trying be a smartass i just wanted to show him how to get more information from profiler plugin instead of "unknown functions" that i see in his html. im not throwing unrelated statements