Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Huge pathfinding cost when unit stand on immobile terrain needs to move to attack #21301

Open
dnqbob opened this issue Jan 14, 2024 · 2 comments

Comments

@dnqbob
Copy link
Contributor

dnqbob commented Jan 14, 2024

Testcase: use ABrandau/Shattered-Paradise-SDK@368813f
(engine version 0741439)

  1. Choose map with cliffs
  2. Use Mutant faction, build Queens
  3. Make the queen spawn egg on cliff, wait for hatching
  4. Build a fast unit (for example, Ravager) attracts the unit that stuck on cliff, then move out its attack range
  5. Huge lag
@dnqbob dnqbob added the Bug label Jan 14, 2024
@PunkPun
Copy link
Member

PunkPun commented Jan 14, 2024

the solution is to not spawn units on impassable terrain. The pathfinder was designed to handle this scenario in case of bugs, but it's not done efficiently

@dnqbob
Copy link
Contributor Author

dnqbob commented Jan 14, 2024

无标题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants