meichen8050753
New member
I load ExternalBehavior from pool and starBehavior with BehaviorTree.EnableBehavior();
But I found that everytime when I call BehaviorTree.EnableBehavior(), I must BinaryDeserialization form ExternalBehavior, Even they has same ExternalBehavior.
If I start with 20 monsters It will make a serious stuck and lot of memory alloc. (eg. 20mb at once)
I tried AsynchronousLoad but can't avoid memory alloc.
This is the profile one of monster AI enabled when game statrt.
that has any way start multiple ai from same externalbehavior fast and cheap ?
But I found that everytime when I call BehaviorTree.EnableBehavior(), I must BinaryDeserialization form ExternalBehavior, Even they has same ExternalBehavior.
If I start with 20 monsters It will make a serious stuck and lot of memory alloc. (eg. 20mb at once)
I tried AsynchronousLoad but can't avoid memory alloc.
This is the profile one of monster AI enabled when game statrt.
that has any way start multiple ai from same externalbehavior fast and cheap ?