Skip to content

Slow render of large number of top level objects #588

Description

@lorenzncode

I tested performance of a VTK.js based viewer, cadquery.fig, and CQ-editor with large number of shapes at top level. It looks like there may be room for CQ-editor performance improvement for this scenario. See video. Both the VTK.js viewer and CQ-editor run the script on the left. The second script calls cadquery.fig show.

from cadquery.func import *

num = 1
#num = 40
for i in range(1, num + 1, 1):
    for j in range(1, num + 1, 1):
        globals()[f"b_{i}_{j}"] = box(1, 1, 1).move(
            x=1.1 * i,
            y=1.1 * j,
            z=0,
        )
perf_compare.mp4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions