Reduced time interval between packet bursts

This commit is contained in:
Josh Larson
2016-01-05 18:41:46 -06:00
parent 966d60d5c8
commit 38d3c73736
+1 -1
View File
@@ -199,7 +199,7 @@ public class ClientSender {
while (true) {
time = receiver.getTimeSinceLastPacket();
timeSinceBurst = (System.nanoTime() - lastBurst) / 1E6;
if (time <= timeSinceBurst || (time >= 100 && timeSinceBurst >= 500)) {
if (time <= timeSinceBurst || (time >= 100 && timeSinceBurst >= 300)) {
synchronized (sentPackets) {
int sent = 0;
for (SequencedOutbound packet : sentPackets) {