@idetik/core 0.29.0 → 0.30.0
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/assets/worker_kernel-CBlE4MBI.js.map +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +386 -368
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +25 -25
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/src/data/chunk.d.ts +1 -0
- package/dist/types/src/data/chunk.d.ts.map +1 -1
- package/dist/types/src/data/chunk_manager.d.ts +6 -1
- package/dist/types/src/data/chunk_manager.d.ts.map +1 -1
- package/dist/types/src/data/chunk_queue.d.ts +1 -1
- package/dist/types/src/data/chunk_queue.d.ts.map +1 -1
- package/dist/types/src/data/chunk_store.d.ts.map +1 -1
- package/dist/types/src/idetik.d.ts +2 -0
- package/dist/types/src/idetik.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ type ChunkViewState = {
|
|
|
49
49
|
type Chunk = {
|
|
50
50
|
data?: ChunkData;
|
|
51
51
|
texture?: Texture;
|
|
52
|
+
releasedAt?: DOMHighResTimeStamp;
|
|
52
53
|
state: "unloaded" | "queued" | "loading" | "loaded";
|
|
53
54
|
lod: number;
|
|
54
55
|
shape: {
|
|
@@ -260,7 +261,9 @@ declare class ChunkManager {
|
|
|
260
261
|
private readonly disposeTexture_?;
|
|
261
262
|
private readonly getGpuResidentBytes_;
|
|
262
263
|
private readonly memoryLimitBytes_;
|
|
263
|
-
|
|
264
|
+
private readonly maxGpuUploadsPerUpdate_;
|
|
265
|
+
private readonly resident_;
|
|
266
|
+
constructor(uploadTexture?: (texture: Texture) => void, disposeTexture?: (texture: Texture) => void, getGpuResidentBytes?: () => number, memoryLimitBytes?: number, maxConcurrentRequests?: number, maxGpuUploadsPerUpdate?: number);
|
|
264
267
|
get memoryLimitBytes(): number;
|
|
265
268
|
get queueStats(): QueueStats;
|
|
266
269
|
get memoryStats(): {
|
|
@@ -269,7 +272,10 @@ declare class ChunkManager {
|
|
|
269
272
|
};
|
|
270
273
|
addView(source: ChunkSource, policy: ImageSourcePolicy): ChunkStoreView;
|
|
271
274
|
update(): void;
|
|
275
|
+
private releaseChunk;
|
|
272
276
|
private enqueueWithinBudget;
|
|
277
|
+
private evictionCandidates;
|
|
278
|
+
private evictWorseChunks;
|
|
273
279
|
private chunkBytes;
|
|
274
280
|
private uploadLoadedChunks;
|
|
275
281
|
private disposeChunkTexture;
|
|
@@ -651,6 +657,8 @@ type IdetikParams = {
|
|
|
651
657
|
overlays?: Overlay[];
|
|
652
658
|
showStats?: boolean;
|
|
653
659
|
memoryLimitMB?: number;
|
|
660
|
+
maxConcurrentRequests?: number;
|
|
661
|
+
maxGpuUploadsPerUpdate?: number;
|
|
654
662
|
};
|
|
655
663
|
type IdetikContext = {
|
|
656
664
|
chunkManager: ChunkManager;
|