Cuberite Forum
PathFinder status - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: PathFinder status (/thread-1571.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23


RE: PathFinder status - NiLSPACE - 10-02-2015

I know, but in the bottom left corner you can see how long it took.


RE: PathFinder status - LogicParrot - 10-02-2015

(10-02-2015, 08:19 PM)NiLSPACE Wrote: I know, but in the bottom left corner you can see how long it took.

Calculating the Jump Points (What you see when "visualize recursion" is ticked) takes time. But in reality we could reuse those Jump Points for multiple path queries and even for multiple mobs. Also, there's "JPS+" which is meant to identify the Jump Points faster. But I don't know how it works and what are its weaknesses yet.

Also, I believe it should be much faster than A* in the simulation if you try it inside an enclosed space such as a maze.


RE: PathFinder status - LogicParrot - 10-02-2015

https://archive.org/details/GDC2015Rabin


RE: PathFinder status - xoft - 10-03-2015

The question is how they measure their preformance - whether by the number of recursions, or how many grid cells are evaluated etc. When there are different costs for these operations, the algorithms may behave differently performance-wise.

I'm not saying we shouldn't do it, I'm just saying we should think carefully about our circumstances.


Agree - LogicParrot - 10-03-2015

I totally agree. This is why it's very low on my priority list. Our performance doesn't seem to be terrible right now.


RE: PathFinder status - LogicParrot - 10-05-2015

Althought not feature-complete, the PathFinder is pretty decent. Once I deal with water, fences, and doors, I think I'll pause working on the PF and focus on the Mob ToDo list for a while.


RE: PathFinder status - NiLSPACE - 10-08-2015

The path finder is integrated in Cuberite, but perhaps Safwat still has the original code left.


It's integrated - LogicParrot - 10-09-2015

(10-08-2015, 12:37 AM)ImuustMINE Wrote: Where I can download the Pathfinder and how work it?

1. The PathFinder is part of Cuberite, the mobs use it to navigate. Cuberite version is here: https://github.com/cuberite/cuberite/tree/master/src/Mobs , search for Path.cpp and Path.h

2. A compiler flag makes the code work without Cuberite at all, and makes it use Irrlicht for rendering. But this version is currently broken, I'll fix it and upload it later. You'll have to stick with 1 for now.


RE: PathFinder status - LogicParrot - 10-22-2015

Recalc rewrite in progress


RE: PathFinder status - LogicParrot - 12-13-2015

Pathfinder recalculation logic was seperated from mob logic in #2668. This made monster.cpp cleaner, but it could use some more refactoring.