Renders a list of independent scenes across cores. This is
embarrassingly parallel — one whole scene per worker, nothing shared — which
is why it exists while tiling a single raster across threads does not:
that needs synchronised access to one pixmap and is declined in
PERFORMANCE.md.
Arguments
- scenes
A named or unnamed list of scenes.
- paths
Output paths, one per scene. The format of each comes from its extension, exactly as in
render(). Whenscenesis named andpathsis a single directory, files are named after the list.- workers
Number of parallel workers. Defaults to one per available core, capped at the number of scenes.
- ...
Passed to
render()for every scene.
Details
The saving is real when the scenes are substantial and there are several of
them. For a handful of small figures the process/thread overhead dominates and
a plain lapply(scenes, render) is as fast; this reports enough to tell.
