]> git.lizzy.rs Git - minetest.git/commitdiff
Change default nodetimer_interval to 0.2s. (#5193)
authorAuke Kok <sofar+github@foo-projects.org>
Thu, 9 Feb 2017 07:00:37 +0000 (23:00 -0800)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Thu, 9 Feb 2017 07:00:37 +0000 (08:00 +0100)
We want to reduce the chance that we get lots and lots of node
timers all happening once a second, because we're better off doing
small bits of work as they are available.

Reducing this to 0.2 seconds will greatly reduce the total amount
of nodetimers that elapse at the same instance, while not effecting
total work load. This results in a far better chance of the server
keeping up with work loads.

builtin/settingtypes.txt
minetest.conf.example
src/defaultsettings.cpp

index c81dde7de2935d795d9f4436b98fdd992e36c24a..0e8783f8342c3f671a0fb943e261cb850ab6a6fc 100644 (file)
@@ -840,7 +840,7 @@ active_block_mgmt_interval (Active Block Management interval) float 2.0
 abm_interval (Active Block Modifier interval) float 1.0
 
 #    Length of time between NodeTimer execution cycles
-nodetimer_interval (NodeTimer interval) float 1.0
+nodetimer_interval (NodeTimer interval) float 0.2
 
 #    If enabled, invalid world data won't cause the server to shut down.
 #    Only enable this if you know what you are doing.
index 5c7533e931b3aa73703572fb9948d9185dd46977..a90cc7d8e1ac6e13607ab2ff4485677f06efdbce 100644 (file)
 
 #    Length of time between NodeTimer execution cycles
 #    type: float
-# nodetimer_interval = 1.0
+# nodetimer_interval = 0.2
 
 #    If enabled, invalid world data won't cause the server to shut down.
 #    Only enable this if you know what you are doing.
index 84046f61c3a4af2b7a3de9715c796c85cb0e9e3e..bdf1f92ca0206601de2c52ba65758d335cd505a3 100644 (file)
@@ -295,7 +295,7 @@ void set_default_settings(Settings *settings)
        settings->setDefault("dedicated_server_step", "0.1");
        settings->setDefault("active_block_mgmt_interval", "2.0");
        settings->setDefault("abm_interval", "1.0");
-       settings->setDefault("nodetimer_interval", "1.0");
+       settings->setDefault("nodetimer_interval", "0.2");
        settings->setDefault("ignore_world_load_errors", "false");
        settings->setDefault("remote_media", "");
        settings->setDefault("debug_log_level", "action");