From: Perttu Ahola Date: Tue, 25 Jan 2011 23:30:36 +0000 (+0200) Subject: comments X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=adb7f248da9e4ec9350d1a05d50213ff3d3908d6;p=zefram%2Fminetest%2Fminetest_engine.git comments --- diff --git a/src/main.cpp b/src/main.cpp index da1b88d4..d2b67e9a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -285,6 +285,11 @@ TODO: Flowing water to actually contain flow direction information TODO: Remove duplicate lighting implementation from Map (leave VoxelManipulator, which is faster) +FIXME: The new texture stuff is slow on wine + - Actually it is not too slow; updating excess amount of meshes + when making footprints is too slow. It has to be fixed. + -> implement Map::updateNodeMeshes() + Doing now: ---------- diff --git a/src/mapblock.cpp b/src/mapblock.cpp index 484821d5..15f3ad9a 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