service: network: Fix lobby SDK crashes and performance drops in multiplayer #107
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/mitigate-sdk-crash"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This update stabilizes the multiplayer experience, particularly in high-traffic public rooms. It fixes a persistent SDK crash occurring when players join/leave or are disconnected from lobbies by implementing strict SessionID filtering and sanitizing incoming node data. The issue where the emulator would lock up at 5 FPS during connection failures because of the SDK crash has been mitigated (most likely fully eliminated) by introducing a 1ms sleep interval to the socket receive loop, allowing the OS to manage CPU resources more efficiently.
Memory safety is significantly improved by disabling an experimental socket pooling mechanism that caused handle conflicts during some title's socket duplication calls. These improvements are thread-safe and maintain full compatibility between different (but compatible) game updates, providing a more robust networking environment for Linux, Windows, and macOS users alike.