http://corpstates.my.../CorpStates.zip
I divide the world into tiles based on the unit's radius and plot a route in this grid.
For each tile it checks, it checks for collisions with all units and buildings, which is why it's so slow, because there's so many small tiles to check.
Games like Age of Empires have to do more complex pathfinding and they aren't anywhere as laggy as mine.
Edited by polyfrag, 02 September 2012 - 01:11 AM.






