Merge tilemap nav2d tiles into one whole nav2d mesh

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Newby

So my chase script works fine even with multiple enemies if the nav2d mesh is one whole polygon but when i use my tileset with navigation it starts lagging every time it calls the get_simple_path() is there a way to merge the tiles so is can form into one polygon or are there any alternative ways to use the tileset navigation.

:bust_in_silhouette: Reply From: Newby

So i just removed my nav2d from my tilemap and created a nav mesh manually and it stops lagging so maybe my script doesnt work well with tile map nav mesh or my map was too big.