1
0
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:
sfan5
2024-06-17 15:59:35 +02:00
committed by GitHub
parent d7f4ce6cff
commit fac9aac821
4 changed files with 30 additions and 11 deletions

View File

@@ -662,6 +662,8 @@ void *EmergeThread::run()
EmergeAction action;
MapBlock *block = nullptr;
porting::TriggerMemoryTrim();
if (!popBlockEmerge(&pos, &bedata)) {
m_queue_event.wait();
continue;