mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Reset block usage timer on client only if it is very probably drawn
This commit is contained in:
		@@ -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
 | 
			
		||||
			*/
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user