@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/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
- constructor(uploadTexture?: (texture: Texture) => void, disposeTexture?: (texture: Texture) => void, getGpuResidentBytes?: () => number, memoryLimitBytes?: number);
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;