fix(session_browser): decrease session limit (#954)

This commit is contained in:
Johann 2023-02-07 00:38:19 +01:00 committed by GitHub
parent b87d4e0e1b
commit 12fceace86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,7 @@ namespace big
class matchmaking_service
{
public:
constexpr static int MAX_SESSIONS_TO_FIND = 1400;
constexpr static int MAX_SESSIONS_TO_FIND = 1057;
struct session_attributes
{

View File

@ -18,6 +18,8 @@ namespace big
static char search[64];
static char session_info[255];
ImGui::Text(std::format("Total sessions found: {}", g_matchmaking_service->get_num_found_sessions()).data());
ImGui::SetNextItemWidth(300.f);
if (ImGui::ListBoxHeader("###sessions", { 300, static_cast<float>(*g_pointers->m_resolution_y - 400 - 38 * 4) }))