mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Call malloc_trim() regularly to improve deallocation behavior (#14707)
This commit is contained in:
parent
08485f6781
commit
71893807b3
9 changed files with 99 additions and 4 deletions
|
@ -85,6 +85,7 @@ MapBlock::~MapBlock()
|
|||
#endif
|
||||
|
||||
delete[] data;
|
||||
porting::TrackFreedMemory(sizeof(MapNode) * nodecount);
|
||||
}
|
||||
|
||||
bool MapBlock::onObjectsActivation()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue