pub fn render_parallel<F, B>(
backend: &B,
config: &NativeRenderConfig,
scene_fn: F,
) -> Result<Vec<PathBuf>, RasterError>Expand description
Render all frames in parallel using Rayon, then write PNGs.
Frames are rendered concurrently across all available CPU cores.
Requires backend to implement Send + Sync.
§Performance
On a machine with N cores, this is roughly N× faster than sequential for the rasterization step. PNG file I/O is still sequential to preserve order.