]> git.lizzy.rs Git - minetest.git/commitdiff
Reduce client's packet processing budget per iteration from 100 to 10ms. (#13237)
authorlhofhansl <larsh@apache.org>
Wed, 22 Feb 2023 00:33:21 +0000 (16:33 -0800)
committerGitHub <noreply@github.com>
Wed, 22 Feb 2023 00:33:21 +0000 (16:33 -0800)
src/client/client.cpp

index 8fbd56ac8368bc044c2e9e87ec8ec4d0b223fe8f..6544dbaf6cd46a685da4ee74442fd0032546bc57 100644 (file)
@@ -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