1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-08 11:05:28 +01:00

Monoblocks: optimize blocks that contain a single type of node (#16293)

Reduces memory usage on the server, especially with many user and/or large viewing distances.
Currently disabled on the client due to known data races on a block's data.
This commit is contained in:
lhofhansl
2025-09-21 13:19:30 -07:00
committed by GitHub
parent afd681d013
commit 08b7870c79
11 changed files with 245 additions and 47 deletions

View File

@@ -30,6 +30,7 @@ public:
delete m_itemdef;
}
bool isClient() override { return false; }
IItemDefManager *getItemDefManager() override { return m_itemdef; }
const NodeDefManager *getNodeDefManager() override { return m_nodedef; }
NodeDefManager* getWritableNodeDefManager() { return m_nodedef; }