ApplyNetworkSimulator( double maxSendBPS, unsigned short minExtraPing, unsigned short extraPingVariance)
Enables simulated ping and packet loss to the outgoing data flow.
To simulate bi-directional ping and packet loss, you should call this on both the sender and the recipient, with half the total ping and maxSendBPS value on each.
maxSendBPS - Maximum bits per second to send. Packetloss grows linearly. 0 to disable.
minExtraPing - The minimum time to delay sends.
extraPingVariance The additional random time to delay sends.
bool IsNetworkSimulatorActive( void )
Returns if you previously called ApplyNetworkSimulator
For a better solution, see
http://www.jenkinssoftware.com/raknet/forum/index.php?topic=1671.0
|