Skip to content

Refactor astar pt3#3650

Draft
dkargin wants to merge 17 commits intoWarzone2100:masterfrom
dkargin:refactor_astar_pt3
Draft

Refactor astar pt3#3650
dkargin wants to merge 17 commits intoWarzone2100:masterfrom
dkargin:refactor_astar_pt3

Conversation

@dkargin
Copy link
Copy Markdown
Contributor

@dkargin dkargin commented Feb 23, 2024

No description provided.

dkargin added 17 commits June 11, 2023 22:05
Current A* implementation is tailored for single unit/single path
requests. But can provide a wider functionality, like calculation of
shared flow field, or fast distance transform or group path finding.

Current changes are trying to make this component more generic:
 - A* wave propagation now uses separate predicate function, which
provides checks for goal and heuristic costs
 - Path tracing moved to a standalone function
1. Wrapped PF map cache into a standalone structure/instance
2. Moved all global state out of astar.cpp.
3. Using backward path search. It provides more opportunities for reusing
previous contexts.
4. Introduced cost accessor to A* wave exploration
Implemented debug rendering for pathginding:
 - renderer for blocking layer
 - rendering of current paths
 - drawing of path context
@ManManson ManManson self-requested a review March 13, 2024 17:43
@KJeff01 KJeff01 mentioned this pull request Oct 1, 2024
@past-due past-due marked this pull request as draft January 30, 2025 20:34
@KJeff01 KJeff01 added the PR: Limbo Work that was never finished and may have significant conflicts. PRs will be slated for closure. label Aug 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement PR: Limbo Work that was never finished and may have significant conflicts. PRs will be slated for closure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants