From 9bd18874a14774f2585955719b77f8894d6e6618 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lo=C3=AFc=20Blot?= Date: Thu, 17 Aug 2017 19:16:02 +0200 Subject: [PATCH] Reduce dedicated server step to 0.09 (#6252) Minetest performance improvement has been huge since months, server step reduction will permit to handle client events a little bit faster without too many penalty costs due to core engine --- builtin/settingtypes.txt | 2 +- minetest.conf.example | 2 +- src/defaultsettings.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt index 2ee8f5e2c..298e70669 100644 --- a/builtin/settingtypes.txt +++ b/builtin/settingtypes.txt @@ -1014,7 +1014,7 @@ max_objects_per_block (Maximum objects per block) int 64 sqlite_synchronous (Synchronous SQLite) enum 2 0,1,2 # Length of a server tick and the interval at which objects are generally updated over network. -dedicated_server_step (Dedicated server step) float 0.1 +dedicated_server_step (Dedicated server step) float 0.09 # Time in between active block management cycles active_block_mgmt_interval (Active Block Management interval) float 2.0 diff --git a/minetest.conf.example b/minetest.conf.example index f163965ba..8ad579b43 100644 --- a/minetest.conf.example +++ b/minetest.conf.example @@ -1241,7 +1241,7 @@ # Length of a server tick and the interval at which objects are generally updated over network. # type: float -# dedicated_server_step = 0.1 +# dedicated_server_step = 0.09 # Time in between active block management cycles # type: float diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp index 5bdb5e14c..5c797cf60 100644 --- a/src/defaultsettings.cpp +++ b/src/defaultsettings.cpp @@ -340,7 +340,7 @@ void set_default_settings(Settings *settings) settings->setDefault("chat_message_limit_trigger_kick", "50"); settings->setDefault("sqlite_synchronous", "2"); settings->setDefault("full_block_send_enable_min_time_from_building", "2.0"); - settings->setDefault("dedicated_server_step", "0.1"); + settings->setDefault("dedicated_server_step", "0.09"); settings->setDefault("active_block_mgmt_interval", "2.0"); settings->setDefault("abm_interval", "1.0"); settings->setDefault("nodetimer_interval", "0.2"); -- 2.25.1