1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 07:06:30 +09:00

updated garbagethrowersample

This commit is contained in:
lidgren
2014-11-04 08:06:40 +00:00
parent 601666d9fb
commit fc9e72e0de
4 changed files with 79 additions and 7 deletions

View File

@@ -20,6 +20,7 @@ namespace Client
var buffer = new byte[1024];
var rnd = new Random();
int batch = 0;
// use RawSend to throw poop at server
while(true)
{
@@ -43,7 +44,12 @@ namespace Client
// fling teh poop
client.RawSend(buffer, 0, length, target);
Thread.Sleep(1);
batch++;
if (batch >= 3)
{
batch = 0;
Thread.Sleep(0);
}
}
}
}