From 89e7f72c929fbeef8ad755bc85db22ae6102787d Mon Sep 17 00:00:00 2001 From: x2048 Date: Tue, 27 Dec 2022 18:44:18 +0100 Subject: Use multiple threads for mesh generation (#13062) Co-authored-by: sfan5 --- builtin/settingtypes.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'builtin') 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. -- cgit v1.2.3