Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

拖动节点(含大量子节点)不断重绘,性能问题如何解决? #3449

Open
lhC0 opened this issue Mar 31, 2023 · 5 comments
Open
Labels
bug:selection selection plugin bug

Comments

@lhC0
Copy link

lhC0 commented Mar 31, 2023

问题描述

拖动节点(含大量子节点),造成大量节点不断重绘,拖动过程中卡顿明显

重现链接

暂无

重现步骤

  1. 父节点含大量子节点,拖动父节点
  2. 发现子节点在拖动过程中不断重绘
  3. 拖动过程比较卡

预期行为

像拖动画布一样顺畅

平台

  • 操作系统: [Windows]
  • 网页浏览器: [Google Chrome]
  • X6 版本: [1.26.1 ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@Wnbwnb
Copy link

Wnbwnb commented Mar 31, 2023

同问,我在使用2.0遇到同样问题.50个左右的节点一起推动就开始卡顿了

@JoeABCDEF
Copy link

2.x 还有大批量节点进行缩放的时候有些困顿, 使用scrollbar 组件左右移动也有点 FPS下降

@LolipopJ
Copy link

@lhC0 v1 版本 React 组件渲染优化可以参考文档 渲染 React 节点 - 决定渲染频次

@NewByVector NewByVector added the type: bug 缺陷 Defects and unexpected behaviors label Jul 6, 2023
@bighhhh
Copy link
Contributor

bighhhh commented Aug 16, 2023

你把showNodeSelectionBox和showEdgeSelectionBox配置设置为false再试试,设置为false后框选不会显示选中框,但可以拖动,性能会提高很多倍,这里开启后会大量重绘选中框,导致性能下降

@NewByVector NewByVector added bug:selection selection plugin bug and removed type: bug 缺陷 Defects and unexpected behaviors labels Oct 12, 2023
@xiawenqi
Copy link
Contributor

其他软件的selection的做法都是在拖动过程中隐藏选择框,在拖拽结束(onMouseUp)时再展示, x6是否也可以采用这个方法? @NewByVector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:selection selection plugin bug
Projects
None yet
Development

No branches or pull requests

7 participants