Closed BraveMole closed 2 years ago
So to be absolutely clear.
This is for static maps so things can pathfind through yes?
So to be absolutely clear.
This is for static maps so things can pathfind through yes?
Yeah, you need to prenode.
So to be absolutely clear.
This is for static maps so things can pathfind through yes?
Yeah, you need to prenode.
Ok so to ask the incredibly dumb question.
If we need to pre node, why don't we just pre path for even more performance?
If we need to pre node, why don't we just pre path for even more performance?
Typical map has 1500 nodes, so that's about 1 million paths to compute and then save. I'd say it's not worth it.
Plus in TGMC system you can place additional goal nodes that will link to the node map
A lot of this code scares me. Lots and lots of unwraps, and I highly doubt mut_static is a thing we want.
Returns the shortest path in a static node map. That is made for TGMC wich uses manually placed nodes for pathfinding.
Benchmark : That's the average number of path computed in one second, out of 30 runs with random nodes. Size of the node map is roughly 800
On average 32 times faster than tgmc a* implementation. Another possible comparison is with TG's JPS system, and according to the benchmark done here it's 7000 times faster (https://github.com/tgstation/tgstation/pull/56780). Not exactly the same use cases though