aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-06 11:01:55 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-06 11:01:55 +0300
commitb5ace9a064eb4d4f9b4458ebb0e08d47beb8c3b8 (patch)
tree927ee6fffef4aebb35951698edb8b6ca872dd7df
parente56d1663378f155a4e398f1577ca1e8f484510b9 (diff)
downloadminetest-b5ace9a064eb4d4f9b4458ebb0e08d47beb8c3b8.tar.gz
minetest-b5ace9a064eb4d4f9b4458ebb0e08d47beb8c3b8.tar.bz2
minetest-b5ace9a064eb4d4f9b4458ebb0e08d47beb8c3b8.zip
Made mesh update on node removal asynchronous on client, to reduce frametime spikes
-rw-r--r--src/client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 82e90704a..d22f93ac2 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);
}
}