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:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user