Adjust timing parameters in response to real-world trace data.

Also increases maximum frame rate from 50 fps to 100 fps.

Relevant to issue #222 on github.
This commit is contained in:
Keith Winstein
2012-04-19 22:40:03 -04:00
parent 6a3ea5c751
commit 3c6e45a469
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ TransportSender<MyState>::TransportSender( Connection *s_connection, MyState &in
shutdown_tries( 0 ),
ack_num( 0 ),
pending_data_ack( false ),
SEND_MINDELAY( 15 ),
SEND_MINDELAY( 8 ),
last_heard( 0 ),
prng()
{
+1 -1
View File
@@ -39,7 +39,7 @@ namespace Network {
{
private:
/* timing parameters */
static const int SEND_INTERVAL_MIN = 20; /* ms between frames */
static const int SEND_INTERVAL_MIN = 10; /* ms between frames */
static const int SEND_INTERVAL_MAX = 250; /* ms between frames */
static const int ACK_INTERVAL = 3000; /* ms between empty acks */
static const int ACK_DELAY = 100; /* ms before delayed ack */