From 63c378fb5b7ab3130ac7c63d4ccebda96921d6a6 Mon Sep 17 00:00:00 2001 From: lhofhansl Date: Tue, 21 Feb 2023 16:33:21 -0800 Subject: [PATCH] Reduce client's packet processing budget per iteration from 100 to 10ms. (#13237) --- src/client/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/client.cpp b/src/client/client.cpp index 8fbd56ac8..6544dbaf6 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -923,7 +923,7 @@ void Client::ReceiveAll() { NetworkPacket pkt; u64 start_ms = porting::getTimeMs(); - const u64 budget = 100; + const u64 budget = 10; for(;;) { // Limit time even if there would be huge amounts of data to // process -- 2.44.0