ServerBlockTicking: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 42: Line 42:


<!--T:7-->
<!--T:7-->
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 300ms the server ticks 16 blocks per chunk around the player. By default this is a 4 chunk radius (and 5 as of 1.20) including the chunk the player is currently standing in. That means each chunk ticks 3.3 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 3.3 times per second so it will take on average 2048/3.3=620.6 seconds for a block to tick.


== Configuration == <!--T:8-->
== Configuration == <!--T:8-->
Confirmedusers, Bureaucrats, editor, Administrators
1,795

edits