From b5ace9a064eb4d4f9b4458ebb0e08d47beb8c3b8 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 6 Apr 2011 11:01:55 +0300 Subject: [PATCH] Made mesh update on node removal asynchronous on client, to reduce frametime spikes --- src/client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- 2.25.1