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

FruchtermanLayout 布局,gpuEnabled: true性能没有提升 #176

Open
kevinchangm opened this issue Aug 30, 2023 · 0 comments
Open

FruchtermanLayout 布局,gpuEnabled: true性能没有提升 #176

kevinchangm opened this issue Aug 30, 2023 · 0 comments

Comments

@kevinchangm
Copy link

kevinchangm commented Aug 30, 2023

antv/layout 的版本 "@antv/layout": "0.3.23",
const fruchtermanLayout = new FruchtermanLayout({
type: 'fruchterman',
center: [this.width / 2, this.height / 2],
gravity: 2,
speed: 300,
maxIteration: 500,
workerEnabled: false, // 可选,开启 web-worker
gpuEnabled: true, // 可选,开启 GPU 并行计算,G6 4.0 支持
preventOverlap: true,
animate: false,
width: this.width / getZoom(),
height: this.height / getZoom(),
onLayoutEnd: () => {
// 回调函数
},
});
this.doLayout(fruchtermanLayout, model);

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

No branches or pull requests

1 participant