Skip to content

Use multiple drawing workers for image_with_options rendering#2386

Open
querielo wants to merge 1 commit into
KLayout:masterfrom
querielo:kirill/multithread
Open

Use multiple drawing workers for image_with_options rendering#2386
querielo wants to merge 1 commit into
KLayout:masterfrom
querielo:kirill/multithread

Conversation

@querielo

@querielo querielo commented Jul 6, 2026

Copy link
Copy Markdown

LayoutCanvas::image_with_options always rendered the layout with a single thread (workers = 0), which serialized image generation even on views configured for parallel drawing. Now it honors the view's drawing_workers() count when the view is not in synchronous mode, and waits for the asynchronous workers to finish before reading back the rendered bitmaps. This speeds up image export on large layouts while preserving the original single-threaded behavior in synchronous mode.

LayoutCanvas::image_with_options always rendered the layout with a
single thread (workers = 0), which serialized image generation even on
views configured for parallel drawing. Now it honors the view's
drawing_workers() count when the view is not in synchronous mode, and
waits for the asynchronous workers to finish before reading back the
rendered bitmaps. This speeds up image export on large layouts while
preserving the original single-threaded behavior in synchronous mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant