Erel, I remember seeing a thread a while ago which contained a video of you drawing some circles on the PC and having it being streamed instantaneously to the Android device.
Was it a library? I can't find it.
Can I use it for a multiplayer game?
Some questions:
- Will it be fast enough to real-time multiplayer?
- Is it possible to achieve a ping time between 30 and 50 milliseconds?
- If so, it does depend on the server, right?
- What would be the maximum data package size (in bytes) to achieve such values?
If you are using an online server (over the internet) then you should expect latency of at least 100ms. The message size and protocol are less important.
No. The latency I talk about is not related to the protocol. It takes time for a single byte to go from your computer, through all the gateways and reach the server.
If your server is physically close to the users then the latency will be smaller.
Whether you choose a MQTT server or HTTP server will most probably not affect the latency at all.
For example a ping round-trip to b4x.com:
My computer in Israel - ~200ms
A computer in USA - ~30ms