Reputation: 47
I am developing a TCP multiplayer game. I am after testing my game in an environment that simulates high latency, packet loss, etc...
The game is written with C#, I am using visual studio 2013 .net 4.5.2.
What would be the best solution for this? I preferably want to be able to emulate bad networking conditions while the program is being debugged. When I debug the game both the server and client programs run, I connect to the server using the client using the 127.0.0.1 callback.
Any suggestions?
Upvotes: 0
Views: 160
Reputation: 5674
What you're trying to do is an application of traffic shaping. I've never found a good free tool to do this directly on Windows, but there are various commercial options and other alternatives out there. Here are some examples:
You could also use any number of Linux utilities to do this if you have a Linux machine configured as a network gateway (i.e. a very expensive router). The nice thing about that approach (or using a similar utility on Windows, if you can find one) is that you can script it to programmatically reduce the bandwidth at specific points.
Lots of different approaches are possible here. :)
Upvotes: 1
Reputation: 20
Write a batch file that uses a loop and ping to flood the other clients in your environment.
Upvotes: 1