|
static T | GetPath () |
|
static int | GetSize () |
|
static int | GetTotalCreated () |
|
static void | Recycle (T path) |
| Recycles a path and puts in the pool.
|
|
static void | Warmup (int count, int length) |
| Warms up path, node list and vector list pools.
|
|
|
static Stack< T > | pool |
|
static int | totalCreated |
|
static void Recycle |
( |
T |
path | ) |
|
|
static |
Recycles a path and puts in the pool.
This function should not be used directly. Instead use the Path.Claim and Path.Release functions.
static void Warmup |
( |
int |
count, |
|
|
int |
length |
|
) |
| |
|
static |
Warms up path, node list and vector list pools.
Makes sure there is at least count paths, each with a minimum capacity for paths with length length in the pool. The capacity means that paths shorter or equal to the capacity can be calculated without any large allocations taking place.
The documentation for this class was generated from the following file:
- /Users/aron/Unity/AstarPathfindingGIT/Assets/AstarPathfindingProject/Core/Misc/PathPool.cs