Reapply "Minecraft.World: C4JThread: Update Threader from Portable-LCE"

This reverts commit 6300671276.
This commit is contained in:
Anaël committed 2026-12-01 12:22:06 +01:00
1 parent e10f2859f4
commit 96a2beb04b
18 files changed
+843 -1369

No files matched your search

+2 -3
View File
@@ -975,7 +975,7 @@ bool MinecraftServer::loadLevel(LevelStorageSource *storageSource, const wstring
pSave->ConvertToLocalPlatform();
storage = std::make_shared<McRegionLevelStorage>(pSave, File(L"."), name, true);
#endif
}
@@ -1063,8 +1063,7 @@ bool MinecraftServer::loadLevel(LevelStorageSource *storageSource, const wstring
m_postUpdateThread = new C4JThread(runPostUpdate, this, "Post processing", 256*1024);
m_postUpdateTerminate = false;
m_postUpdateThread->SetProcessor(CPU_CORE_POST_PROCESSING);
m_postUpdateThread->SetPriority(THREAD_PRIORITY_ABOVE_NORMAL);
m_postUpdateThread->SetPriority(static_cast<C4JThread::ThreadPriority>(THREAD_PRIORITY_ABOVE_NORMAL));
m_postUpdateThread->Run();
int64_t startTime = System::currentTimeMillis();