ASIO-KCP has good performace in wifi and phone network(3G, 4G).
Extra using 20% ~ 50% network flow for speed improvement.
The kcp is the first choice for realtime pvp game.
The lag is less than 1 second when network lag happen. 3 times better than enet when lag happen.
The enet is a good choice if your game allow 2 second lag.
UDT is a bad idea. It always sink into badly situation of more than serval seconds lag. And the recovery is not expected.
enet has the problem of lack of doc. And it has lots of functions that you may intrest. kcp’s doc is chinese. Good thing is the function detail which is writen in code is english. And you can use asio_kcp which is a good wrap.
The kcp is a simple thing. You will write more code if you want more feature.
UDT has a perfect doc. UDT may has more bug than others as I feeling.
def update_events(milisec = 10): result = selector.select(milisec) for fd, event in result: do something with socket event current = time.time() update_timer(current)
while 1: WAIT_MILLISEC = 10 update_events(WAIT_MILLISEC)
Recent Comments