开发:使用Wasm而不是asmJs

This commit is contained in:
ChenX 2024-03-26 11:49:17 +08:00
parent 66f35d6c12
commit fe80e33eae

View File

@ -22890,7 +22890,7 @@ function InitClipperCpp() {
return new Promise((res, rej) => {
clipperLib.loadNativeClipperLibInstanceAsync(
// let it autodetect which one to use, but also available WasmOnly and AsmJsOnly
clipperLib.NativeClipperLibRequestedFormat.AsmJsOnly).then(c => {
clipperLib.NativeClipperLibRequestedFormat.WasmOnly).then(c => {
clipperCpp.lib = c;
res();
// console.log("载入成功!");//不再需要