From 6d2bfcf04e4ef053cbefac4d8a8b8c2cf17c3f4f Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 29 Apr 2016 18:52:58 -0400 Subject: [PATCH] restored average kicking rate to a more reasonnable value. To be tested (for too much CPU use). Dynamically changing this value is probably needed for VOIP --- libretroshare/src/rsserver/p3face-server.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/rsserver/p3face-server.cc b/libretroshare/src/rsserver/p3face-server.cc index a5b1c83ef..037ef3a44 100644 --- a/libretroshare/src/rsserver/p3face-server.cc +++ b/libretroshare/src/rsserver/p3face-server.cc @@ -69,8 +69,12 @@ static double getCurrentTS() return cts; } +// These values should be tunable from the GUI, to offer a compromise between speed and CPU use. +// In some cases (VOIP) it's likely that we will need to set them temporarily to a very low +// value, in order to favor a fast feedback + const double RsServer::minTimeDelta = 0.05; // 25; -const double RsServer::maxTimeDelta = 0.1; +const double RsServer::maxTimeDelta = 0.2; const double RsServer::kickLimit = 0.15;