Modified the mesh update thread's sleep time to speed it up (it was way too high)

This commit is contained in:
Perttu Ahola 2011-06-18 22:31:24 +03:00
parent 3c532fff15
commit 02006a9540
1 changed files with 3 additions and 1 deletions

View File

@ -39,10 +39,12 @@ void * MeshUpdateThread::Thread()
QueuedMeshUpdate *q = m_queue_in.pop(); QueuedMeshUpdate *q = m_queue_in.pop();
if(q == NULL) if(q == NULL)
{ {
sleep_ms(50); sleep_ms(3);
continue; continue;
} }
ScopeProfiler sp(&g_profiler, "mesh make");
scene::SMesh *mesh_new = NULL; scene::SMesh *mesh_new = NULL;
mesh_new = makeMapBlockMesh(q->data); mesh_new = makeMapBlockMesh(q->data);