summaryrefslogtreecommitdiff
path: root/minetest.conf.example
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2013-06-02 15:35:29 +0200
committerKahrl <kahrl@gmx.net>2013-06-03 20:09:32 +0200
commite988df0fbdd9d568889a28640c189ae022e99f8e (patch)
treefcbef3860ce8a2f88729490021fcffa20471e3df /minetest.conf.example
parentb89c79e905fb6d8187c066652657c70ccb18b07d (diff)
downloadminetest-e988df0fbdd9d568889a28640c189ae022e99f8e.tar.gz
minetest-e988df0fbdd9d568889a28640c189ae022e99f8e.tar.bz2
minetest-e988df0fbdd9d568889a28640c189ae022e99f8e.zip
Add and implement setting max_clearobjects_extra_loaded_blocks.
Now Environment::clearAllObjects() unloads unused blocks in an interval defined by max_clearobjects_extra_loaded_blocks (default 4096).
Diffstat (limited to 'minetest.conf.example')
-rw-r--r--minetest.conf.example4
1 files changed, 4 insertions, 0 deletions
diff --git a/minetest.conf.example b/minetest.conf.example
index af75438ff..4fd443db7 100644
--- a/minetest.conf.example
+++ b/minetest.conf.example
@@ -254,6 +254,10 @@
#max_block_send_distance = 10
# From how far blocks are generated for clients (value * 16 nodes)
#max_block_generate_distance = 6
+# Number of extra blocks that can be loaded by /clearobjects at once
+# This is a trade-off between sqlite transaction overhead and
+# memory consumption (4096=100MB, as a rule of thumb)
+#max_clearobjects_extra_loaded_blocks = 4096
# Interval of sending time of day to clients
#time_send_interval = 5
# Length of day/night cycle. 72=20min, 360=4min, 1=24hour, 0=day/night/whatever stays unchanged