From 22f73e8d399ca5f1f47e5b22149b6fa1218f245c Mon Sep 17 00:00:00 2001 From: Schluffe Date: Sun, 8 Mar 2026 14:17:09 +0100 Subject: [PATCH] avoid boxing --- engine/Scene.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/Scene.ts b/engine/Scene.ts index ff1d1f9..8a01828 100644 --- a/engine/Scene.ts +++ b/engine/Scene.ts @@ -124,14 +124,14 @@ const [loadScene, sceneCache] = useWithAsyncCache(async (name: string) => { const entityProcess = entityProcessMap.get(entityData.name); if (entityProcess !== undefined) { - entityProcessMapProxy.map.set(id, box(entityProcess)); + entityProcessMapProxy.map.set(id, box(entityProcess)); // TODO: avoid boxing } for (const [key, value] of entityBlueprintMap .get(entityData.name)! .entries()) { if (componentsMap.has(key)) { - componentsMap.get(key)?.map.set(id, box(structuredClone(value))); + componentsMap.get(key)!.map.set(id, box(structuredClone(value))); } else { componentsMap.set( key,