aboutsummaryrefslogtreecommitdiff
path: root/src/emerge.h
diff options
context:
space:
mode:
authorkwolekr <mirrorisim@gmail.com>2013-02-14 20:36:58 -0500
committerkwolekr <mirrorisim@gmail.com>2013-02-25 22:59:17 -0500
commit76217939e05bdd8d06fa7113902a74b02deeb915 (patch)
tree21922c097e14c070b87442fa8d8d9ecc97ca250d /src/emerge.h
parent206ec36c8e50a017636a70345b95f79feffb2446 (diff)
downloadminetest-76217939e05bdd8d06fa7113902a74b02deeb915.tar.gz
minetest-76217939e05bdd8d06fa7113902a74b02deeb915.tar.bz2
minetest-76217939e05bdd8d06fa7113902a74b02deeb915.zip
Add emerge queue limit configuration
Diffstat (limited to 'src/emerge.h')
-rw-r--r--src/emerge.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/emerge.h b/src/emerge.h
index 5f73dcd86..b4461ae61 100644
--- a/src/emerge.h
+++ b/src/emerge.h
@@ -45,15 +45,20 @@ struct BlockEmergeData {
class EmergeManager {
public:
std::map<std::string, MapgenFactory *> mglist;
-
+
+ Mapgen *mapgen;
+ EmergeThread *emergethread;
+
//settings
MapgenParams *params;
-
+ u16 qlimit_total;
+ u16 qlimit_diskonly;
+ u16 qlimit_generate;
+
+ //block emerge queue data structures
JMutex queuemutex;
std::map<v3s16, BlockEmergeData *> blocks_enqueued;
std::map<u16, u16> peer_queue_count;
- Mapgen *mapgen;
- EmergeThread *emergethread;
//biome manager
BiomeDefManager *biomedef;