RenderLoopMixin

Qualified name: algan.render\_loop.RenderLoopMixin

class RenderLoopMixin[source]

Bases: object

Frame batching, batch preparation, and the render/video-output loop (mixed into Scene).

Methods

get_frames

Yield frames and always release per-render state on exit.

Attributes

premultiplied_over

Whether frames are exported for linear-light over compositing; see set_premultiplied_over(), which owns the setting.

get_frames(start_time_ind, end_time_ind, background=None, post_processes=(<function bloom_filter>, ), manual_memory=True)[source]

Yield frames and always release per-render state on exit.

The wrapper is deliberately outside the implementation generator so its finally also runs for OOMs, worker failures, and callers that close the generator before consuming every frame.

premultiplied_over = False

Whether frames are exported for linear-light over compositing; see set_premultiplied_over(), which owns the setting. Declared here because the render loop reads it directly and a Scene need not have run __init__ to be rendered from – the memory preflight tests build one with Scene.__new__. Off is the inert value, so the default is the pre-feature behaviour.