Reply To: Perfomance issue (Compile/Play time)

NodeCanvas Forums Support Perfomance issue (Compile/Play time) Reply To: Perfomance issue (Compile/Play time)

#12988
Gavalakis
Keymaster

Hello,

Indeed due to json deserialization and when the graphs initialize there is due to be a performance impact for that frame, mostly due to the allocations made for creating the objects. I have already very much optimized what came stock with the json serializer I am using (FullSerializer) and constantly try to optimize it even further. I have even looked at different json serializers but they were either slower or very limited out of all that I’ve tested.

While I am always on the lookout for a better serialization framework (recently seen some good especially NetJson), I can’t tell for sure when one or the other is implemented, but I would definitely need to either improve the existing serializer even more, or change to another one.

Of course, one way to avoid possible spikes in either case, would be to pre-instantiate all or most of the GraphOwner gameobject in load time, rather than instantiating them on the fly if that is indeed something that you do.

Thank you!

Join us on Discord: https://discord.gg/97q2Rjh