diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-06 11:01:55 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-06 11:01:55 +0300 |
commit | b5ace9a064eb4d4f9b4458ebb0e08d47beb8c3b8 (patch) | |
tree | 927ee6fffef4aebb35951698edb8b6ca872dd7df | |
parent | e56d1663378f155a4e398f1577ca1e8f484510b9 (diff) | |
download | minetest-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.cpp | 3 |
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); } } |