UBCSailbot / raye-global-pathfinding

UBC Sailbot's Global Pathfinding Repository: A* pathfinding that creates sailing paths with minimized length and desirable wind speeds throughout.
MIT License
5 stars 1 forks source link

Reduce time to run #46

Closed tylerlum closed 3 years ago

tylerlum commented 3 years ago

Could include changes like:

tylerlum commented 3 years ago

New idea from Kieran: Store a hex planet object for each size. Code would look something like:

HexPlanet generate_planet(uint8_t subdivision_level, uint8_t indirect_neighbour_depth, bool silent, bool verbose) {
  if ("subdivision_level.o" exists)
  {
    std::cout << "YAY SAVE TIME";
    return open("subdivision_level.o");
  }
  // original code without cached stuff
tylerlum commented 3 years ago

Added planet caching in #57 . Seems like removing indirect neighbours significantly worsens pathfinding quality, so leaving that the same