From adb7f248da9e4ec9350d1a05d50213ff3d3908d6 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 26 Jan 2011 01:30:36 +0200 Subject: comments --- src/mapblock.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mapblock.cpp') 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