So i instantiate some enemies with NAV, problem is game always frezze a few secs when they spawned. I thought NAV cause this but not.
I find out it from spawn codes, here is codes with freeze:
_zb = zombie.instantiate()
get_node("Chars_List").add_child(zb)
_zb.global_position = get_node("Spawn_Point_List/Spawn_Enemy2").global_position
Change to this make it no longer freeze:
_zb = _zombie.instantiate()
zb.global_position = get_node("Spawn_Point_List/Spawn_Enemy2").global_position
get_node("Chars_List").add_child(zb)
Can anyone know why or how it work?