mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Remove mapblock cache for mesh generation. (#13124)
Reduces memory consumption and improves performance
This commit is contained in:
parent
d69cb4fb5d
commit
139db66901
4 changed files with 74 additions and 172 deletions
|
@ -322,10 +322,9 @@ void Client::handleCommand_BlockData(NetworkPacket* pkt)
|
|||
/*
|
||||
Create a new block
|
||||
*/
|
||||
block = new MapBlock(&m_env.getMap(), p, this);
|
||||
block = sector->createBlankBlock(p.Y);
|
||||
block->deSerialize(istr, m_server_ser_ver, false);
|
||||
block->deSerializeNetworkSpecific(istr);
|
||||
sector->insertBlock(block);
|
||||
}
|
||||
|
||||
if (m_localdb) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue