From 5afb17eb07ef5a0d56a7419c1f6c8c17aba32f63 Mon Sep 17 00:00:00 2001 From: Joshua Yanovski Date: Sun, 31 Jul 2022 02:23:01 -0700 Subject: [PATCH] Reduce jitter, this was too ambitious. --- client/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/lib.rs b/client/src/lib.rs index a75c16c13d..291ef88110 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -280,7 +280,7 @@ pub struct CharacterList { pub loading: bool, } -const TOTAL_PENDING_CHUNKS_LIMIT: usize = 2048; +const TOTAL_PENDING_CHUNKS_LIMIT: usize = 1024; impl Client { pub async fn new( @@ -1872,7 +1872,7 @@ impl Client { for key in keys.iter() { if self.state.terrain().get_key(*key).is_none() { if !skip_mode && !self.pending_chunks.contains_key(key) { - const CURRENT_TICK_PENDING_CHUNKS_LIMIT: usize = 8 * 5; + const CURRENT_TICK_PENDING_CHUNKS_LIMIT: usize = 8 * 4; if self.pending_chunks.len() < TOTAL_PENDING_CHUNKS_LIMIT && current_tick_send_chunk_requests < CURRENT_TICK_PENDING_CHUNKS_LIMIT