1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-25 13:45:23 +02:00

Use multiple threads for mesh generation (#13062)

Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
x2048
2022-12-27 18:44:18 +01:00
committed by GitHub
parent 03e710160f
commit 89e7f72c92
8 changed files with 183 additions and 57 deletions

View File

@@ -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.