API Reference › Assets › Assets.pump
method

Assets.pump

Assets.pump(max) -> int

Loads up to max queued assets this frame, registering each under its name, and returns how many it loaded. Call it each frame in a loading scene with a small max so the frame stays short and the loading screen animates; Assets.ready flips true when the queue is drained. This is the deterministic, no-threads form of async preloading — the work is spread across frames instead of stalling one.

← All symbols