Lag Fixing
#1

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

Quote:

If i use this method i will reduce the lag?

nope
Reply
#3

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

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

What kind of machine you are hosting on?
Reply
#6

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

Is it a shared host? What are its specifications?
Reply
#8

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

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

Zero Ping is the host name.
Reply
#11

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)