NodeCanvas Forums › General Discussion › [NodeCanvas] Small memory allocation when changing the active subgraph
Hello! Hope this can be fixed.
I found a memory allocation when changing the active subgraph in a very common usage pattern
this allocates memory because of the lambda variables scope capture.
Attached the stack trace from a deep profiling in unity where it allocates 160 B for every sub tree change.
You are right. I plan to do another review of everything soon (something I typically do once in a while to refactor things), and will fix this 🙂
Join us on Discord: https://discord.gg/97q2Rjh
Username or Email