> On Thu, Jan 16, 2014 at 9:18 PM, Bram Stolk <[email protected] > <mailto:[email protected]>> wrote: > > Thanks, > > > So if I understand correctly: WebSockets is TCP and WebRTC may be > either UDP or TCP, without direct control on what is used? > http://stackoverflow.com/questions/18897917/does-webrtc-use-tcp-or-udp > > In my application I cannot afford TCP, as I need to absolute > lowest latency, and cannot tolerate acknowledgements, > retransmissions, etc. > It is a shared physics sim on two different machines and will only > work with minimal latencies. > (Packetloss disturbs TCP greatly in latency and even more so in > throughput.) > > Bram,
First I would highly recommend rethinking the game/app architecture if it is so highly sensitive on latency. The worst gaming experiences I had always involved games that went through "sync lost" halfway through a two-hour RTS match. I am saying this because you say the game will work only with minimal latencies, so I presume the game will have issues even if I introduce, say, 20 different wifi networks around that wreak havoc on your channel 6 2.4GHz wifi. Oh, and for fun I'll throw in 40 students connected on that same wifi that are downloading movies of dubious legality using certain peer-to-peer technologies. With that said, I am not in any way suggesting you should be even considering TCP. But your wording about latency making the whole system break down makes it sound like the game might have issues with UDP as well. Finally, in browser, I don't think you'll get any closer to UDP than WebRTC's data channels. Sadly, you can have no guarantees. A lot of web technologies exposed by browsers are black boxes. Best you can do is try and see if the approach works for you with current generation of browsers. If you want to play with proprietary stuff, you could always try talking to a script running in the Flash plugin or an applet running in the Java plugin and let them do the actual UDP connections. For "a few" reasons, I don't think that's a good idea, but I'll just put it down nonetheless. Good luck! -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
