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

+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.