mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Allow cheaper culling checks at a distance (#14073)
* Allow cheaper culling checks at a distance * Pick a random ray, so that far missing block will eventually be shown
This commit is contained in:
parent
16c22477c2
commit
ca1a723890
6 changed files with 25 additions and 5 deletions
|
@ -2061,8 +2061,8 @@ liquid_update (Liquid update tick) float 1.0 0.001
|
|||
# as well as sometimes on land).
|
||||
# Setting this to a value greater than max_block_send_distance disables this
|
||||
# optimization.
|
||||
# Stated in mapblocks (16 nodes).
|
||||
block_send_optimize_distance (Block send optimize distance) int 4 2 32767
|
||||
# Stated in MapBlocks (16 nodes).
|
||||
block_send_optimize_distance (Block send optimize distance) int 4 2 2047
|
||||
|
||||
# If enabled, the server will perform map block occlusion culling based on
|
||||
# on the eye position of the player. This can reduce the number of blocks
|
||||
|
@ -2070,6 +2070,13 @@ block_send_optimize_distance (Block send optimize distance) int 4 2 32767
|
|||
# invisible blocks, so that the utility of noclip mode is reduced.
|
||||
server_side_occlusion_culling (Server-side occlusion culling) bool true
|
||||
|
||||
# At this distance the server will perform a simpler and cheaper occlusion check.
|
||||
# Smaller values potentially improve performance, at the expense of temporarily visible
|
||||
# rendering glitches (missing blocks).
|
||||
# This is especially useful for very large viewing range (upwards of 500).
|
||||
# Stated in MapBlocks (16 nodes).
|
||||
block_cull_optimize_distance (Block cull optimize distance) int 20 2 2047
|
||||
|
||||
[**Mapgen]
|
||||
|
||||
# Size of mapchunks generated by mapgen, stated in mapblocks (16 nodes).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue