render_loop

The frame-batching render loop, split out of algan.scene.

RenderLoopMixin is mixed into Scene and is not useful standalone (self is always the Scene). It owns everything between “the timeline has recorded animations” and “frames are streamed to the video writer”: batch sizing by memory budget, timeline state materialization and primitive batching (_get_batch_of_primitives()), the prefetch pipeline (get_frames()), per-batch rendering (_render_primitive_batch()), and video file output (_render_to_video()).

Classes

RenderLoopMixin

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

Functions

write_frames_from_queue(queue, file_writer)[source]

Exceptions