diff --git a/crates/rkgk/src/api/wall.rs b/crates/rkgk/src/api/wall.rs index 16f88b2..4091426 100644 --- a/crates/rkgk/src/api/wall.rs +++ b/crates/rkgk/src/api/wall.rs @@ -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); }