Perttu Ahola 04cc9de8f2 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)
2017-04-17 14:58:29 +03:00
..
2017-04-17 09:04:58 +02:00
2016-12-26 22:36:22 +01:00
2016-03-19 21:27:57 -04:00
2015-08-23 22:04:06 -04:00
2017-04-08 18:39:15 -07:00
2015-12-07 13:51:41 -05:00
2016-02-11 16:55:15 +01:00
2016-02-11 16:55:15 +01:00
2016-09-21 08:04:11 +02:00
2017-03-13 23:56:05 +01:00
2016-07-05 21:40:13 +02:00
2015-11-06 08:51:14 +01:00
2017-04-16 14:44:15 +02:00
2017-04-16 14:44:15 +02:00
2017-03-20 18:34:18 +00:00
2015-08-25 18:33:52 -04:00
2016-12-20 17:17:38 +10:00
2015-12-07 13:51:41 -05:00
2015-07-08 10:12:44 +02:00
2017-04-16 14:44:15 +02:00
2015-10-26 15:14:22 +01:00
2017-01-13 18:13:43 -05:00
2015-07-23 07:38:13 +02:00
2015-08-25 18:33:52 -04:00
2017-04-08 18:39:15 -07:00
2017-03-13 23:56:05 +01:00
2017-04-08 18:39:15 -07:00
2017-04-08 18:39:15 -07:00
2016-12-28 14:16:39 -08:00
2015-11-06 08:51:14 +01:00
2017-03-27 03:18:09 +01:00
2017-03-27 03:18:09 +01:00
2017-01-23 07:27:12 +01:00
2017-02-08 00:15:55 +01:00
2017-02-08 00:15:55 +01:00
2016-03-02 23:23:31 -05:00
2016-06-11 23:35:17 +01:00
2016-06-11 23:35:17 +01:00
2016-06-04 02:16:06 -04:00
2016-06-04 01:51:44 -04:00
2016-05-01 15:32:02 +02:00
2015-12-07 13:51:41 -05:00
2015-12-07 13:51:41 -05:00
2015-08-23 22:04:06 -04:00
2017-01-04 19:18:40 +01:00
2017-01-04 19:18:40 +01:00
2014-11-19 16:21:59 -05:00
2016-05-23 11:48:30 -04:00
2017-03-18 12:37:57 +01:00
2017-03-18 12:37:57 +01:00
2016-10-13 17:33:16 +02:00
2017-01-18 23:21:01 +01:00
2017-04-10 09:40:06 +02:00
2015-03-27 15:00:48 -04:00
2017-04-08 18:39:15 -07:00