我的假设之一似乎是错误的。根据此:
GKMatchSendDataUnreliable模式下,要在所谓的UDP中传输图像。TCP发送的GKMatchSendDataReliable模式映像。通常应为GKMatchSendDataUnreliable。
将发送模式更改为真实 UDP(即GKMatchSendDataUnreliable
)似乎可以保持每秒60个数据包的低ping速率。好像我被Nagles吓了一跳了。
我仍然有奇怪的行为(ping时间非常长),但是我不确定根本原因(ISP或网络拥塞)。
[ 10:30:33 ]: I saw an average roundtrip time of 39.908923 ms, he saw 48.437794 ms
[ 10:30:39 ]: I saw an average roundtrip time of 26.278577 ms, he saw 27.023854 ms
[ 10:30:48 ]: I saw an average roundtrip time of 23.254163 ms, he saw 24.495182 ms
[ 10:30:54 ]: I saw an average roundtrip time of 37.333127 ms, he saw 34.780404 ms
[ 10:31:03 ]: I saw an average roundtrip time of 29.198575 ms, he saw 29.071106 ms
[ 10:31:11 ]: I saw an average roundtrip time of 49.030299 ms, he saw 48.675459 ms
[ 10:31:18 ]: I saw an average roundtrip time of 34.031792 ms, he saw 34.698117 ms
[ 10:31:24 ]: I saw an average roundtrip time of 30.058642 ms, he saw 32.814952 ms
[ 10:31:30 ]: I saw an average roundtrip time of 53.110438 ms, he saw 54.271453 ms
[ 10:31:45 ]: I saw an average roundtrip time of 119.693933 ms, he saw 107.616359 ms
[ 10:31:50 ]: I saw an average roundtrip time of 222.644443 ms, he saw 229.589861 ms
[ 10:31:57 ]: I saw an average roundtrip time of 166.827070 ms, he saw 167.647724 ms
[ 10:32:05 ]: I saw an average roundtrip time of 765.356593 ms, he saw 859.600923 ms
[ 10:32:13 ]: I saw an average roundtrip time of 357.522686 ms, he saw 339.648654 ms
[ 10:32:24 ]: I saw an average roundtrip time of 1115.639593 ms, he saw 1060.574401 ms
[ 10:32:39 ]: I saw an average roundtrip time of 175.845995 ms, he saw 171.112166 ms
[ 10:32:44 ]: I saw an average roundtrip time of 47.262925 ms, he saw 41.987869 ms
[ 10:32:52 ]: I saw an average roundtrip time of 74.524443 ms, he saw 78.868198 ms
[ 10:33:47 ]: I saw an average roundtrip time of 20.943917 ms, he saw 21.217377 ms
[ 10:33:52 ]: I saw an average roundtrip time of 28.944821 ms, he saw 29.303144 ms
[ 10:34:06 ]: I saw an average roundtrip time of 25.581624 ms, he saw 25.439416 ms
[ 10:34:13 ]: I saw an average roundtrip time of 25.565568 ms, he saw 25.655267 ms
[ 10:34:18 ]: I saw an average roundtrip time of 38.609394 ms, he saw 37.462835 ms
后来:
[ 10:38:11 ]: I saw an average roundtrip time of 40.037623 ms, he saw 43.367524 ms
[ 10:38:21 ]: I saw an average roundtrip time of 121.222703 ms, he saw 118.855264 ms
[ 10:38:28 ]: I saw an average roundtrip time of 726.391897 ms, he saw 685.742454 ms
[ 10:38:33 ]: I saw an average roundtrip time of 60.251207 ms, he saw 57.974503 ms
[ 10:38:42 ]: I saw an average roundtrip time of 1133.909392 ms, he saw 1124.404501 ms
因此它是零星的,并且一波三折。我想我将不得不尝试其他帖子中的一些建议,例如降低我的数据包发送速率。