This commit is contained in:
Clément
2025-03-13 10:03:26 +01:00
parent a4c5d3f67b
commit eee63cc5c6
2 changed files with 4 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ public class PacketPool {
private static int MAX_SEND_TRY = 50;
private static long SEND_DELAY = 10;
private static long RETRY_INTERVAL = SEND_DELAY * 2;
private static float PACKET_LOSS_PROBABILITY = 0.0f;
private static float PACKET_LOSS_PROBABILITY = 0.1f;
private static record ReliablePacketAddress(ReliablePacket packet, InetSocketAddress address) {
@Override
@@ -97,7 +97,7 @@ public class PacketPool {
}
private void debugPrint(String msg) {
System.out.println(msg);
// System.out.println(msg);
}
private void debugSend(ReliablePacket packet, InetSocketAddress address) {