MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / getPrefetchChunkSize

Function getPrefetchChunkSize

src/hooks/asyncImageCachePolicy.ts:22–24  ·  view source on GitHub ↗
(maxConcurrentLoads: number, multiplier = 4)

Source from the content-addressed store, hash-verified

20}
21
22export function getPrefetchChunkSize(maxConcurrentLoads: number, multiplier = 4): number {
23 return Math.max(1, Math.floor(maxConcurrentLoads) * multiplier);
24}
25
26export function getPrefetchProgress(completed: number, total: number): number {
27 if (total <= 0) {

Callers 2

prefetchAsyncImagesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected