SA-MP Forums Archive
Lag Fixing - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Lag Fixing (/showthread.php?tid=588288)



Lag Fixing - Flashhiee - 07.09.2015

Hello guys! My server is very laggy, and i'm thinking to use this method 'string = "\0";' for every each string. My question is: If i use this method i will reduce the lag? Or, if this is not properly please tell me a good method for solving the lag. Thanks!


Re: Lag Fixing - ][Noname][ - 07.09.2015

Quote:

If i use this method i will reduce the lag?

nope


Re: Lag Fixing - Bingo - 07.09.2015

Really depends on your host or your script, Maybe too much timers or maps may even cause lag, Too big huge logs also make lags if your host provides limited storage, Could be your timers so check try to clear out.


Re: Lag Fixing - Flashhiee - 07.09.2015

Quote:
Originally Posted by SPAWN_METAL
View Post
nope
ok...

Quote:
Originally Posted by Bingo
View Post
Really depends on your host or your script, Maybe too much timers or maps may even cause lag, Too big huge logs also make lags if your host provides limited storage, Could be your timers so check try to clear out.
Thanks for the answer! I will try to reduce timers.

Have someone more tips?


Re: Lag Fixing - ]Rafaellos[ - 07.09.2015

What kind of machine you are hosting on?


Re: Lag Fixing - Flashhiee - 07.09.2015

My server is hosted at a proffesional hosting service. (I think the best in Romania) Is not hosted in my computer or something.


Re: Lag Fixing - Michael B - 07.09.2015

Is it a shared host? What are its specifications?


Re: Lag Fixing - Flashhiee - 07.09.2015

I don't know the specs. I think they are not making them public.


Re: Lag Fixing - Michael B - 07.09.2015

What's the host's name? Why don't you go for a VPS instead?


Re: Lag Fixing - Flashhiee - 07.09.2015

Zero Ping is the host name.


Re: Lag Fixing - Michael B - 07.09.2015

It shouldn't lag. They have a good infrastructure. Probably is your gamemode which is poorly optimized.


Re : Lag Fixing - Hip-hop - 07.09.2015

Don't use OnPlayerUpdate

Quote:

This callback is called very frequently per second per player; only use it when you know what it's meant for (or more importantly what it's NOT meant for).
The frequency with which this callback is called for each player varies, depending on what the player is doing. Driving or shooting will trigger a lot more updates than idling.

https://sampwiki.blast.hk/wiki/OnPlayerUpdate


Re: Re : Lag Fixing - Flashhiee - 08.09.2015

Quote:
Originally Posted by Michael B
View Post
It shouldn't lag. They have a good infrastructure. Probably is your gamemode which is poorly optimized.
Yes, i know the have good services. I know the fact that my server is bad coded, and thats why i asked you guys for any ideeas to make it better.

Quote:
Originally Posted by Hip-hop
View Post
Don't use OnPlayerUpdate
Thanks for the tip! I will try to make some changes with information u gave me.