2023-04-24 15:49:03 +02:00

2.5 KiB

1ASTAR_NO_ZIP Enable to strip out usage of the DotNetZip library. Increases serialized data size, but this is only relevant if you are using cached startup or loading serialized graphs during runtime. You can delete the Pathfinding.Ionic.Zip.Reduced dll after you have enabled this. You will have to reconfigure all graph settings after enabling.
2ASTAR_FAST_NO_EXCEPTIONS Needs to be enabled for the iPhone build setting Fast But No Exceptions to work.
3ASTAR_GRID_NO_CUSTOM_CONNECTIONS Disabling this will reduce memory usage and improve performance slightly but you will not be able to add custom connections to grid nodes using e.g the NodeLink component.
4ASTAR_LEVELGRIDNODE_FEW_LAYERS Reduces the max number of layers for LayeredGridGraphs from 255 to 16. Saves memory.
5ASTAR_NO_PENALTY Enabling this disables the use of penalties. Reduces memory usage.
6ASTAR_NO_POOLING Disable pooling for some reason. Could be debugging or just for measuring the difference.
7ASTAR_NoGUI Disables the use of the OnGUI function, can possibly improve performance by a tiny bit (disables the InGame option for path debugging).
8ASTAR_POOL_DEBUG Enables debugging of path pooling. Will log warnings and info messages about paths not beeing pooled correctly.
9ASTAR_RECAST_CLASS_BASED_LINKED_LIST Disables the array based linked list. This might handle very large tiles better, however it is usually slower to scan and uses more memory (during scanning).
10ASTAR_RECAST_BFS Enables an experimental optimization to recast. Faster scanning and updating but can sometimes fail to generate any navmesh at all (this is relatively rare though).
11ASTAR_RECAST_LARGER_TILES Raises the vertex count limit on recast tiles, but reduces the max number of tiles.
12ASTAR_SET_LEVELGRIDNODE_HEIGHT Enables a field height for each node if you want to use that information. Not used by any included scripts. Warning: Will break node serialization (for e.g cached startup) if changed.
13ProfileAstar Enables profiling of the pathfinding process.
14ASTAR_UNITY_PRO_PROFILER Requires ProfileAstar, profiles section of astar code which will show up in the Unity Pro Profiler.
15ASTAR_JPS Enables jump point search support for grid graphs. There is a separate toggle in the grid graph settings. Disable this if you do not use it since it reduces memory usage.