@dcl-regenesislabs/bevy-explorer-web 0.1.0-27463763533.commit-7805321 → 0.1.0-27472106459.commit-7d417d0
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 +1 -1
- package/package.json +3 -3
- package/pkg/manifest.json +1 -1
- package/pkg/webgpu_build_bg.wasm +0 -0
- package/sandbox_worker.js +5 -1
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-27472106459.commit-7d417d0"
|
package/index.html
CHANGED
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
}
|
|
412
412
|
</style>
|
|
413
413
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
|
|
414
|
-
<script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-
|
|
414
|
+
<script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-27472106459.commit-7d417d0";</script>
|
|
415
415
|
</head>
|
|
416
416
|
<body>
|
|
417
417
|
<div id="header" class="container">
|
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-27472106459.commit-7d417d0",
|
|
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-27472106459.commit-7d417d0",
|
|
12
|
+
"commit": "7d417d09616103de626cd912fb3c3a25a3cce0ca"
|
|
13
13
|
}
|
package/pkg/manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"wasmSize":
|
|
1
|
+
{"wasmSize":109586469}
|
package/pkg/webgpu_build_bg.wasm
CHANGED
|
Binary file
|
package/sandbox_worker.js
CHANGED
|
@@ -335,8 +335,12 @@ self.onmessage = async (event) => {
|
|
|
335
335
|
var count = 0;
|
|
336
336
|
var reportedErrors = 0;
|
|
337
337
|
var consecutiveErrorsWithoutInteraction = 0;
|
|
338
|
+
// Cap the per-frame dt handed to the scene: a slow frame must not feed dt-scaled scene
|
|
339
|
+
// logic (timers, animations) a multi-second step. Mirrors MAX_SCENE_DT in
|
|
340
|
+
// crates/dcl_deno/src/js/mod.rs.
|
|
341
|
+
const MAX_SCENE_DT_SECONDS = 1;
|
|
338
342
|
while (ops.op_continue_running()) {
|
|
339
|
-
const dt = (elapsed - prevElapsed) / 1000;
|
|
343
|
+
const dt = Math.min((elapsed - prevElapsed) / 1000, MAX_SCENE_DT_SECONDS);
|
|
340
344
|
ops.op_set_elapsed(elapsed / 1000);
|
|
341
345
|
try {
|
|
342
346
|
await module.onUpdate(dt);
|