Siccity / SerializableCallback

UnityEvent and System.Func had a child
MIT License
359 stars 53 forks source link

Freezes when a large number of nodes #12

Closed Navka1 closed 4 years ago

Navka1 commented 4 years ago

First at all thank you for your amazing job.

I use your framework for dialogue system and at now there is about 430 nodes in one asset. I started to notice that the more nodes, the more the editor freezes. Especially noticable when inputing in TextArea or string input.

Also I noticed that reopening editor removes freezes for a while.

I'm really new in Unity, but about month creating my own dialogue system and all that I can provide to help me it`s screenshot from profiler.

Maybe you can know some tricks or important nuances when use your framework to avoid freezes?

THX!

image

Siccity commented 4 years ago

430 nodes is a lot of nodes. You should look into splitting it into several graphs

Navka1 commented 4 years ago

Thank you, I thought about this idea but it's not very convenient. Before using this solution I was looking for ways of speeding large graphs. But if you don't have any ideas about it, splitting is the most useful decision.

Siccity commented 4 years ago

There is the possibility of implementing LOD node editors, which will significantly increase framerate when zoomed out. Its not built-in so you will have to implement it yourself using custom node editors. I know there are some people on the discord channel who have done this before.

Navka1 commented 4 years ago

Thanks again for your help! I will look at the discord channel.