Open Eric-Chen-CN opened 3 years ago
the enet version: 1.3.17 and all the packets are sent with ENET_PACKET_FLAG_RELIABLE.
What happen to the enet debug with follows information?
peer 0: 0.001053%+-0.002121% packet loss, 10+-7 ms round trip time, 1.000000% throttle, 103 outgoing, 0/0 incoming peer 0: 0.009384%+-0.018265% packet loss, 8+-5 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.008209%+-0.016037% packet loss, 8+-5 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.007172%+-0.014069% packet loss, 8+-4 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.006271%+-0.012344% packet loss, 8+-4 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.005478%+-0.010818% packet loss, 8+-4 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.004791%+-0.009476% packet loss, 8+-3 ms round trip time, 1.000000% throttle, 69 outgoing, 0/0 incoming peer 0: 0.004181%+-0.008301% packet loss, 8+-3 ms round trip time, 1.000000% throttle, 51 outgoing, 0/0 incoming peer 0: 0.003647%+-0.007263% packet loss, 9+-3 ms round trip time, 1.000000% throttle, 30 outgoing, 0/0 incoming peer 0: 0.004333%+-0.006836% packet loss, 8+-4 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.003784%+-0.006210% packet loss, 8+-4 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.003311%+-0.005600% packet loss, 8+-4 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.002884%+-0.005020% packet loss, 8+-4 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.002518%+-0.004486% packet loss, 8+-4 ms round trip time, 1.000000% throttle, 36 outgoing, 0/0 incoming peer 0: 0.002197%+-0.003983% packet loss, 8+-3 ms round trip time, 1.000000% throttle, 136 outgoing, 0/0 incoming peer 0: 0.001923%+-0.003525% packet loss, 8+-3 ms round trip time, 1.000000% throttle, 14 outgoing, 0/0 incoming
You need to #define ENET_DEBUG to tell ENet to print this info. See: https://github.com/lsalzman/enet/blob/74cea7abf52ddd355146aeb0a4077d2b95368122/protocol.c#L1628
#define ENET_DEBUG
the enet version: 1.3.17 and all the packets are sent with ENET_PACKET_FLAG_RELIABLE.
What happen to the enet debug with follows information?
peer 0: 0.001053%+-0.002121% packet loss, 10+-7 ms round trip time, 1.000000% throttle, 103 outgoing, 0/0 incoming peer 0: 0.009384%+-0.018265% packet loss, 8+-5 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.008209%+-0.016037% packet loss, 8+-5 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.007172%+-0.014069% packet loss, 8+-4 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.006271%+-0.012344% packet loss, 8+-4 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.005478%+-0.010818% packet loss, 8+-4 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.004791%+-0.009476% packet loss, 8+-3 ms round trip time, 1.000000% throttle, 69 outgoing, 0/0 incoming peer 0: 0.004181%+-0.008301% packet loss, 8+-3 ms round trip time, 1.000000% throttle, 51 outgoing, 0/0 incoming peer 0: 0.003647%+-0.007263% packet loss, 9+-3 ms round trip time, 1.000000% throttle, 30 outgoing, 0/0 incoming peer 0: 0.004333%+-0.006836% packet loss, 8+-4 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.003784%+-0.006210% packet loss, 8+-4 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.003311%+-0.005600% packet loss, 8+-4 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.002884%+-0.005020% packet loss, 8+-4 ms round trip time, 1.000000% throttle, 0 outgoing, 0/0 incoming peer 0: 0.002518%+-0.004486% packet loss, 8+-4 ms round trip time, 1.000000% throttle, 36 outgoing, 0/0 incoming peer 0: 0.002197%+-0.003983% packet loss, 8+-3 ms round trip time, 1.000000% throttle, 136 outgoing, 0/0 incoming peer 0: 0.001923%+-0.003525% packet loss, 8+-3 ms round trip time, 1.000000% throttle, 14 outgoing, 0/0 incoming