udp WAYYYY slow

Blitz3D Forums/Blitz3D Programming/udp WAYYYY slow

chrisnorris007(Posted 2009) [#1]
i just did a test of a 3d game with udp networking across the internet....is it normal for it to be extremely slow?

chris


xlsior(Posted 2009) [#2]
Define slow -- what kind of round-trip times are you seeing, and how does it comare with doing a straight windows command-line 'ping' between the two computers in question?


Wings(Posted 2009) [#3]
Yes

Internet is slow.... try connect via LAN :)


Wings(Posted 2009) [#4]
its one thing you ned to know about UDP.

You dont have to wait for packets to arrive. just send a update every 10 ms and it will arive to other end. as long as you dont fill up the internet line that is.

one problem is to read the udp on other side. make sure you empty udp buffer each frame or else :D


Gabriel(Posted 2009) [#5]
You dont have to wait for packets to arrive. just send a update every 10 ms and it will arive to other end.

Correction: It *may* arrive at the other end. It may not. With UDP, messages are not guaranteed to arrive. And they may also arrive out of order.