From: Perttu Ahola Date: Fri, 25 Nov 2011 16:08:47 +0000 (+0200) Subject: Print out number of blocks in memory at unload X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=651657edfd2912d045f0d49dde550b551c817760;p=zefram%2Fminetest%2Fminetest_engine.git Print out number of blocks in memory at unload --- diff --git a/src/map.cpp b/src/map.cpp index 3f858ed6..fd0f1e31 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1405,6 +1405,7 @@ void Map::timerUpdate(float dtime, float unload_timeout, core::list sector_deletion_queue; u32 deleted_blocks_count = 0; u32 saved_blocks_count = 0; + u32 block_count_all = 0; core::map::Iterator si; @@ -1450,6 +1451,7 @@ void Map::timerUpdate(float dtime, float unload_timeout, else { all_blocks_deleted = false; + block_count_all++; } } @@ -1470,6 +1472,7 @@ void Map::timerUpdate(float dtime, float unload_timeout, <<" blocks from memory"; if(save_before_unloading) infostream<<", of which "<