perf(editor): 轻微降低内存占用;

This commit is contained in:
2025-12-21 01:28:27 +08:00
parent fed4277a7c
commit 1f810ef5e2
8 changed files with 19 additions and 6 deletions
@@ -0,0 +1,8 @@
import { injectWasm } from "@/utils/wasm/inject";
export function clearBuffer() {
injectWasm({ wasmUrl: "/wasm/Astral3DEditor.wasm" }).then(() => {
// 加载完wasm后自动注册了清除缓存的函数调用
window.clearBuffer();
});
}