Network Emulation 网络模拟

来源:互联网 发布:2016年网络热词排行榜 编辑:程序博客网 时间:2024/05/29 03:25

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.

要启用网络模拟,编辑->网络模拟( Edit->Network Emulation),并选择所需模拟的连接速度模拟。

Network Emulation网络模拟
Enabling Network Emulation 启用网络模拟

Technical Details 技术细节

Network emulation delays the sending of packets in networking traffic for the Network and NetworkView 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人为夸大所有选项,值增加越高,模拟的连接速度变慢。在拨号(Dial-Up )设置,丢包和方差还引入了以往模拟可能出现的最坏的连接。模拟将坚持不管你是为服务器或客户端的角色服务。

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套接字书写的代码。


转自:http://game.ceeger.com/Manual/NetworkEmulation.html

原创粉丝点击