ServerBlockTicking: Difference between revisions

From Vintage Story Wiki
no edit summary
m (Added game navbox and removed mod navbox.)
No edit summary
Line 5: Line 5:


== General == <!--T:2-->
== General == <!--T:2-->
By default the server randomly ticks blocks throughout the world every 50ms. It ticks a chunk radius around the player. For each chunk, 16 blocks are sampled at random. Each block is asked whether it would like to receive a game tick. If it says "yes", then a block location will be queued for ticking. Each block decides what happens when it receives a tick and this is different for every block. Most blocks don't receive ticks. Below is a summary of each block that receives ticks and what they do.
By default the server randomly ticks blocks throughout the world every 300ms (serverconfig value BlockTickInterval). It ticks a chunk radius (serverconfig value BlockTickChunkRange) around the player. For each chunk, 16 blocks (serverconfig value RandomBlockTicksPerChunk) are sampled at random. Each block is asked whether it would like to receive a game tick. If it says "yes", then a block location will be queued for ticking. Each block decides what happens when it receives a tick and this is different for every block. Below is a summary of each block that receives ticks and what they do.


<!--T:3-->
<!--T:3-->
This is not to be confused with the general server tick rate of 33.33ms.
This is not to be confused with the general server tick rate of 33.33ms (serverconfig value TickTime).


== Blocks that tick == <!--T:4-->
== Blocks that tick == <!--T:4-->
Confirmedusers, Bureaucrats, editor, Administrators
1,793

edits