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

[Feature]: 虽然开启了局部渲染partial,但是数据过多还是会卡(上万个节点和上万条边) #1665

Open
super-diao opened this issue Jul 5, 2024 · 0 comments

Comments

@super-diao
Copy link

背景&目的

可能有更好的办法解决,我说一下我的优化思路,增加一个开关,为true时:
1. 获取当前显示范围内的点;
2. 根据1中结果,获取有连线的其他点;
3. 根据1、2中得到的点,获取与这些有关的边;
4. 渲染1、2、3得到的点和边;
5. 移动和缩放画布时,执行1-4的计算,重新计算应该显示的点和边。

已知问题:小地图就不能显示完整的图了。移动和缩放画布时,会疯狂计算,这里需要有性能优化。

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

No branches or pull requests

1 participant