From 3e58d8b756036d5c71cfcdb3c862382711651cd3 Mon Sep 17 00:00:00 2001 From: def Date: Thu, 17 Sep 2020 17:41:13 +0200 Subject: [PATCH] Increase br_max_requests to 100 As suggested by BannZay on Discord. We scale down when we notice that no responses arrive. The idea is that player's internet has become faster than when DDNet started, so increasing the default is ok. --- src/engine/client/serverbrowser.cpp | 2 +- src/engine/shared/config_variables.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/client/serverbrowser.cpp b/src/engine/client/serverbrowser.cpp index f026ec910..4a82a60fe 100644 --- a/src/engine/client/serverbrowser.cpp +++ b/src/engine/client/serverbrowser.cpp @@ -955,7 +955,7 @@ void CServerBrowser::Update(bool ForceResort) pEntry = pEntry->m_pNextReq; continue; } - // no more then 10 concurrent requests + // no more than 10 concurrent requests if(Count == m_CurrentMaxRequests) break; diff --git a/src/engine/shared/config_variables.h b/src/engine/shared/config_variables.h index f9640e0c5..4fa3eba2c 100644 --- a/src/engine/shared/config_variables.h +++ b/src/engine/shared/config_variables.h @@ -65,7 +65,7 @@ MACRO_CONFIG_STR(BrFilterExcludeTypesKoG, br_filter_exclude_types_kog, 128, "", MACRO_CONFIG_INT(BrSort, br_sort, 4, 0, 256, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Sorting column in server browser") MACRO_CONFIG_INT(BrSortOrder, br_sort_order, 2, 0, 2, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Sorting order in server browser") -MACRO_CONFIG_INT(BrMaxRequests, br_max_requests, 25, 0, 1000, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Number of requests to use when refreshing server browser") +MACRO_CONFIG_INT(BrMaxRequests, br_max_requests, 100, 0, 1000, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Number of concurrent requests to use when refreshing server browser") MACRO_CONFIG_INT(BrDemoSort, br_demo_sort, 0, 0, 3, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Sorting column in demo browser") MACRO_CONFIG_INT(BrDemoSortOrder, br_demo_sort_order, 0, 0, 1, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Sorting order in demo browser")