alelievr / NodeGraphProcessor

Node graph editor framework focused on data processing using Unity UIElements and C# 4.6
https://github.com/alelievr/NodeGraphProcessor/projects/2
MIT License
2.21k stars 369 forks source link

When the number of nodes is large, the editor window will become stuck #185

Open JusamLiu opened 2 years ago

JusamLiu commented 2 years ago

Hi, When the number of nodes is large, the editor window will become stuck and slowly。It already can't edit the graph node。and open the example graph asset,it also stuck. I use the version 2021.1.15 of the unity and the 1.3 of graphprocessor。 Have any idea to resolve the problem?

alelievr commented 2 years ago

Yeah, I observed a massive slow down with the latest versions too. Apparently it's related to the PropertyFields in the graph, I'm investigating the issue

JusamLiu commented 2 years ago

I have tried to open the graph in the version 2021.2 of unity,It will be a little better. but also have a little stuck and slowly

labyte commented 2 years ago

Yeah, I observed a massive slow down with the latest versions too. Apparently it's related to the PropertyFields in the graph, I'm investigating the issue

Waiting for repair

xiaoweitorch commented 1 year ago

When using a large number of PropertyFields, lag is inevitable. This is because the Bind used by the PropertyField is polled for data updates, increasing the strain on the CPU. My solution was to switch back to a normal BaseField and manually refresh the node when the data is updated to ensure uniformity of data and view. Please excuse my very poor English, use deepl to translate