mirror of
https://github.com/penpot/penpot.git
synced 2026-06-20 06:12:04 +00:00
🔧 Minor perf change
This commit is contained in:
parent
eeb744ac11
commit
e58105a671
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user