Hello, I have a question, I created a similar behavior of more than 40 node tree asset, when I dynamic loading role object, CPU time consuming in the Profiler and GC Alloc looks a little terror, I checked the time-consuming function, found to be appear in the Graph. Deserialize, Deserialize the json data is cost so much, how can change the status quo, please
Initializing graphs and due to json deserialization, is definitely slow, but judging from your image it seems slower than it should generally be. Is it possible for you to send me the graph used so that I take a look at what types are serialized closer (support_AT_paradoxnotion.com) ?
Also, it is generally a good practice to pre-load the graph related gameobjects at “load time” instead of instantiating them on the fly, since regardless of how much optimization I might be able to put into the json deserialization, it would never achieve no allocations.
Once again, if possible, please do send me the graph used to support_AT_paradoxnotion.com so that I can see what can potentially be optimized.
Initializing graphs and due to json deserialization, is definitely slow, but judging from your image it seems slower than it should generally be. Is it possible for you to send me the graph used so that I take a look at what types are serialized closer (support_AT_paradoxnotion.com) ?
Also, it is generally a good practice to pre-load the graph related gameobjects at “load time” instead of instantiating them on the fly, since regardless of how much optimization I might be able to put into the json deserialization, it would never achieve no allocations.
Once again, if possible, please do send me the graph used to support_AT_paradoxnotion.com so that I can see what can potentially be optimized.
Thanks!
[/quote]
I am sorry that I have been busy with other functions of the project recently.Could you please leave your email? I will send you a copy of the demo.