Lag: Difference between revisions

29 bytes added ,  10 months ago
justify text
(justify text)
Line 56:
 
== CPU load issues ==
<div align="justify">
The CPU load on the server can be responsible for some latency. To understand it, let's talk about the unit time used internally by Minecraft: the tick. The game is designed in such way that 1 second corresponds to 20 ticks. So a tick is corresponding to 0.05s, or 50 ms. So each tick cycle, the game computes what needs to be computed within those 50ms. If it is faster than 50 ms, the game will idle until it reaches 50 ms. What's annoying is when the game needs to compute during more than 50ms to finish the tick. It causes the game to run less ticks per second (TPS). This is an handy metric to discuss the lag of the server, but practically the tick time is measured in ms, then a formula is used to convert it in term of TPS:
 
Line 61 ⟶ 62:
 
So even with the best connection in the world, if your server is slowing down, you'll feel the lag. For large packs such as GT:NH, lag is unavoidable, the more you progress, the more you need to learn about tricks to avoid lag. Devs do what they can to mitigate the issue, but it's not easy to just get rid of the unnecessary CPU load.
</div>
 
== Bugs ==