thanks for your replay
I deserialized ai during a loading screen of course.
In my case, If I load ai cost 2 or less sec that will perfect, But in my case it cost 5-7sec in MSM8998 or more in lower.
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...
It only happens if you have a OnControllerColliderHit method declared (and then I assume only if there's a collision, but with gravity that will nearly always be the case), because Unity has to allocate the hit information and provide it to you. than gc generated.
Can you provide me a dll that...
emm, my fault, my test shows the how gc generated with the OnControllerColliderHit of behavior registered, In our project, every components are be cached
The issue is behavior registered the OnControllerColliderHit method
MyTest is 30 Object with behavior tree
the profile is Collect 2.3k GC pre frame
30 Object without behavior tree the profile is
There none of GC
public class MoveTest : MonoBehaviour
{
// Start is called before...
if I Called CharacterController.Move On Ground and Unity Find OnControllerColliderHit Registered, Unity will to allocate the hit information and Call OnControllerColliderHit. It will collect 2K GC pre frame。...