Unity3D说明文档翻译-Network Emulation

来源:互联网 发布:zip如何安装mysql 编辑:程序博客网 时间:2024/06/06 16:41

Network Emulation

模拟网络

As part of Unity’s Networking feature set, you can choose to emulate slower internet connection speeds to test out your game experience for users in low-bandwidth areas.

作为Unity的联网特性集的一部分,你可以选择去模拟较慢的网络连接.迅速测试用户在低带宽区域对于你的游戏的体验.

To enable Network emulation, go to Edit->Network Emulation, and choose your desired connection speed emulation.

在编辑>模拟网络,选择你需要的模拟连接速度,来激活模拟网络.

Enabling Network Emulation

激活模拟网络

Technical Details

技术细节

Network emulation delays the sending of packets in networking traffic for the Network and Network View classes. The ping is artificially inflated for all options, the inflation value increasing as emulated connection speed gets slower. On the Dial-Up setting, packet dropping and variance is also introduced to simulate the worst possible connection ever. Emulation will persist whether you are serving the role of Server or Client.

通过Network和NetworkView类来模拟网络延迟发送数据包到网络交通中.Ping值是通过所有选项人工提高的,提高值增加以模拟连接速度变慢.在拨号上网设置,数据包丢弃和变异也表明模拟最差可能的连接.模拟将不管你是服务器或客服端都是持续的.

Network emulation only affects the Network and NetworkView classes, and will not alter or emulate specialized networking code written using .NET sockets.

模拟网络仅影响Network和NetworkView类,且不会更改或模拟使用.NET套接字的专门的联网代码.

 

0 0
原创粉丝点击