pub fn create_batch_renderer(
config: &BatchRenderConfig,
) -> Result<BatchRenderer, RenderError>Expand description
Create a new batch renderer for efficient multi-viewpoint rendering.
This creates a persistent Bevy app that can render multiple viewpoints without subprocess spawning overhead. Achieves 10-100x speedup vs individual render_to_buffer calls.
§Arguments
config- Batch rendering configuration
§Returns
A BatchRenderer instance ready to queue render requests
§Example
ⓘ
use bevy_sensor::{create_batch_renderer, queue_render_request, render_next_in_batch, BatchRenderConfig};
let mut renderer = create_batch_renderer(&BatchRenderConfig::default())?;