Skip to content

Documentation / @ripl/core / createFrameBuffer

Function: createFrameBuffer() ​

createFrameBuffer(): FrameBuffer

Defined in: packages/core/src/animation/utilities.ts:32

Creates a debounced requestAnimationFrame wrapper that cancels any pending frame before scheduling a new one. The returned scheduler carries a FrameBuffer.cancel handle so a pending frame can be dropped outright.

Returns ​

FrameBuffer