From 1c7a79cd34f4390412d2c57e0ae77cb0feebf192 Mon Sep 17 00:00:00 2001 From: Hexay <97907668+Hexay@users.noreply.github.com> Date: Sun, 8 Nov 2026 10:08:42 +0000 Subject: [PATCH] Fill all free tile loading slots at once --- common/webapp/src/js/map/TileManager.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/webapp/src/js/map/TileManager.js b/common/webapp/src/js/map/TileManager.js index feee3ae4f..3132d1404 100644 --- a/common/webapp/src/js/map/TileManager.js +++ b/common/webapp/src/js/map/TileManager.js @@ -134,13 +134,13 @@ export class TileManager { loadCloseTiles = () => { if (this.unloaded) return; - if (!this.loadNextTile()) return; if (this.loadTimeout) clearTimeout(this.loadTimeout); + this.loadTimeout = null; + + while (this.currentlyLoading < 8 && this.loadNextTile()); - if (this.currentlyLoading < 8) { - this.loadTimeout = setTimeout(this.loadCloseTiles, 0); - } else { + if (this.currentlyLoading >= 8) { this.loadTimeout = setTimeout(this.loadCloseTiles, 1000); } }