Network Emulation 网络模拟

18 篇文章 0 订阅

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值