Made mesh update on node removal asynchronous on client, to reduce frametime spikes
authorPerttu Ahola <celeron55@gmail.com>
Wed, 6 Apr 2011 08:01:55 +0000 (11:01 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Wed, 6 Apr 2011 08:01:55 +0000 (11:01 +0300)
src/client.cpp

index 82e90704a67a365796342599a2ce7af585f21d90..d22f93ac215a26ef4aa96c0474f1fa46264ae4bb 100644 (file)
@@ -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);
        }
 }