Skip to content

Commit

Permalink
engine: client: lower the bandwidth test fragment sizes to 1400 and l…
Browse files Browse the repository at this point in the history
…ess, as using 64k, 32k and more is unreliable
  • Loading branch information
a1batross committed Mar 2, 2025
1 parent 884a3c6 commit 5f0880d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion engine/client/cl_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,11 @@ Returns bandwidth test fragment size
*/
static int CL_GetTestFragmentSize( void )
{
const int fragmentSizes[CL_TEST_RETRIES] = { 64000, 32000, 10666, 5200, 1400 };
// const int fragmentSizes[CL_TEST_RETRIES] = { 64000, 32000, 10666, 5200, 1400 };

// it turns out, even if we pass the bandwidth test, it doesn't mean we can use such large fragments
// as a temporary solution, use smaller fragment sizes
const int fragmentSizes[CL_TEST_RETRIES] = { 1400, 1200, 1000, 800, 508 };
if( cls.connect_retry >= 0 && cls.connect_retry < CL_TEST_RETRIES )
return bound( FRAGMENT_MIN_SIZE, fragmentSizes[cls.connect_retry], FRAGMENT_MAX_SIZE );
else
Expand Down

0 comments on commit 5f0880d

Please # to comment.