Repository navigation
navigation: link teleport nodes to their parent's cast origin (Theta*) - #72
Open
ResurrectedTrader wants to merge 1 commit into
Open
ResurrectedTrader wants to merge 1 commit into
ResurrectedTrader wants to merge 1 commit into
Conversation
Where no ring jump makes progress - typically along a wall - the teleport search falls back to 8-way walk steps, and charged each one a full cast. It so believed a crawl along a wall cost a cast per cell, picked routes on that belief, and returned the crawl, which scripts then cast one cell at a time. A node is now linked to its parent's own cast origin whenever that is still within range, so walk steps cost nothing until they outgrow one cast and the emitted chain is the cast sequence itself. On the 20 real- map fixtures (1140 random pairs, hWeight 3.0) this cuts casts by 40.5% at radius 40 and 40.7% at radius 20, finds paths in about half the time, and beats both a reference-style post-reduction of the old search and the reference d2bs reducer on cast count. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Teleport path search: link a node to its parent's own cast origin whenever that is still within range (Theta*-style).
Where no ring jump makes progress (typically along a wall) the search falls back to 8-way walk steps and charged each a full cast, so it picked and returned wall crawls that scripts then cast one cell at a time. Walk steps now cost nothing until they outgrow one cast, and the emitted chain is the cast sequence itself.
On the 20 real-map fixtures (1140 random pairs, hWeight 3.0): 40.5% fewer casts at radius 40, 40.7% at radius 20, about half the search time; fewer casts than both a reference-style post-reduction of the old search and the reference d2bs reducer.
Adds
TeleportAStarTestcases for the wall crawl.Verification
build.ps1 Release(Win32, the 1.14d DLL): buildsbuild.ps1 test: 170/170 passbuild.ps1 check-format: clean🤖 Generated with Claude Code