aboutsummaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2010-12-29 18:14:14 +0200
committerPerttu Ahola <celeron55@gmail.com>2010-12-29 18:14:14 +0200
commitbcd9813accbe48949d40d107f5b15e83969630f7 (patch)
tree95fda1af9f3e7db8fcf56572935e1883fbdbe9bb /src/map.cpp
parent6d4cd2ea1acc07ad5a25a422f430fa1159a3e872 (diff)
downloadhax-minetest-server-bcd9813accbe48949d40d107f5b15e83969630f7.tar.gz
hax-minetest-server-bcd9813accbe48949d40d107f5b15e83969630f7.zip
tuned expired mesh updating while drawing a bit
Diffstat (limited to '')
-rw-r--r--src/map.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/map.cpp b/src/map.cpp
index a3fe9922e..71d73b179 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -3179,9 +3179,14 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
This has to be done with the mesh_mutex unlocked
*/
// Pretty random but this should work somewhat nicely
- if(mesh_expired && mesh_update_count < 3
- && (d < faraway || mesh_update_count < 2
- || m_control.range_all))
+ if(mesh_expired && (
+ (mesh_update_count < 3
+ && (d < faraway || mesh_update_count < 2)
+ )
+ ||
+ (m_control.range_all && mesh_update_count < 20)
+ )
+ )
/*if(mesh_expired && mesh_update_count < 6
&& (d < faraway || mesh_update_count < 3))*/
{