DriftTexture · function

pumpStreamer

Ask for the first count tiles of batch that are worth asking for. Returns how many were sent.

Explained in DriftTexture.

function pumpStreamer(streamer: Streamer, batch: readonly string[], count: number): number
import { pumpStreamer } from '@driftengine/texture';

Parameters

ParameterTypeDescription
streamerStreamer
batchreadonly string[]
countnumber

In depth

Skips anything already resident, already in flight, or known missing — which is what makes calling this every frame with the same batch correct rather than a fetch storm.