Lag: Difference between revisions

725 bytes added ,  11 months ago
CPU load issues part 1
(added packet loss issues section)
(CPU load issues part 1)
Line 50:
 
== CPU load issues ==
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 TPS:
 
== bug in mods ==