Hi! Anyone had any experience programming a game-oriented UDP server in PHP using Swoole or ReactPHP? I'm considering trying PHP 8 to really test performance (updating players based on received inputs during a time, simple radius based collision detection).
Also, I would love to know if there is any article/documentation about architecture (code organization, better ways to structure the game logic than a giant switch/elseif, etc.).
Swoole is a fast c extension that’s great for speed but you’re stuck fast. Amphp or reactphp with libev are more flexible and stay really fast
Thanks for your opinion! What do you mean by "stuck fast"?
Huh yeah, saw something about not recommending xdebug at all.
I have one more question if you don't mind: ReactPHP's loop has several drivers to rely on extensions, and falls back from one to another until the StreamSelectLoop. Is there a specific driver more reliable/more efficient? If not considering PHP8, at least PHP7.4.
Libev is the more stable and fast
You should also compile php to override the default max socket which is really low




