From f52c49f55faf09b5159ff829038acd8fe55d8444 Mon Sep 17 00:00:00 2001 From: Nikhil Narayana Date: Tue, 30 Nov 2021 17:37:52 -0800 Subject: [PATCH] always enable QoS --- Source/Core/Core/Slippi/SlippiNetplay.cpp | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/Source/Core/Core/Slippi/SlippiNetplay.cpp b/Source/Core/Core/Slippi/SlippiNetplay.cpp index 631c29f1e1..6caf580120 100644 --- a/Source/Core/Core/Slippi/SlippiNetplay.cpp +++ b/Source/Core/Core/Slippi/SlippiNetplay.cpp @@ -651,22 +651,19 @@ void SlippiNetplayClient::ThreadFunc() } } #else - if (SConfig::GetInstance().bQoSEnabled) + for (int i = 0; i < m_server.size(); i++) { - for (int i = 0; i < m_server.size(); i++) - { #ifdef __linux__ - // highest priority - int priority = 7; - setsockopt(m_server[i]->host->socket, SOL_SOCKET, SO_PRIORITY, &priority, sizeof(priority)); + // highest priority + int priority = 7; + setsockopt(m_server[i]->host->socket, SOL_SOCKET, SO_PRIORITY, &priority, sizeof(priority)); #endif - // https://www.tucny.com/Home/dscp-tos - // ef is better than cs7 - int tos_val = 0xb8; - qos_success = - setsockopt(m_server[i]->host->socket, IPPROTO_IP, IP_TOS, &tos_val, sizeof(tos_val)) == 0; - } + // https://www.tucny.com/Home/dscp-tos + // ef is better than cs7 + int tos_val = 0xb8; + qos_success = + setsockopt(m_server[i]->host->socket, IPPROTO_IP, IP_TOS, &tos_val, sizeof(tos_val)) == 0; } #endif