@needle-tools/engine 5.0.8 → 5.0.10
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 +4 -0
- package/dist/{needle-engine.bundle-CddS2Pmc.min.js → needle-engine.bundle-BM-NJu5I.min.js} +4 -3
- package/dist/{needle-engine.bundle-BCA42ir1.js → needle-engine.bundle-Co5yfYD4.js} +14 -5
- package/dist/{needle-engine.bundle--J0Pgk3R.umd.cjs → needle-engine.bundle-Dr1mXJ2Y.umd.cjs} +6 -5
- package/dist/needle-engine.js +2 -2
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/lib/engine/engine_context.js +7 -0
- package/lib/engine/engine_context.js.map +1 -1
- package/lib/engine-components/AudioSource.js +1 -1
- package/lib/engine-components/AudioSource.js.map +1 -1
- package/package.json +1 -1
- package/plugins/common/cloud.js +6 -1
- package/src/engine/engine_context.ts +11 -1
- package/src/engine-components/AudioSource.ts +1 -1
|
@@ -2433,11 +2433,11 @@ Lo('if(!globalThis["NEEDLE_ENGINE_VERSION"]) globalThis["NEEDLE_ENGINE_VERSION"]
|
|
|
2433
2433
|
Lo('if(!globalThis["NEEDLE_ENGINE_GENERATOR"]) globalThis["NEEDLE_ENGINE_GENERATOR"] = "unknown";');
|
|
2434
2434
|
Lo('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUILD_TIME"] = "unknown";');
|
|
2435
2435
|
Lo('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
|
|
2436
|
-
Lo('globalThis["__NEEDLE_ENGINE_VERSION__"] = "5.0.
|
|
2436
|
+
Lo('globalThis["__NEEDLE_ENGINE_VERSION__"] = "5.0.10";');
|
|
2437
2437
|
Lo('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
2438
|
-
Lo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "
|
|
2438
|
+
Lo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Mon May 18 2026 14:49:54 GMT+0000 (Coordinated Universal Time)";');
|
|
2439
2439
|
Lo('globalThis["__NEEDLE_PUBLIC_KEY__"] = "' + NEEDLE_PUBLIC_KEY + '";');
|
|
2440
|
-
const Pi = "5.0.
|
|
2440
|
+
const Pi = "5.0.10", Lc = "undefined", Yd = "Mon May 18 2026 14:49:54 GMT+0000 (Coordinated Universal Time)";
|
|
2441
2441
|
C0 && console.log(`Engine version: ${Pi} (generator: ${Lc})
|
|
2442
2442
|
Project built at ${Yd}`);
|
|
2443
2443
|
const _r = NEEDLE_PUBLIC_KEY, Cs = "needle_isActiveInHierarchy", pa = "builtin_components", yd = "needle_editor_guid";
|
|
@@ -9499,7 +9499,7 @@ Possible solutions:
|
|
|
9499
9499
|
this._stats.end();
|
|
9500
9500
|
const e = this.time.fps < 20 ? 50 : 150;
|
|
9501
9501
|
if (this.time.frameCount % e === 0 || this.time.frameCount === 1) {
|
|
9502
|
-
const t = window.performance && window.performance.memory ? `${(window.performance.memory.usedJSHeapSize / 1024 / 1024).toFixed(2)} MB` : "n/a";
|
|
9502
|
+
const t = window.performance && window.performance.memory ? `${(window.performance.memory.usedJSHeapSize / 1024 / 1024).toFixed(2)} MB` : "n/a", i = this.renderer.getContext();
|
|
9503
9503
|
console.log(
|
|
9504
9504
|
this.renderer.info.render.calls + " DrawCalls",
|
|
9505
9505
|
`
|
|
@@ -9515,6 +9515,15 @@ Memory:`,
|
|
|
9515
9515
|
...this.renderer.info.memory
|
|
9516
9516
|
},
|
|
9517
9517
|
`
|
|
9518
|
+
Renderer:`,
|
|
9519
|
+
{
|
|
9520
|
+
dpr: this.renderer.getPixelRatio(),
|
|
9521
|
+
windowDpr: window.devicePixelRatio,
|
|
9522
|
+
antialias: i.getContextAttributes()?.antialias,
|
|
9523
|
+
samples: i.getParameter(i.SAMPLES),
|
|
9524
|
+
resolution: `${this.renderer.domElement.width}x${this.renderer.domElement.height}`
|
|
9525
|
+
},
|
|
9526
|
+
`
|
|
9518
9527
|
Target Framerate: ` + this.targetFrameRate
|
|
9519
9528
|
);
|
|
9520
9529
|
}
|
|
@@ -18727,7 +18736,7 @@ const Ct = x("debugaudio"), an = class fo extends R {
|
|
|
18727
18736
|
}
|
|
18728
18737
|
async onNewClip(e) {
|
|
18729
18738
|
if (e && (this.clip = e), typeof e == "string")
|
|
18730
|
-
if (Ct && console.log(e), e.endsWith(".mp3") || e.endsWith(".wav") || e.endsWith(".ogg") || e.endsWith(".flac") || e.endsWith(".aac") || e.endsWith(".webm")) {
|
|
18739
|
+
if (Ct && console.log(e), e.endsWith(".mp3") || e.endsWith(".wav") || e.endsWith(".ogg") || e.endsWith(".opus") || e.endsWith(".flac") || e.endsWith(".aac") || e.endsWith(".webm")) {
|
|
18731
18740
|
if (this.audioLoader || (this.audioLoader = new Kp()), this.shouldPlay = !0, this._lastClipStartedLoading === e) {
|
|
18732
18741
|
Ct && console.log("Is currently loading:", this._lastClipStartedLoading, this);
|
|
18733
18742
|
return;
|