Skip to content

Performance Degradation When Panning or Zooming Stage with not so Many Items Selected #1907

Open
@yevgenili

Description

@yevgenili

The performance issue is noticeable when there are 400 simple rectangles and they are selected - transformer is working.

When doing pan or zoom, stage x and y are changing and because of it all children of stage gets updated.

video:
https://github.com/user-attachments/assets/774bb92a-1587-4b7e-a515-a66c13e41457

performance tab shows it doing many transformer.update() because of _clearSelfAndDesendent:
Image

i have a minimal working example with only plain konva(no react or other dependencies):
https://codesandbox.io/p/sandbox/cnshg3?file=%2Fsrc%2Fmain.ts%3A71%2C7-71%2C24

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