From c8409c6e5f1b2e7dd64b084e241353e89669bc6d Mon Sep 17 00:00:00 2001 From: HF Date: Mon, 27 Jun 2022 12:47:06 +0200 Subject: [PATCH] TILE_ZOOM_LEVEL = 2 --- src/core/constants.js | 2 +- src/core/tileserver.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/constants.js b/src/core/constants.js index 0d57b9c..a819cab 100644 --- a/src/core/constants.js +++ b/src/core/constants.js @@ -69,7 +69,7 @@ export const THREE_TILE_SIZE = 32; // 2D tile size export const TILE_SIZE = 256; // how much to scale for a new tiled zoomlevel -export const TILE_ZOOM_LEVEL = 4; +export const TILE_ZOOM_LEVEL = 2; export const COOKIE_SESSION_NAME = 'pixelplanet.session'; diff --git a/src/core/tileserver.js b/src/core/tileserver.js index a9ab4f6..2ce7f4e 100644 --- a/src/core/tileserver.js +++ b/src/core/tileserver.js @@ -161,7 +161,7 @@ class CanvasUpdater { } for (let c = 0; c < this.maxTiledZoom; c += 1) { this.TileLoadingQueues.push([]); - const timeout = (8 ** (this.maxTiledZoom - c - 1)) * 5 * 1000; + const timeout = (7 ** (this.maxTiledZoom - c - 1)) * 5 * 1000; logger.info( `Tiling: Set interval for zoomlevel ${c} update to ${timeout / 1000}`, );