forked from Mirrorlandia_minetest/minetest
tuned expired mesh updating while drawing a bit
This commit is contained in:
parent
6d4cd2ea1a
commit
bcd9813acc
@ -985,7 +985,7 @@ void Client::ProcessData(u8 *data, u32 datasize, u16 sender_peer_id)
|
|||||||
const s32 nightlength = 2;
|
const s32 nightlength = 2;
|
||||||
const s32 daytimelength = 4;
|
const s32 daytimelength = 4;
|
||||||
s32 d = daylength;
|
s32 d = daylength;
|
||||||
s32 t = (((m_time_of_day.get()/* + 24000/d/2*/)%24000)/(24000/d));
|
s32 t = (((m_time_of_day.get())%24000)/(24000/d));
|
||||||
u32 dr;
|
u32 dr;
|
||||||
if(t < nightlength/2 || t >= d - nightlength/2)
|
if(t < nightlength/2 || t >= d - nightlength/2)
|
||||||
dr = 350;
|
dr = 350;
|
||||||
|
11
src/map.cpp
11
src/map.cpp
@ -3179,9 +3179,14 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
|
|||||||
This has to be done with the mesh_mutex unlocked
|
This has to be done with the mesh_mutex unlocked
|
||||||
*/
|
*/
|
||||||
// Pretty random but this should work somewhat nicely
|
// Pretty random but this should work somewhat nicely
|
||||||
if(mesh_expired && mesh_update_count < 3
|
if(mesh_expired && (
|
||||||
&& (d < faraway || mesh_update_count < 2
|
(mesh_update_count < 3
|
||||||
|| m_control.range_all))
|
&& (d < faraway || mesh_update_count < 2)
|
||||||
|
)
|
||||||
|
||
|
||||||
|
(m_control.range_all && mesh_update_count < 20)
|
||||||
|
)
|
||||||
|
)
|
||||||
/*if(mesh_expired && mesh_update_count < 6
|
/*if(mesh_expired && mesh_update_count < 6
|
||||||
&& (d < faraway || mesh_update_count < 3))*/
|
&& (d < faraway || mesh_update_count < 3))*/
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user