ServerBlockTicking/ru: Difference between revisions

From Vintage Story Wiki
Created page with "== Сколько времени это займет == Поскольку блоки тикают случайным образом, не совсем ясно, скольк..."
(Created page with "{| class="wikitable sortable" |- ! Блокировать ! Поведение ! Условие ! Вероятность |- | Почва | Растет на 1 эт...")
(Created page with "== Сколько времени это займет == Поскольку блоки тикают случайным образом, не совсем ясно, скольк...")
Line 33: Line 33:
|}
|}


== How long does it take ==
== Сколько времени это займет ==
Since blocks tick at random it's not entirely deterministic how long it will take for a block to receive a tick. However, here is some information to predict about when it should tick.  
Поскольку блоки тикают случайным образом, не совсем ясно, сколько времени потребуется блоку, чтобы получить тик. Тем не менее, вот некоторая информация, чтобы предсказать, когда он должен тикать.  


Every 50ms the server ticks chunks around the player. By default this is a 3 chunk radius including the chunk the player is currently standing in. That means each chunk ticks 20 times per second. Each tick loop, 16 blocks will be ticked. There are 32,768 blocks in a chunk. So that means there is a probability of 16/32768=0.00048828125 of ticking each time or 1/2048. So it will take on average 2048 tick loops for a particular block to tick. Blocks are ticked 20 times per second so it will take on average 2048/20=102.4 seconds for a block to tick.  
Every 50ms the server ticks chunks around the player. By default this is a 3 chunk radius including the chunk the player is currently standing in. That means each chunk ticks 20 times per second. Each tick loop, 16 blocks will be ticked. There are 32,768 blocks in a chunk. So that means there is a probability of 16/32768=0.00048828125 of ticking each time or 1/2048. So it will take on average 2048 tick loops for a particular block to tick. Blocks are ticked 20 times per second so it will take on average 2048/20=102.4 seconds for a block to tick.  
Confirmedusers
13,514

edits