@idetik/core 0.29.1 → 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: {
@@ -261,6 +262,7 @@ declare class ChunkManager {
261
262
  private readonly getGpuResidentBytes_;
262
263
  private readonly memoryLimitBytes_;
263
264
  private readonly maxGpuUploadsPerUpdate_;
265
+ private readonly resident_;
264
266
  constructor(uploadTexture?: (texture: Texture) => void, disposeTexture?: (texture: Texture) => void, getGpuResidentBytes?: () => number, memoryLimitBytes?: number, maxConcurrentRequests?: number, maxGpuUploadsPerUpdate?: number);
265
267
  get memoryLimitBytes(): number;
266
268
  get queueStats(): QueueStats;
@@ -270,7 +272,10 @@ declare class ChunkManager {
270
272
  };
271
273
  addView(source: ChunkSource, policy: ImageSourcePolicy): ChunkStoreView;
272
274
  update(): void;
275
+ private releaseChunk;
273
276
  private enqueueWithinBudget;
277
+ private evictionCandidates;
278
+ private evictWorseChunks;
274
279
  private chunkBytes;
275
280
  private uploadLoadedChunks;
276
281
  private disposeChunkTexture;