diff --git a/src/engine/client/ec_client.c b/src/engine/client/ec_client.c index 458d7e68a..3962ed7aa 100644 --- a/src/engine/client/ec_client.c +++ b/src/engine/client/ec_client.c @@ -1008,7 +1008,7 @@ static void client_process_packet(NETCHUNK *packet) graph_add(&input_late_graph, time_left/100.0f+0.5f); - if(time_left < 0) + if(time_left < 0 && config.debug) dbg_msg("client", "input was late with %d ms", time_left); last_input_timeleft = time_left; diff --git a/src/engine/e_network.c b/src/engine/e_network.c index 5b6dbf27f..c7aabc99a 100644 --- a/src/engine/e_network.c +++ b/src/engine/e_network.c @@ -93,7 +93,8 @@ int recvinfo_fetch_chunk(NETRECVINFO *info, NETCHUNK *chunk) continue; /* out of sequence, request resend */ - dbg_msg("conn", "asking for resend %d %d", header.sequence, (info->conn->ack+1)%NET_MAX_SEQUENCE); + if(config.debug) + dbg_msg("conn", "asking for resend %d %d", header.sequence, (info->conn->ack+1)%NET_MAX_SEQUENCE); conn_want_resend(info->conn); continue; /* take the next chunk in the packet */ } diff --git a/src/tools/crapnet.cpp b/src/tools/crapnet.cpp index f5881e3cb..b862437db 100644 --- a/src/tools/crapnet.cpp +++ b/src/tools/crapnet.cpp @@ -20,10 +20,10 @@ static PACKET *last = (PACKET *)0; static int current_latency = 0; static int config_log = 0; -static int config_ping = 50; -static int config_pingflux = 15; +static int config_ping = 150; +static int config_pingflux = 50; static int config_pingspike = 0; -static int config_packetloss = 1; // in percent +static int config_packetloss = 10; // in percent static int config_reorder = 1; int run(int port, NETADDR dest)