Skip to main content

render_tracks_parallel

Function render_tracks_parallel 

Source
pub fn render_tracks_parallel(
    inputs: &[TrackRenderInput],
) -> Vec<TrackRenderOutput>
Expand description

Render multiple tracks concurrently using rayon.

Each entry in inputs represents one track. Tracks are independent: no data is shared between them, so rayon::par_iter() is safe.

Returns one TrackRenderOutput per input, in the same order as inputs (i.e. output i corresponds to inputs[i]).

On WASM targets rayon is unavailable; the inputs are processed sequentially to keep the API surface identical across platforms.