mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add count based unload limit for mapblocks
This commit is contained in:
parent
2b04ab874d
commit
a8e238ed06
8 changed files with 154 additions and 65 deletions
|
@ -421,8 +421,9 @@ void Client::step(float dtime)
|
|||
ScopeProfiler sp(g_profiler, "Client: map timer and unload");
|
||||
std::vector<v3s16> deleted_blocks;
|
||||
m_env.getMap().timerUpdate(map_timer_and_unload_dtime,
|
||||
g_settings->getFloat("client_unload_unused_data_timeout"),
|
||||
&deleted_blocks);
|
||||
g_settings->getFloat("client_unload_unused_data_timeout"),
|
||||
g_settings->getS32("client_mapblock_limit"),
|
||||
&deleted_blocks);
|
||||
|
||||
/*
|
||||
Send info to server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue