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

* kanged from https://github.com/portable-lce/portable-lce
This commit is contained in:
Anaël committed 2026-11-30 10:07:25 +01:00
1 parent 0a9d44470b
commit 99582f2b93
18 files changed
+843 -1369

No files matched your search

+1 -2
View File
@@ -116,8 +116,7 @@ Connection::Connection(Socket *socket, const wstring& id, PacketListener *packet
readThread = new C4JThread(runRead, static_cast<void *>(this), readThreadName, READ_STACK_SIZE);
writeThread = new C4JThread(runWrite, this, writeThreadName, WRITE_STACK_SIZE);
readThread->SetProcessor(CPU_CORE_CONNECTIONS);
writeThread->SetProcessor(CPU_CORE_CONNECTIONS );
#ifdef __ORBIS__
readThread->SetPriority(THREAD_PRIORITY_BELOW_NORMAL); // On Orbis, this core is also used for Matching 2, and that priority of that seems to be always at default no matter what we set it to. Prioritise this below Matching 2.
writeThread->SetPriority(THREAD_PRIORITY_BELOW_NORMAL); // On Orbis, this core is also used for Matching 2, and that priority of that seems to be always at default no matter what we set it to. Prioritise this below Matching 2.