mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Reduce jitter, this was too ambitious.
This commit is contained in:
parent
2a61c7790b
commit
5afb17eb07
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user