adjust flow to iterate speed

higher ft1sha1 iterate interval (not fixing it yet)
This commit is contained in:
Green Sky 2024-12-16 12:52:33 +01:00
parent b35babe3f8
commit 6d7d643207
No known key found for this signature in database
2 changed files with 6 additions and 4 deletions

View File

@ -7,7 +7,9 @@
float FlowOnly::getCurrentDelay(void) const {
// below 1ms is useless
return std::clamp(_rtt_ema, 0.001f, RTT_MAX);
//return std::clamp(_rtt_ema, 0.001f, RTT_MAX);
// the current iterate rate min is 5ms
return std::clamp(_rtt_ema, 0.005f, RTT_MAX);
}
void FlowOnly::addRTT(float new_delay) {

View File

@ -467,9 +467,9 @@ float SHA1_NGCFT1::iterate(float delta) {
if (_peer_open_requests.empty()) {
return 2.f;
} else {
// pretty conservative and should be ajusted on a per peer, per delay basis
// seems to do the trick
return 0.05f;
// ft1 will go lower for us, if we have unresolved info,
// we dont want to be stuck in a high tickrate
return 0.5f;
}
}