@needle-tools/gltf-progressive 4.0.0-alpha.3 → 4.0.0-alpha.5
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/CHANGELOG.md +6 -0
- package/gltf-progressive.js +126 -124
- package/gltf-progressive.min.js +8 -8
- package/gltf-progressive.umd.cjs +7 -7
- package/lib/loaders.js +24 -34
- package/lib/utils.internal.js +3 -8
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/lib/utils.internal.js
CHANGED
|
@@ -106,14 +106,9 @@ export class PromiseQueue {
|
|
|
106
106
|
constructor(maxConcurrent, opts = {}) {
|
|
107
107
|
this.maxConcurrent = maxConcurrent;
|
|
108
108
|
this.debug = opts.debug ?? false;
|
|
109
|
-
//
|
|
110
|
-
//
|
|
111
|
-
|
|
112
|
-
globalThis.requestAnimationFrame(this.tick);
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
setTimeout(this.tick, 0);
|
|
116
|
-
}
|
|
109
|
+
// Start with a timer, not requestAnimationFrame: window rAF does not fire while an immersive WebXR session
|
|
110
|
+
// is presenting (e.g. a page reloaded straight into VR via sessiongranted), so the queue would never tick.
|
|
111
|
+
setTimeout(this.tick, 0);
|
|
117
112
|
}
|
|
118
113
|
tick = () => {
|
|
119
114
|
this.internalUpdate();
|
package/lib/version.js
CHANGED
package/package.json
CHANGED