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:
1c98ec9
)
Reset block usage timer on client only if it is very probably drawn
author
Perttu Ahola
<celeron55@gmail.com>
Tue, 8 Nov 2011 00:05:42 +0000
(
02:05
+0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Tue, 8 Nov 2011 00:13:22 +0000
(
02:13
+0200)
src/map.cpp
patch
|
blob
|
history
diff --git
a/src/map.cpp
b/src/map.cpp
index d4eefc737ffbc2bdc35c96ea1428d57342a868cd..f2ac3f6184bb3d1f67485d6bd259189941be1a36 100644
(file)
--- 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
*/