From 6f9ed786a9eadccc326f2bbaf03cf0444087bbfa Mon Sep 17 00:00:00 2001 From: ponderingdemocritus Date: Thu, 12 Dec 2024 19:40:09 +1100 Subject: [PATCH] update --- client/src/three/scenes/Worldmap.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/three/scenes/Worldmap.ts b/client/src/three/scenes/Worldmap.ts index 3b6abdbbe..5f0f50e63 100644 --- a/client/src/three/scenes/Worldmap.ts +++ b/client/src/three/scenes/Worldmap.ts @@ -651,7 +651,9 @@ export default class WorldmapScene extends HexagonScene { } }; - requestAnimationFrame(processBatch); + Promise.all(this.modelLoadPromises).then(() => { + requestAnimationFrame(processBatch); + }); } private async computeTileEntities() {