diff options
author | Perttu Ahola <celeron55@gmail.com> | 2017-04-15 10:55:52 +0300 |
---|---|---|
committer | celeron55 <celeron55@gmail.com> | 2017-04-17 14:58:29 +0300 |
commit | 04cc9de8f2fbcb11f133c88f02fc11504b3ea6f3 (patch) | |
tree | ed13d87b714cb58e1e318458bdfcb5ed9e827819 /minetest.conf.example | |
parent | 4323ad163f8d8217cbfc926cf212d02386ae0646 (diff) | |
download | minetest-04cc9de8f2fbcb11f133c88f02fc11504b3ea6f3.tar.gz minetest-04cc9de8f2fbcb11f133c88f02fc11504b3ea6f3.tar.bz2 minetest-04cc9de8f2fbcb11f133c88f02fc11504b3ea6f3.zip |
MeshUpdateQueue: Add a MapBlock cache that minimizes the amount of MapBlock copying done in the main thread
Cache size is configurable by the meshgen_block_cache_size (default 20 MB).
New profiler stats:
- MeshUpdateQueue MapBlock cache hit %
- MeshUpdateQueue MapBlock cache size kB
Removes one type of stutter that was seen on the client when received MapBlocks
were being handled. (the "MeshMakeData::fill" stutter)
Kind of related to at least #5239
Originally preceded by these commits, now includes them:
- Move the mesh generator thread into src/mesh_generator_thread.{cpp,h}
- mesh_generator_thread.cpp: Update code style
- MeshUpdateThread: Modify interface to house a different implementation: Actual functionality will be changed by next commits.
- MeshMakeData: Add fillBlockData() interface (so that caller can fill in stuff from eg. a MapBlock cache)
Diffstat (limited to 'minetest.conf.example')
-rw-r--r-- | minetest.conf.example | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/minetest.conf.example b/minetest.conf.example index d147ebfac..9b50a775d 100644 --- a/minetest.conf.example +++ b/minetest.conf.example @@ -644,6 +644,12 @@ # type: int min: 0 max: 50 # mesh_generation_interval = 0 +# 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. +# type: int min: 0 max: 1000 +# meshgen_block_cache_size = 20 + # Enables minimap. # type: bool # enable_minimap = true |