From: Perttu Ahola Date: Tue, 8 Nov 2011 00:05:42 +0000 (+0200) Subject: Reset block usage timer on client only if it is very probably drawn X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=763da10c7b13a00fa1ed117a2693755af9284caf;p=zefram%2Fminetest%2Fminetest_engine.git Reset block usage timer on client only if it is very probably drawn --- diff --git a/src/map.cpp b/src/map.cpp index d4eefc73..f2ac3f61 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 */