File tree 3 files changed +11
-1
lines changed
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -849,6 +849,13 @@ liquid_queue_purge_time (Liquid queue purge time) int 0
849
849
# Liquid update interval in seconds.
850
850
liquid_update (Liquid update tick) float 1.0
851
851
852
+ # At this distance the server will aggressively optimize which blocks are sent to clients.
853
+ # Small values potentially improve performance a lot, at the expense of visible rendering glitches.
854
+ # (some blocks will not be rendered under water and in caves, as well as sometimes on land)
855
+ # Setting this to a value greater than max_block_send_distance disables this optimization.
856
+ # Stated in mapblocks (16 nodes)
857
+ block_send_optimize_distance (block send optimize distance) int 4 2
858
+
852
859
[*Mapgen]
853
860
854
861
# Name of map generator to be used when creating a new world.
Original file line number Diff line number Diff line change @@ -174,6 +174,8 @@ void RemoteClient::GetNextBlocks (
174
174
s32 new_nearest_unsent_d = -1 ;
175
175
176
176
const s16 full_d_max = g_settings->getS16 (" max_block_send_distance" );
177
+ const s16 d_opt = g_settings->getS16 (" block_send_optimize_distance" );
178
+
177
179
s16 d_max = full_d_max;
178
180
s16 d_max_gen = g_settings->getS16 (" max_block_generate_distance" );
179
181
@@ -300,7 +302,7 @@ void RemoteClient::GetNextBlocks (
300
302
Block is near ground level if night-time mesh
301
303
differs from day-time mesh.
302
304
*/
303
- if (d >= 4 )
305
+ if (d >= d_opt )
304
306
{
305
307
if (block->getDayNightDiff () == false )
306
308
continue ;
Original file line number Diff line number Diff line change @@ -279,6 +279,7 @@ void set_default_settings(Settings *settings)
279
279
settings->setDefault (" max_simultaneous_block_sends_server_total" , " 40" );
280
280
settings->setDefault (" max_block_send_distance" , " 9" );
281
281
settings->setDefault (" max_block_generate_distance" , " 7" );
282
+ settings->setDefault (" block_send_optimize_distance" , " 4" );
282
283
settings->setDefault (" max_clearobjects_extra_loaded_blocks" , " 4096" );
283
284
settings->setDefault (" time_send_interval" , " 5" );
284
285
settings->setDefault (" time_speed" , " 72" );
You can’t perform that action at this time.
0 commit comments