mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
Move malloc_trim invocations to background thread (#14744)
This commit is contained in:
@@ -662,6 +662,8 @@ void *EmergeThread::run()
|
||||
EmergeAction action;
|
||||
MapBlock *block = nullptr;
|
||||
|
||||
porting::TriggerMemoryTrim();
|
||||
|
||||
if (!popBlockEmerge(&pos, &bedata)) {
|
||||
m_queue_event.wait();
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user