remove server chunk loading debug logs
This commit is contained in:
parent
8e467d5447
commit
39632f56a7
1 changed files with 1 additions and 6 deletions
|
@ -25,7 +25,7 @@ use tokio::{
|
|||
select,
|
||||
sync::{mpsc, oneshot},
|
||||
};
|
||||
use tracing::{debug, error, info, info_span, instrument};
|
||||
use tracing::{error, info, info_span, instrument};
|
||||
|
||||
use crate::{
|
||||
login::{self, database::LoginStatus},
|
||||
|
@ -370,7 +370,6 @@ impl SessionLoop {
|
|||
top_left,
|
||||
bottom_right,
|
||||
} => {
|
||||
debug!(?top_left, ?bottom_right, "Request::Viewport");
|
||||
self.viewport_chunks = ChunkIterator::new(top_left, bottom_right);
|
||||
self.send_chunks(ws).await?;
|
||||
}
|
||||
|
@ -392,12 +391,10 @@ impl SessionLoop {
|
|||
|
||||
// Number of chunks iterated is limited per packet, so as not to let the client
|
||||
// stall the server by sending in a huge viewport.
|
||||
debug!(?self.viewport_chunks, ?self.sent_chunks);
|
||||
for _ in 0..9000 {
|
||||
if let Some(position) = self.viewport_chunks.next() {
|
||||
let sent = !self.sent_chunks.insert(position);
|
||||
if sent || !self.chunk_images.chunk_exists(position) {
|
||||
debug!(?position, "skipping chunk");
|
||||
continue;
|
||||
}
|
||||
positions.push(position);
|
||||
|
@ -406,8 +403,6 @@ impl SessionLoop {
|
|||
}
|
||||
}
|
||||
|
||||
debug!(num = positions.len(), "pending chunk images");
|
||||
|
||||
self.pending_images
|
||||
.extend(self.chunk_images.encoded(positions).await.data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue