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

Very slow with many nodes #154

Open
ahmidou opened this issue May 30, 2022 · 1 comment
Open

Very slow with many nodes #154

ahmidou opened this issue May 30, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ahmidou
Copy link

ahmidou commented May 30, 2022

Hi, I was testing different ImGui node based solutions for large graphs and found out imnode doesn't scale well with many nodes.
for 500 nodes I'm under 4fps vs 150fps in imgui-node-editor.
The first curlpit happends when generating the nodes procedurally and they are all overlapping the ResolveHoveredPin is taking forever and the applicayion just doesn't respond anymore..
If I make sure the node are not overlap, the prefs are still very low ( < 4 fps)

@Nelarius Nelarius added the enhancement New feature or request label May 31, 2022
@Nelarius
Copy link
Owner

Thanks for reporting the issue!

There is some quadratic time complexity in both ResolveHoveredPin and ResolveHoveredNode which could definitely be cleaned up. Not a quick fix, but removing the quadratic complexity would probably significantly increase performance with your node counts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants