Basics Understanding Ping and Lag
In this thread I would like to explain what ping is, and what is really causing the current lag on the server. Why am I doing this? To stop people from asking when the host will be changed, because this isn't the HOSTS fault.
Ping
Ping is a tool to measure how how long it takes for the server to send you a package(some data) and come back.Ping is measured in milliseconds, meaning if you have 98 ping it took 98 milliseconds to send the package to you and back.
Higher the ping, the more the game lags for you, especially sync wise more than chat lag(unless your ping is like 500).
What causes high ping? Well there can be more reasons, but the main two I can think of is your ISP being SHIT, and/or you are far away from the host.
Server Lag
Most people think the current server lag is caused due to the HOST, and them being far from the host so their ping is high. No this not true, the problem is the script.
Okay so what you need to understand first is SAMP is single threaded. Single threaded means it executes one command(I don't mean player commands) at a time. For example, if player 1 types a /me, and player 2 types a /me a millisecond later, player 2 will have to wait until the first /me is executed. Now a /me command takes less than a second to execute, so that's not the problem right now.
The biggest issue we have is loops. For example, "OnPlayerUpdate" is called MANY times per second. So think of this, if OnPlayerUpdate gets called right before you say something in the chat, your message won't be executed until OnPlayerUpdate is.
What does this mean? Nothing usually, probably a split second most of the time. But if the there are many functions under OnPlayerUpdate it will take longer, especially with over a 100 players. Why? Because the more players, the more time it takes to loop through them.
Another problem is strcmp, a so called "command processor". The original GF script uses strcmp, which SARP is based off of, so unless every single command was changed, we still use strcmp. What is the problem? Strcmp is much slower than other newer command processors, as it is not meant to be a command processor. Strcmp is simply a function that compares strings, but in the old days of SAMP they didn't know better so they used it as command processor. Which was fine back then, as scripts weren't complex and complicated, but as times goes by,scripts get bigger and more complex.
Conclusion
It is a bit complicated to understand, but I hope people get what I was trying to say here. So now that I've explained this, I hope you will already shut up about the host.
Also, I'd really like to thank the admin and development team for admitting that this is a script problem and not the host. I also know that they are working hard to get this fixed.