summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2017-09-09 00:36:48 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-09-09 00:36:48 +0200
commit745a90dc84339774a37fddff480dd60c69f4cc2a (patch)
treeb856c29bd9fb13f31c3349866f2de9624bf56a3e /builtin
parent1105a14bccefb48a0e264fe19190c39629259338 (diff)
downloadminetest-745a90dc84339774a37fddff480dd60c69f4cc2a.tar.gz
minetest-745a90dc84339774a37fddff480dd60c69f4cc2a.tar.bz2
minetest-745a90dc84339774a37fddff480dd60c69f4cc2a.zip
Server: Calculate maximal total block sends dynamically (#6393)
The block sends per client is 1/2 when reaching the maximal player count.
Diffstat (limited to 'builtin')
-rw-r--r--builtin/settingtypes.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt
index 23101f2ee..39f7a8545 100644
--- a/builtin/settingtypes.txt
+++ b/builtin/settingtypes.txt
@@ -865,11 +865,10 @@ ipv6_server (IPv6 server) bool false
[**Advanced]
# Maximum number of blocks that are simultaneously sent per client.
+# The maximum total count is calculated dynamically:
+# max_total = ceil((#clients + max_users) * per_client / 4)
max_simultaneous_block_sends_per_client (Maximum simultaneous block sends per client) int 10
-# Maximum number of blocks that are simultaneously sent in total.
-max_simultaneous_block_sends_server_total (Maximum simultaneous block sends total) int 40
-
# To reduce lag, block transfers are slowed down when a player is building something.
# This determines how long they are slowed down after placing or removing a node.
full_block_send_enable_min_time_from_building (Delay in sending blocks after building) float 2.0