aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-06-18 22:31:24 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-06-18 22:31:24 +0300
commit02006a95402c41833779e3825c44b39d600e566b (patch)
tree668f6ea9155679f424f6c2317e72494caa146988
parent3c532fff159c426322fc0c2df97f8829a5410eea (diff)
downloadminetest-02006a95402c41833779e3825c44b39d600e566b.tar.gz
minetest-02006a95402c41833779e3825c44b39d600e566b.tar.bz2
minetest-02006a95402c41833779e3825c44b39d600e566b.zip
Modified the mesh update thread's sleep time to speed it up (it was way too high)
-rw-r--r--src/client.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index e494056f2..167dd0723 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -39,10 +39,12 @@ void * MeshUpdateThread::Thread()
QueuedMeshUpdate *q = m_queue_in.pop();
if(q == NULL)
{
- sleep_ms(50);
+ sleep_ms(3);
continue;
}
+ ScopeProfiler sp(&g_profiler, "mesh make");
+
scene::SMesh *mesh_new = NULL;
mesh_new = makeMapBlockMesh(q->data);