@dcl-regenesislabs/bevy-explorer-web 0.1.0-18878466130.commit-4a9d5f6 → 0.1.0-18913559337.commit-f04220d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +1 -1
- package/index.html +2 -2
- package/package.json +3 -3
- package/pkg/webgpu_build.d.ts +10 -8
- package/pkg/webgpu_build.js +62 -52
- package/pkg/webgpu_build_bg.wasm +0 -0
- package/pkg/webgpu_build_bg.wasm.d.ts +9 -8
- package/sandbox_worker.js +33 -7
package/.env
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
PUBLIC_URL="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-
|
|
1
|
+
PUBLIC_URL="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-18913559337.commit-f04220d"
|
package/index.html
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
</style>
|
|
103
103
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
|
|
104
|
-
<script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-
|
|
104
|
+
<script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-18913559337.commit-f04220d";</script>
|
|
105
105
|
</head>
|
|
106
106
|
<body>
|
|
107
107
|
<div id="header" class="container">
|
|
@@ -130,6 +130,6 @@
|
|
|
130
130
|
</div>
|
|
131
131
|
<script src="https://cdn.jsdelivr.net/npm/livekit-client/dist/livekit-client.umd.min.js"></script>
|
|
132
132
|
<script src="https://cdn.jsdelivr.net/npm/hls.js@1"></script>
|
|
133
|
-
<script type="module" src="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-
|
|
133
|
+
<script type="module" src="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-18913559337.commit-f04220d/main.js"></script>
|
|
134
134
|
</body>
|
|
135
135
|
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl-regenesislabs/bevy-explorer-web",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-18913559337.commit-f04220d",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"postinstall": "node ./scripts/prebuild.js"
|
|
6
6
|
},
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/decentraland/bevy-explorer.git"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-
|
|
12
|
-
"commit": "
|
|
11
|
+
"homepage": "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-18913559337.commit-f04220d",
|
|
12
|
+
"commit": "f04220d095252d52d19c86d206449f781c7e04a0"
|
|
13
13
|
}
|
package/pkg/webgpu_build.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ export function op_get_user_data(state: WorkerContext): Promise<any>;
|
|
|
87
87
|
export function op_get_player_data(state: WorkerContext, id: string): Promise<any>;
|
|
88
88
|
export function wasm_init_scene(): Promise<WorkerContext>;
|
|
89
89
|
export function op_continue_running(state: WorkerContext): boolean;
|
|
90
|
+
export function op_communicated_with_renderer(state: WorkerContext): boolean;
|
|
90
91
|
export function drop_context(state: WorkerContext): void;
|
|
91
92
|
export function builtin_module(state: WorkerContext, path: string): string;
|
|
92
93
|
export function is_super(state: WorkerContext): boolean;
|
|
@@ -185,6 +186,7 @@ export interface InitOutput {
|
|
|
185
186
|
readonly __wbg_workercontext_free: (a: number, b: number) => void;
|
|
186
187
|
readonly workercontext_get_source: (a: number) => any;
|
|
187
188
|
readonly op_continue_running: (a: number) => number;
|
|
189
|
+
readonly op_communicated_with_renderer: (a: number) => number;
|
|
188
190
|
readonly drop_context: (a: number) => void;
|
|
189
191
|
readonly builtin_module: (a: number, b: number, c: number) => [number, number, number, number];
|
|
190
192
|
readonly is_super: (a: number) => number;
|
|
@@ -198,19 +200,19 @@ export interface InitOutput {
|
|
|
198
200
|
readonly __wbindgen_export_7: WebAssembly.Table;
|
|
199
201
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
200
202
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
201
|
-
readonly
|
|
202
|
-
readonly
|
|
203
|
+
readonly closure15212_externref_shim: (a: number, b: number, c: number, d: any) => void;
|
|
204
|
+
readonly closure47589_externref_shim: (a: number, b: number, c: any) => void;
|
|
203
205
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__haf6d1d6eca19ebd1: (a: number, b: number) => void;
|
|
204
206
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h88ef16e697def3fb: (a: number, b: number) => void;
|
|
205
|
-
readonly
|
|
207
|
+
readonly closure51492_externref_shim: (a: number, b: number, c: any) => void;
|
|
206
208
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heedd0a6395901798: (a: number, b: number) => void;
|
|
207
209
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9bfa50ac2770910f: (a: number, b: number) => void;
|
|
208
|
-
readonly
|
|
210
|
+
readonly closure56454_externref_shim: (a: number, b: number, c: any) => void;
|
|
209
211
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0c78161a9a71767b: (a: number, b: number) => void;
|
|
210
|
-
readonly
|
|
211
|
-
readonly
|
|
212
|
-
readonly
|
|
213
|
-
readonly
|
|
212
|
+
readonly closure56467_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
213
|
+
readonly closure116502_externref_shim: (a: number, b: number, c: any) => void;
|
|
214
|
+
readonly closure131434_externref_shim: (a: number, b: number, c: any) => void;
|
|
215
|
+
readonly closure134338_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
214
216
|
readonly __wbindgen_thread_destroy: (a?: number, b?: number, c?: number) => void;
|
|
215
217
|
readonly __wbindgen_start: (a: number) => void;
|
|
216
218
|
}
|
package/pkg/webgpu_build.js
CHANGED
|
@@ -1237,6 +1237,16 @@ export function op_continue_running(state) {
|
|
|
1237
1237
|
return ret !== 0;
|
|
1238
1238
|
}
|
|
1239
1239
|
|
|
1240
|
+
/**
|
|
1241
|
+
* @param {WorkerContext} state
|
|
1242
|
+
* @returns {boolean}
|
|
1243
|
+
*/
|
|
1244
|
+
export function op_communicated_with_renderer(state) {
|
|
1245
|
+
_assertClass(state, WorkerContext);
|
|
1246
|
+
const ret = wasm.op_communicated_with_renderer(state.__wbg_ptr);
|
|
1247
|
+
return ret !== 0;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1240
1250
|
/**
|
|
1241
1251
|
* @param {WorkerContext} state
|
|
1242
1252
|
*/
|
|
@@ -1284,11 +1294,11 @@ export function is_super(state) {
|
|
|
1284
1294
|
}
|
|
1285
1295
|
|
|
1286
1296
|
function __wbg_adapter_62(arg0, arg1, arg2, arg3) {
|
|
1287
|
-
wasm.
|
|
1297
|
+
wasm.closure15212_externref_shim(arg0, arg1, arg2, arg3);
|
|
1288
1298
|
}
|
|
1289
1299
|
|
|
1290
1300
|
function __wbg_adapter_65(arg0, arg1, arg2) {
|
|
1291
|
-
wasm.
|
|
1301
|
+
wasm.closure47589_externref_shim(arg0, arg1, arg2);
|
|
1292
1302
|
}
|
|
1293
1303
|
|
|
1294
1304
|
function __wbg_adapter_68(arg0, arg1) {
|
|
@@ -1300,7 +1310,7 @@ function __wbg_adapter_71(arg0, arg1) {
|
|
|
1300
1310
|
}
|
|
1301
1311
|
|
|
1302
1312
|
function __wbg_adapter_74(arg0, arg1, arg2) {
|
|
1303
|
-
wasm.
|
|
1313
|
+
wasm.closure51492_externref_shim(arg0, arg1, arg2);
|
|
1304
1314
|
}
|
|
1305
1315
|
|
|
1306
1316
|
function __wbg_adapter_81(arg0, arg1) {
|
|
@@ -1312,7 +1322,7 @@ function __wbg_adapter_84(arg0, arg1) {
|
|
|
1312
1322
|
}
|
|
1313
1323
|
|
|
1314
1324
|
function __wbg_adapter_87(arg0, arg1, arg2) {
|
|
1315
|
-
wasm.
|
|
1325
|
+
wasm.closure56454_externref_shim(arg0, arg1, arg2);
|
|
1316
1326
|
}
|
|
1317
1327
|
|
|
1318
1328
|
function __wbg_adapter_98(arg0, arg1) {
|
|
@@ -1320,19 +1330,19 @@ function __wbg_adapter_98(arg0, arg1) {
|
|
|
1320
1330
|
}
|
|
1321
1331
|
|
|
1322
1332
|
function __wbg_adapter_105(arg0, arg1, arg2, arg3) {
|
|
1323
|
-
wasm.
|
|
1333
|
+
wasm.closure56467_externref_shim(arg0, arg1, arg2, arg3);
|
|
1324
1334
|
}
|
|
1325
1335
|
|
|
1326
1336
|
function __wbg_adapter_108(arg0, arg1, arg2) {
|
|
1327
|
-
wasm.
|
|
1337
|
+
wasm.closure116502_externref_shim(arg0, arg1, arg2);
|
|
1328
1338
|
}
|
|
1329
1339
|
|
|
1330
1340
|
function __wbg_adapter_111(arg0, arg1, arg2) {
|
|
1331
|
-
wasm.
|
|
1341
|
+
wasm.closure131434_externref_shim(arg0, arg1, arg2);
|
|
1332
1342
|
}
|
|
1333
1343
|
|
|
1334
|
-
function
|
|
1335
|
-
wasm.
|
|
1344
|
+
function __wbg_adapter_1519(arg0, arg1, arg2, arg3) {
|
|
1345
|
+
wasm.closure134338_externref_shim(arg0, arg1, arg2, arg3);
|
|
1336
1346
|
}
|
|
1337
1347
|
|
|
1338
1348
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -2629,7 +2639,7 @@ function __wbg_get_imports() {
|
|
|
2629
2639
|
const a = state0.a;
|
|
2630
2640
|
state0.a = 0;
|
|
2631
2641
|
try {
|
|
2632
|
-
return
|
|
2642
|
+
return __wbg_adapter_1519(a, state0.b, arg0, arg1);
|
|
2633
2643
|
} finally {
|
|
2634
2644
|
state0.a = a;
|
|
2635
2645
|
}
|
|
@@ -4124,88 +4134,88 @@ function __wbg_get_imports() {
|
|
|
4124
4134
|
const ret = false;
|
|
4125
4135
|
return ret;
|
|
4126
4136
|
};
|
|
4127
|
-
imports.wbg.
|
|
4128
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4137
|
+
imports.wbg.__wbindgen_closure_wrapper149224 = function(arg0, arg1, arg2) {
|
|
4138
|
+
const ret = makeMutClosure(arg0, arg1, 116503, __wbg_adapter_108);
|
|
4129
4139
|
return ret;
|
|
4130
4140
|
};
|
|
4131
|
-
imports.wbg.
|
|
4132
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4141
|
+
imports.wbg.__wbindgen_closure_wrapper169559 = function(arg0, arg1, arg2) {
|
|
4142
|
+
const ret = makeMutClosure(arg0, arg1, 131435, __wbg_adapter_111);
|
|
4133
4143
|
return ret;
|
|
4134
4144
|
};
|
|
4135
|
-
imports.wbg.
|
|
4136
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4145
|
+
imports.wbg.__wbindgen_closure_wrapper169561 = function(arg0, arg1, arg2) {
|
|
4146
|
+
const ret = makeMutClosure(arg0, arg1, 131435, __wbg_adapter_111);
|
|
4137
4147
|
return ret;
|
|
4138
4148
|
};
|
|
4139
|
-
imports.wbg.
|
|
4140
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4149
|
+
imports.wbg.__wbindgen_closure_wrapper20087 = function(arg0, arg1, arg2) {
|
|
4150
|
+
const ret = makeMutClosure(arg0, arg1, 15213, __wbg_adapter_62);
|
|
4141
4151
|
return ret;
|
|
4142
4152
|
};
|
|
4143
|
-
imports.wbg.
|
|
4144
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4153
|
+
imports.wbg.__wbindgen_closure_wrapper63924 = function(arg0, arg1, arg2) {
|
|
4154
|
+
const ret = makeMutClosure(arg0, arg1, 47590, __wbg_adapter_65);
|
|
4145
4155
|
return ret;
|
|
4146
4156
|
};
|
|
4147
|
-
imports.wbg.
|
|
4148
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4157
|
+
imports.wbg.__wbindgen_closure_wrapper64112 = function(arg0, arg1, arg2) {
|
|
4158
|
+
const ret = makeMutClosure(arg0, arg1, 47695, __wbg_adapter_68);
|
|
4149
4159
|
return ret;
|
|
4150
4160
|
};
|
|
4151
|
-
imports.wbg.
|
|
4152
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4161
|
+
imports.wbg.__wbindgen_closure_wrapper68298 = function(arg0, arg1, arg2) {
|
|
4162
|
+
const ret = makeMutClosure(arg0, arg1, 50846, __wbg_adapter_71);
|
|
4153
4163
|
return ret;
|
|
4154
4164
|
};
|
|
4155
|
-
imports.wbg.
|
|
4156
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4165
|
+
imports.wbg.__wbindgen_closure_wrapper70336 = function(arg0, arg1, arg2) {
|
|
4166
|
+
const ret = makeMutClosure(arg0, arg1, 51493, __wbg_adapter_74);
|
|
4157
4167
|
return ret;
|
|
4158
4168
|
};
|
|
4159
|
-
imports.wbg.
|
|
4160
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4169
|
+
imports.wbg.__wbindgen_closure_wrapper70338 = function(arg0, arg1, arg2) {
|
|
4170
|
+
const ret = makeMutClosure(arg0, arg1, 51493, __wbg_adapter_74);
|
|
4161
4171
|
return ret;
|
|
4162
4172
|
};
|
|
4163
|
-
imports.wbg.
|
|
4164
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4173
|
+
imports.wbg.__wbindgen_closure_wrapper70340 = function(arg0, arg1, arg2) {
|
|
4174
|
+
const ret = makeMutClosure(arg0, arg1, 51493, __wbg_adapter_74);
|
|
4165
4175
|
return ret;
|
|
4166
4176
|
};
|
|
4167
|
-
imports.wbg.
|
|
4168
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4177
|
+
imports.wbg.__wbindgen_closure_wrapper73108 = function(arg0, arg1, arg2) {
|
|
4178
|
+
const ret = makeMutClosure(arg0, arg1, 53844, __wbg_adapter_81);
|
|
4169
4179
|
return ret;
|
|
4170
4180
|
};
|
|
4171
|
-
imports.wbg.
|
|
4172
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4181
|
+
imports.wbg.__wbindgen_closure_wrapper74443 = function(arg0, arg1, arg2) {
|
|
4182
|
+
const ret = makeMutClosure(arg0, arg1, 54802, __wbg_adapter_84);
|
|
4173
4183
|
return ret;
|
|
4174
4184
|
};
|
|
4175
|
-
imports.wbg.
|
|
4176
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4185
|
+
imports.wbg.__wbindgen_closure_wrapper77086 = function(arg0, arg1, arg2) {
|
|
4186
|
+
const ret = makeMutClosure(arg0, arg1, 56455, __wbg_adapter_87);
|
|
4177
4187
|
return ret;
|
|
4178
4188
|
};
|
|
4179
|
-
imports.wbg.
|
|
4180
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4189
|
+
imports.wbg.__wbindgen_closure_wrapper77088 = function(arg0, arg1, arg2) {
|
|
4190
|
+
const ret = makeMutClosure(arg0, arg1, 56455, __wbg_adapter_87);
|
|
4181
4191
|
return ret;
|
|
4182
4192
|
};
|
|
4183
|
-
imports.wbg.
|
|
4184
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4193
|
+
imports.wbg.__wbindgen_closure_wrapper77090 = function(arg0, arg1, arg2) {
|
|
4194
|
+
const ret = makeMutClosure(arg0, arg1, 56455, __wbg_adapter_87);
|
|
4185
4195
|
return ret;
|
|
4186
4196
|
};
|
|
4187
|
-
imports.wbg.
|
|
4188
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4197
|
+
imports.wbg.__wbindgen_closure_wrapper77092 = function(arg0, arg1, arg2) {
|
|
4198
|
+
const ret = makeMutClosure(arg0, arg1, 56455, __wbg_adapter_87);
|
|
4189
4199
|
return ret;
|
|
4190
4200
|
};
|
|
4191
|
-
imports.wbg.
|
|
4192
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4201
|
+
imports.wbg.__wbindgen_closure_wrapper77094 = function(arg0, arg1, arg2) {
|
|
4202
|
+
const ret = makeMutClosure(arg0, arg1, 56455, __wbg_adapter_87);
|
|
4193
4203
|
return ret;
|
|
4194
4204
|
};
|
|
4195
|
-
imports.wbg.
|
|
4196
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4205
|
+
imports.wbg.__wbindgen_closure_wrapper77096 = function(arg0, arg1, arg2) {
|
|
4206
|
+
const ret = makeMutClosure(arg0, arg1, 56455, __wbg_adapter_98);
|
|
4197
4207
|
return ret;
|
|
4198
4208
|
};
|
|
4199
|
-
imports.wbg.
|
|
4200
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4209
|
+
imports.wbg.__wbindgen_closure_wrapper77098 = function(arg0, arg1, arg2) {
|
|
4210
|
+
const ret = makeMutClosure(arg0, arg1, 56455, __wbg_adapter_87);
|
|
4201
4211
|
return ret;
|
|
4202
4212
|
};
|
|
4203
|
-
imports.wbg.
|
|
4204
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4213
|
+
imports.wbg.__wbindgen_closure_wrapper77100 = function(arg0, arg1, arg2) {
|
|
4214
|
+
const ret = makeMutClosure(arg0, arg1, 56455, __wbg_adapter_87);
|
|
4205
4215
|
return ret;
|
|
4206
4216
|
};
|
|
4207
|
-
imports.wbg.
|
|
4208
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4217
|
+
imports.wbg.__wbindgen_closure_wrapper77102 = function(arg0, arg1, arg2) {
|
|
4218
|
+
const ret = makeMutClosure(arg0, arg1, 56455, __wbg_adapter_105);
|
|
4209
4219
|
return ret;
|
|
4210
4220
|
};
|
|
4211
4221
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/pkg/webgpu_build_bg.wasm
CHANGED
|
Binary file
|
|
@@ -86,6 +86,7 @@ export const wasm_init_scene: () => any;
|
|
|
86
86
|
export const __wbg_workercontext_free: (a: number, b: number) => void;
|
|
87
87
|
export const workercontext_get_source: (a: number) => any;
|
|
88
88
|
export const op_continue_running: (a: number) => number;
|
|
89
|
+
export const op_communicated_with_renderer: (a: number) => number;
|
|
89
90
|
export const drop_context: (a: number) => void;
|
|
90
91
|
export const builtin_module: (a: number, b: number, c: number) => [number, number, number, number];
|
|
91
92
|
export const is_super: (a: number) => number;
|
|
@@ -99,18 +100,18 @@ export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
|
99
100
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
100
101
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
101
102
|
export const __externref_table_dealloc: (a: number) => void;
|
|
102
|
-
export const
|
|
103
|
-
export const
|
|
103
|
+
export const closure15212_externref_shim: (a: number, b: number, c: number, d: any) => void;
|
|
104
|
+
export const closure47589_externref_shim: (a: number, b: number, c: any) => void;
|
|
104
105
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__haf6d1d6eca19ebd1: (a: number, b: number) => void;
|
|
105
106
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h88ef16e697def3fb: (a: number, b: number) => void;
|
|
106
|
-
export const
|
|
107
|
+
export const closure51492_externref_shim: (a: number, b: number, c: any) => void;
|
|
107
108
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heedd0a6395901798: (a: number, b: number) => void;
|
|
108
109
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9bfa50ac2770910f: (a: number, b: number) => void;
|
|
109
|
-
export const
|
|
110
|
+
export const closure56454_externref_shim: (a: number, b: number, c: any) => void;
|
|
110
111
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0c78161a9a71767b: (a: number, b: number) => void;
|
|
111
|
-
export const
|
|
112
|
-
export const
|
|
113
|
-
export const
|
|
114
|
-
export const
|
|
112
|
+
export const closure56467_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
113
|
+
export const closure116502_externref_shim: (a: number, b: number, c: any) => void;
|
|
114
|
+
export const closure131434_externref_shim: (a: number, b: number, c: any) => void;
|
|
115
|
+
export const closure134338_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
115
116
|
export const __wbindgen_thread_destroy: (a?: number, b?: number, c?: number) => void;
|
|
116
117
|
export const __wbindgen_start: (a: number) => void;
|
package/sandbox_worker.js
CHANGED
|
@@ -5,7 +5,7 @@ import init, * as wasm_bindgen_exports from "./pkg/webgpu_build.js";
|
|
|
5
5
|
|
|
6
6
|
// self.WebSocket = {}
|
|
7
7
|
|
|
8
|
-
console.log("[
|
|
8
|
+
console.log("[Sandbox Worker] Starting");
|
|
9
9
|
|
|
10
10
|
const allowListES2020 = [
|
|
11
11
|
"Array",
|
|
@@ -252,7 +252,7 @@ self.onmessage = async (event) => {
|
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
postMessage({ type: `INIT_COMPLETE` });
|
|
255
|
-
|
|
255
|
+
|
|
256
256
|
// add listener to clean up on unhandled rejections
|
|
257
257
|
self.addEventListener("unhandledrejection", (event) => {
|
|
258
258
|
// Prevent the default browser action
|
|
@@ -282,7 +282,7 @@ self.onmessage = async (event) => {
|
|
|
282
282
|
console.error("[Scene Worker] Error during scene construction:", e);
|
|
283
283
|
try {
|
|
284
284
|
wasm_init.drop_context(wasmContext);
|
|
285
|
-
} catch (e) {}
|
|
285
|
+
} catch (e) { }
|
|
286
286
|
wasm_init.__wbindgen_thread_destroy();
|
|
287
287
|
self.close();
|
|
288
288
|
return;
|
|
@@ -308,21 +308,47 @@ self.onmessage = async (event) => {
|
|
|
308
308
|
var prevElapsed = 0;
|
|
309
309
|
var elapsed = 0;
|
|
310
310
|
var count = 0;
|
|
311
|
+
var reportedErrors = 0;
|
|
312
|
+
var consecutiveErrorsWithoutInteraction = 0;
|
|
311
313
|
while (ops.op_continue_running()) {
|
|
312
314
|
const dt = (elapsed - prevElapsed) / 1000;
|
|
313
|
-
|
|
315
|
+
try {
|
|
316
|
+
await module.onUpdate(dt);
|
|
317
|
+
consecutiveErrorsWithoutInteraction = 0;
|
|
318
|
+
} catch (e) {
|
|
319
|
+
reportedErrors += 1;
|
|
320
|
+
consecutiveErrorsWithoutInteraction += 1;
|
|
321
|
+
if (reportedErrors <= 10) {
|
|
322
|
+
console.error(
|
|
323
|
+
"[Sandbox worker] Error running onUpdate:",
|
|
324
|
+
e
|
|
325
|
+
);
|
|
326
|
+
|
|
327
|
+
if (reportedErrors == 10) {
|
|
328
|
+
console.error("[Sandbox worker] not logging any further uncaught errors.");
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
if (ops.op_communicated_with_renderer()) {
|
|
333
|
+
consecutiveErrorsWithoutInteraction = 0;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
if (consecutiveErrorsWithoutInteraction >= 10) {
|
|
337
|
+
throw "[Sandbox worker] too many errors without renderer interaction: shutting down";
|
|
338
|
+
}
|
|
339
|
+
}
|
|
314
340
|
prevElapsed = elapsed;
|
|
315
341
|
elapsed = new Date() - startTime;
|
|
316
342
|
count += 1;
|
|
317
343
|
}
|
|
318
|
-
console.log("[
|
|
344
|
+
console.log("[Sandbox Worker] Exiting gracefully");
|
|
319
345
|
} catch (e) {
|
|
320
|
-
console.error("[
|
|
346
|
+
console.error("[Sandbox Worker] Error during scene execution:", e);
|
|
321
347
|
}
|
|
322
348
|
|
|
323
349
|
try {
|
|
324
350
|
wasm_init.drop_context(wasmContext);
|
|
325
|
-
} catch (e) {}
|
|
351
|
+
} catch (e) { }
|
|
326
352
|
wasm_init.__wbindgen_thread_destroy();
|
|
327
353
|
self.close();
|
|
328
354
|
}
|