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): numberimport { pumpStreamer } from '@driftengine/texture';Parameters
| Parameter | Type | Description |
|---|---|---|
streamer | Streamer | |
batch | readonly string[] | |
count | number |
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.