🔧 Minor perf change

This commit is contained in:
Elena Torro 2026-06-17 12:09:05 +02:00
parent eeb744ac11
commit e58105a671
2 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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;