mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00: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:
parent
afd681d013
commit
08b7870c79
11 changed files with 245 additions and 47 deletions
|
@ -482,7 +482,7 @@ public:
|
|||
Copy data and set flags to 0
|
||||
dst_area.getExtent() <= src_area.getExtent()
|
||||
*/
|
||||
void copyFrom(MapNode *src, const VoxelArea& src_area,
|
||||
void copyFrom(MapNode *src, bool is_mono_block, const VoxelArea& src_area,
|
||||
v3s16 from_pos, v3s16 to_pos, const v3s16 &size);
|
||||
|
||||
// Copy data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue