summaryrefslogtreecommitdiff
path: root/src/mapblock.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-01-26 01:30:36 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-01-26 01:30:36 +0200
commitadb7f248da9e4ec9350d1a05d50213ff3d3908d6 (patch)
treedecf1d599f6de534a1b81a1fd4f6673f96cea0c5 /src/mapblock.cpp
parenta0f0517c5bec0a2b667813abb9ff8b08cd318952 (diff)
downloadminetest-adb7f248da9e4ec9350d1a05d50213ff3d3908d6.tar.gz
minetest-adb7f248da9e4ec9350d1a05d50213ff3d3908d6.tar.bz2
minetest-adb7f248da9e4ec9350d1a05d50213ff3d3908d6.zip
comments
Diffstat (limited to 'src/mapblock.cpp')
-rw-r--r--src/mapblock.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp
index 484821d50..15f3ad9a6 100644
--- a/src/mapblock.cpp
+++ b/src/mapblock.cpp
@@ -601,6 +601,8 @@ void MapBlock::updateMesh(u32 daynight_ratio)
*/
{
+ //TimeTaker timer2("updateMesh() collect");
+
// Lock this, as m_temp_mods will be used directly
JMutexAutoLock lock(m_temp_mods_mutex);
@@ -662,6 +664,9 @@ void MapBlock::updateMesh(u32 daynight_ratio)
if(fastfaces_new.size() > 0)
{
+ // avg 0ms (100ms spikes when loading textures the first time)
+ //TimeTaker timer2("updateMesh() mesh building");
+
for(u32 i=0; i<fastfaces_new.size(); i++)
{
FastFace &f = fastfaces_new[i];
@@ -690,6 +695,9 @@ void MapBlock::updateMesh(u32 daynight_ratio)
TODO: Optimize by using same meshbuffer for same textures
*/
+ // 0ms
+ //TimeTaker timer2("updateMesh() adding special stuff");
+
for(s16 z=0; z<MAP_BLOCKSIZE; z++)
for(s16 y=0; y<MAP_BLOCKSIZE; y++)
for(s16 x=0; x<MAP_BLOCKSIZE; x++)