@idetik/core 0.45.0 → 0.45.1
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/dist/index.d.ts +2 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/src/data/chunk_store_view.d.ts +2 -1
- package/dist/types/src/data/chunk_store_view.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -325,7 +325,8 @@ declare class ChunkStoreView {
|
|
|
325
325
|
bufferWidthPx: number;
|
|
326
326
|
}): void;
|
|
327
327
|
updateChunksForVolume(sliceCoords: SliceCoordinates, viewProjection: mat4): void;
|
|
328
|
-
|
|
328
|
+
hasCompleteVisibleLOD(): boolean;
|
|
329
|
+
private allVisibleLoadedAt;
|
|
329
330
|
get currentLOD(): number;
|
|
330
331
|
maybeForgetChunk(chunk: Chunk): void;
|
|
331
332
|
dispose(): void;
|
package/dist/index.js
CHANGED
|
@@ -2412,8 +2412,10 @@ class HQ {
|
|
|
2412
2412
|
o
|
|
2413
2413
|
), this.markTimeChunksForPrefetchVolume(C, A), this.policyChanged_ = !1, this.mode_ = "volume", this.lastTCoord_ = A.t, this.lastCCoords_ = A.c ? [...A.c] : void 0, this.lastViewProjection_ = I;
|
|
2414
2414
|
}
|
|
2415
|
-
|
|
2416
|
-
|
|
2415
|
+
hasCompleteVisibleLOD() {
|
|
2416
|
+
return this.allVisibleLoadedAt(this.lodRange().max) || this.allVisibleLoadedAt(this.currentLOD);
|
|
2417
|
+
}
|
|
2418
|
+
allVisibleLoadedAt(A) {
|
|
2417
2419
|
let I = !1;
|
|
2418
2420
|
for (const [B, C] of this.chunkViewStates_)
|
|
2419
2421
|
if (!(!C.visible || B.lod !== A) && (I = !0, B.texture === void 0))
|
|
@@ -3902,7 +3904,7 @@ class Jg extends KI {
|
|
|
3902
3904
|
const A = Array.from(this.visibleChunks_.keys()).every(
|
|
3903
3905
|
(Q) => Q.texture !== void 0
|
|
3904
3906
|
);
|
|
3905
|
-
if (this.visibleChunks_.size > 0 && A && !this.chunkStoreView_.
|
|
3907
|
+
if (this.visibleChunks_.size > 0 && A && !this.chunkStoreView_.hasCompleteVisibleLOD() && !this.isPresentationStale())
|
|
3906
3908
|
return;
|
|
3907
3909
|
this.lastPresentationTimeStamp_ = performance.now(), this.lastPresentationTimeCoord_ = this.sliceCoords_.t;
|
|
3908
3910
|
const I = this.chunkStoreView_.getChunksToRender(), B = new Set(I), C = Array.from(this.visibleChunks_.keys()).filter(
|
|
@@ -4338,7 +4340,7 @@ class Yg extends KI {
|
|
|
4338
4340
|
const A = Array.from(this.visibleChunks_.keys()).every(
|
|
4339
4341
|
(Q) => Q.texture !== void 0
|
|
4340
4342
|
);
|
|
4341
|
-
if (this.visibleChunks_.size > 0 && A && !this.chunkStoreView_.
|
|
4343
|
+
if (this.visibleChunks_.size > 0 && A && !this.chunkStoreView_.hasCompleteVisibleLOD() && !this.isPresentationStale())
|
|
4342
4344
|
return;
|
|
4343
4345
|
this.lastPresentationTimeStamp_ = performance.now(), this.lastPresentationTimeCoord_ = this.sliceCoords_.t;
|
|
4344
4346
|
const I = this.chunkStoreView_.getChunksToRender(), B = new Set(I), C = Array.from(this.visibleChunks_.keys()).filter(
|