Skip to main content

RenderSessionOptions

Configuration options for a render session.
number
required
First frame to render (must be non-negative)
number
required
Last frame to render (must be >= startFrame)
AbortSignal
Optional AbortSignal to cancel the render session

RenderSession

Async iterable session for rendering frames sequentially.
Helios
required
Helios instance to control
RenderSessionOptions
required
Render session configuration

Usage

RenderSession is an async iterable that yields frame numbers. For each frame, it:
  1. Seeks the Helios instance to the frame
  2. Waits for the frame to be stable (all animations settled)
  3. Yields the frame number
  4. Checks if the session was aborted

Example

Partial rendering

Aborting a session

Integration with capture

Error handling

Throws an error if:
  • startFrame is negative
  • endFrame is less than startFrame

Notes

  • The session automatically waits for each frame to be stable before yielding
  • Abort checks occur before starting, before each frame, and after waiting
  • The session gracefully exits when aborted (does not throw)
  • Frame seeking is sequential; parallel rendering requires multiple instances