1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

tuned expired mesh updating while drawing a bit

This commit is contained in:
Perttu Ahola 2010-12-29 18:14:14 +02:00
parent 6d4cd2ea1a
commit bcd9813acc
2 changed files with 9 additions and 4 deletions

View file

@ -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))*/
{