Skip to content

phpMine-MP/ext-raklib-ipc

Repository files navigation

ext-raklib-ipc

Native C++23 PHP extension porting pmmp/raklib-ipc, RakLib's inter-thread serialization layer. Drop-in replacement for the composer package. Requires ext-raklib (load raklib.so first).

What it's for: passing messages between the RakLib network thread and the main game thread — packet received, player connected/disconnected, outgoing sends — serialized byte-for-byte. It's the bridge that lets the networking run on its own thread while the game logic runs on the main one.

Benchmark

Inter-thread (ITC) message path vs the pure-PHP implementation:

Operation PHP Native Speedup
IPC send 314 ns/op 238 ns/op 1.3×
IPC handle 342 ns/op 144 ns/op 2.4×

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors