aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-08 02:05:42 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-08 02:13:22 +0200
commit763da10c7b13a00fa1ed117a2693755af9284caf (patch)
tree9f00c2f6c24d6ef389d462e281ae5e852e50fe8b
parent1c98ec94da18c97272e1b0a2c1e43baf0683a187 (diff)
downloadminetest-763da10c7b13a00fa1ed117a2693755af9284caf.tar.gz
minetest-763da10c7b13a00fa1ed117a2693755af9284caf.tar.bz2
minetest-763da10c7b13a00fa1ed117a2693755af9284caf.zip
Reset block usage timer on client only if it is very probably drawn
-rw-r--r--src/map.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map.cpp b/src/map.cpp
index d4eefc737..f2ac3f618 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -3786,9 +3786,6 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
blocks_in_range++;
- // This block is in range. Reset usage timer.
- block->resetUsageTimer();
-
#if 1
/*
Update expired mesh (used for day/night change)
@@ -3878,6 +3875,9 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
continue;
}
+ // This block is in range. Reset usage timer.
+ block->resetUsageTimer();
+
/*
Ignore if mesh doesn't exist
*/