I had a performance problem, memory grew wildly and eventually crashed. I looked at the code and found out it was Pathfinding What should I do?
I have 23 objects and use PathFinding constantly. It is the cause of memory growth. How do I optimize it?
The game has a whopping 12 gigabytes of RAM within 5 minutes of running and it's growing.