Skip to content

Improve performance render many shapes#589

Merged
jmwright merged 3 commits into
CadQuery:masterfrom
lorenzncode:perf-many-shapes
Jul 6, 2026
Merged

Improve performance render many shapes#589
jmwright merged 3 commits into
CadQuery:masterfrom
lorenzncode:perf-many-shapes

Conversation

@lorenzncode

Copy link
Copy Markdown
Member

Add test to measure render and erase time in CI. Locally on GPU I measure >7s.

@lorenzncode

Copy link
Copy Markdown
Member Author

@jmwright This is ready. In my local testing the 400 shape render time was reduced to < 200ms from ~7s. The pytest is a coarse test and will catch only significant drops in performance.

Currently there is no status update during render. This could be improved in the future. Perhaps the viewer updates can be changed to not be strictly batched as in this PR. I think updates should be based on timing rather than per shape which is too slow. So viewer updates could be made say every 0.5s or there could be some other indication of progress/status.

@lorenzncode lorenzncode marked this pull request as ready for review July 4, 2026 14:30

@jmwright jmwright left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @lorenzncode !

@jmwright jmwright merged commit 6daf9c0 into CadQuery:master Jul 6, 2026
3 checks passed
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.

2 participants