yourland-docs/en/books/tutorial-bookshelf/book_lagfixing.txt

45 lines
5.6 KiB
Plaintext

Title: Help Volume 9 (Lagfixing) V1.0.0
Content:
There are three types of lag. Serverlag, connectionlag, clientlag.
Serverlag
This type of lag happens, when there is more going on in the server than it can handle at the same time. Much like when you only have two hands, but someone wants you to handle three items at once.
There may be lagspikes or constant high lag. Lag spikes feel like everything suddenly locks up, even chat, then afterwards everything trying to catch up. This happens when a machine is turned on, a part of the map with many mobs is suddenly loaded or when a large tnt explosion occurs.
Constant high lag feels like stuttering chat and slowmotion mobs moving. Your own movement usually is not affected, but opening doors may take a while. This happens when a lot of mobs try to do things at once, someone operates too many machines or when many people explore undiscovered parts of the world.
You can help reduce lag by exploring the map at a slower pace, by not having all your machines run at once and by picking up your animals.
Other than that, you cannot do much about serverlag but complain to the staff. On yourland, you can do /lag to send us a lagreport or report what happened via /bug. Add a useful description, like /bug I felt lag when I did THIS while I was THERE. Sometimes you will see messages regarding lagreduction. Please observe their suggestions immediately. You can see the maximum server lag when you do /status
Connectionlag
This type of lag happens when the internet between your device and the server is slowed or interrupted. Imagine you try to shout your move to someone, but for some reason they can't hear you or understand only half of what you say and want you to repeat what you said. Your move will take longer or not happen at all.
When you press a button or craft an item, then this action is usually sent to the server in a network package. Those travel from your device to your local network, then to your internet connection provider, then over the internet until they reach the server. Packets from the server travel the same way in the opposite direction. Every part of this way may be obstructed.
You can see the connection lag in your minetest client if you press the F5 key. At the end of the first line you see a value like RTT. This value usually is in microseconds, the lower the better. A value of 500 ms means that your actions are delayed due to connectionlag for half a second. A value of 300 and less is acceptable. Watch the RTT for a bit while playing.
You do not have control over the part between the server and your router. But you can influence the connection between your router and your device. Most wonky connections can be traced back to unstable wifi connections. When in doubt, ping your router and ping the your land server at the same time and take a look at the difference. When there is a big difference in those two pingtimes, then the problem is out of your reach. When those two pingtimes are nearly the same, then you look at your local network and solve the problem.
When it comes to wifi, make sure there are few to none walls in between, that your neighbour doesn't run a wifi on the same channel and that you are not located in a blind spot. Look at the placement of the wifi antenna: What does the signal have to pass through to reach each other? Metal reflects and disperses a wifi signal, large bodies of water like a human body absorbs the signal. If you sit bet ween your wifi antenna and the router, then simply changing position may already help a lot.
On yourland, staff can take a look at more ping values, just ask them to run /pinfo on you.
Clientlag
This type of lag happens when your machine is busy. Imagine trying to view two movies at once while reading a book, you can't keep up with all of them at once.
The game will look like it jumps from screen to screen, as if you closed your eyes over and over again. It may even cause you nausea or dizziness, in this case please shut down the game to avoid worse conditions.
The good news is that this is entirely in your hands. You can upgrade your hardware or close down other applicatiosn to free up ressources for your minetest client. Search for the bottleneck in your machine, it may be an old aged grafics card, too few memory or an outdated CPU. You can use the task manager of your operation system to see what's going on. If your PC is not able to deliver enough screen updates (=frames), it is called FPS lag (FPS=frames per second). This is a grafics card problem.
You can see the FPS lag in your minetest client if you press the F5 key. At the second position you can see the FPS. Those can change wildly if you look in different directions or with different sight ranges. When there is a lot going on in the screen, then your grafics card mus work harder than when you stare into the void. When your sightrange is lower, your grafics card needs to work on less objects than with a high sightrange. If your minetest window is fullscreen on a large monitor, then more area must be displayed to you than when your game window is small. Some grafics settings in the minetest client also lead to more work for the grafics card. You can find those in the settings of minetest. If you watch a video on your second screen, if you have a second game open or do other grafics related stuff while playing minetest, this may also cause FPS lag.
If you have low FPS and cannot buy a stronger grafics card, you can close other applications and games, reduce grafics settings, reduce sightrange and reduce window size. And you can try to get out of areas were a lot is going on, like the major cities or the nether. If nothing helps, maybe it's time for a hardware upgrade.