diff --git a/render-wasm/src/render/options.rs b/render-wasm/src/render/options.rs index 3f663bcd16..7a6a3a3d39 100644 --- a/render-wasm/src/render/options.rs +++ b/render-wasm/src/render/options.rs @@ -9,7 +9,7 @@ const SHOW_WASM_INFO: u32 = 0x08; // Higher values pre-render more tiles, reducing empty squares during pan but using more memory. const VIEWPORT_INTEREST_AREA_THRESHOLD: i32 = 1; const MIN_DPR_VIEWPORT_INTEREST_AREA_THRESHOLD: i32 = 2; -const MAX_BLOCKING_TIME_MS: i32 = 8; +const MAX_BLOCKING_TIME_MS: i32 = 32; const NODE_BATCH_THRESHOLD: i32 = 3; const BLUR_DOWNSCALE_THRESHOLD: f32 = 8.0; const ANTIALIAS_THRESHOLD: f32 = 7.0; diff --git a/render-wasm/src/render/surfaces.rs b/render-wasm/src/render/surfaces.rs index 7a71b25a8f..3937976cdf 100644 --- a/render-wasm/src/render/surfaces.rs +++ b/render-wasm/src/render/surfaces.rs @@ -1629,6 +1629,10 @@ impl TileTextureCache { continue; }; + if self.removed.contains(&tile) { + continue; + } + self.transforms[index].tx = x as f32 * self.tile_size - offset.x; self.transforms[index].ty = y as f32 * self.tile_size - offset.y;