From: Perttu Ahola Date: Wed, 6 Apr 2011 08:01:55 +0000 (+0300) Subject: Made mesh update on node removal asynchronous on client, to reduce frametime spikes X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=b5ace9a064eb4d4f9b4458ebb0e08d47beb8c3b8;p=zefram%2Fminetest%2Fminetest_engine.git Made mesh update on node removal asynchronous on client, to reduce frametime spikes --- diff --git a/src/client.cpp b/src/client.cpp index 82e90704..d22f93ac 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1780,7 +1780,8 @@ void Client::removeNode(v3s16 p) i.atEnd() == false; i++) { v3s16 p = i.getNode()->getKey(); - m_env.getClientMap().updateMeshes(p, m_env.getDayNightRatio()); + //m_env.getClientMap().updateMeshes(p, m_env.getDayNightRatio()); + addUpdateMeshTaskWithEdge(p); } }