projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c532ff
)
Modified the mesh update thread's sleep time to speed it up (it was way too high)
author
Perttu Ahola
<celeron55@gmail.com>
Sat, 18 Jun 2011 19:31:24 +0000
(22:31 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Sat, 18 Jun 2011 19:31:24 +0000
(22:31 +0300)
src/client.cpp
patch
|
blob
|
history
diff --git
a/src/client.cpp
b/src/client.cpp
index e494056f27dcaeaeb56b75e4082df1423a32012d..167dd0723365091b9ebde37aa7dd369c023767db 100644
(file)
--- 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);