aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorx2048 <codeforsmile@gmail.com>2022-12-27 18:44:18 +0100
committerGitHub <noreply@github.com>2022-12-27 18:44:18 +0100
commit89e7f72c929fbeef8ad755bc85db22ae6102787d (patch)
treee5de1b6586eb18c400582cbb9002da4874876e6b /builtin
parent03e710160f5c573b74097173b8202f209e5106ad (diff)
downloadminetest-89e7f72c929fbeef8ad755bc85db22ae6102787d.tar.xz
Use multiple threads for mesh generation (#13062)
Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/settingtypes.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt
index b3398c831..a97d2c0f7 100644
--- a/builtin/settingtypes.txt
+++ b/builtin/settingtypes.txt
@@ -1673,6 +1673,11 @@ enable_mesh_cache (Mesh cache) bool false
# down the rate of mesh updates, thus reducing jitter on slower clients.
mesh_generation_interval (Mapblock mesh generation delay) int 0 0 50
+# Number of threads to use for mesh generation.
+# Value of 0 (default) will let Minetest autodetect the number of available threads.
+mesh_generation_threads (Mapblock mesh generation threads) int 0 0 8
+
+
# Size of the MapBlock cache of the mesh generator. Increasing this will
# increase the cache hit %, reducing the data being copied from the main
# thread, thus reducing jitter.