pmmp / PocketMine-MP

A server software for Minecraft: Bedrock Edition in PHP

Home Page:https://pmmp.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Explore running RakLib without a thread

dktapps opened this issue · comments

Description

For years, RakLib has been running within a thread.
However, this creates various issues, reduces flexibility, and the performance gains might not actually be worth it.

RakLib itself is a black box. No one knows how well it performs, but since it's doing relatively little work, it might actually improve performance to take the threads out of the picture.

Moving RakLib onto the main thread would allow for tighter integration between PM and RakLib, making it easier to, for example, directly collect session statistics.

Alternative methods