MegaBits / SIOSocket

Realtime iOS application framework (client) http://socket.io
MIT License
494 stars 80 forks source link

Performance issues #57

Open gustafnilklint opened 9 years ago

gustafnilklint commented 9 years ago

Hi there! First of all tanks for a great framework that is Easy to setup and get started. We recently used this framework in a lab to learn socket IO. A multiplayer version of the classic game Pong. This exposes possible weakness of this framework. After the two players has connected and started the game the server will emit the current "state" of the game 30 times per second. This seems to be problematic since the socket seems to be blocking the main thread. The result is that the game stutters. All form of network communication should be done on a background thread not blocking the ui. Have you done any stress tests?