Modified the mesh update thread's sleep time to speed it up (it was way too high)
authorPerttu Ahola <celeron55@gmail.com>
Sat, 18 Jun 2011 19:31:24 +0000 (22:31 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 18 Jun 2011 19:31:24 +0000 (22:31 +0300)
src/client.cpp

index e494056f27dcaeaeb56b75e4082df1423a32012d..167dd0723365091b9ebde37aa7dd369c023767db 100644 (file)
@@ -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);