From 0c808aa23df0130c38a0cf0d817f263bf20f87d4 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sun, 5 Apr 2026 15:36:44 +0900 Subject: [PATCH] add note --- packages/frontend/src/utility/room/engine.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/utility/room/engine.ts b/packages/frontend/src/utility/room/engine.ts index 0a92c0c787..b5a5d81ba5 100644 --- a/packages/frontend/src/utility/room/engine.ts +++ b/packages/frontend/src/utility/room/engine.ts @@ -1121,13 +1121,14 @@ export class RoomEngine { } private highlightMeshes(meshes: BABYLON.AbstractMesh[]) { - this.clearHighlight(); + this.clearHighlight(); // SelectionOutlineLayerは存在するだけでドローコールが増えるので都度dispose this.selectionOutlineLayer = new BABYLON.SelectionOutlineLayer('outliner', this.scene); this.selectionOutlineLayer.addSelection(meshes); } private clearHighlight() { if (this.selectionOutlineLayer != null) { + // SelectionOutlineLayerは存在するだけでドローコールが増えるのでclearじゃなく都度dispose this.selectionOutlineLayer.dispose(); this.selectionOutlineLayer = null; }