Files
0ad/source/simulation2/components
wraitii f489ab3a16 Abort formation-walking on any message from UnitMotion.
Units in formation can occasionally request many short paths (and thus
introduce crippling lag) if their offset is obstructed.
This particularly happen when the formation is idle, since the offset
then always remains obstructed.

To prevent this, it is OK to immediately stop pathing on any motion
message (obstructed, failure, success). This does not break formation
movement since messages are only sent when the formation controller is
not moving (this finishes what was started in 0535eb9b92).

Ideally, this hack could be removed if the short-pathfinder was quick
enough / units were better at aborting.

Fixes concern raised by Freagarach on a7da40ac2f.

Refs #5624 in that the max-short-path range is the source of the lag.

Reviewed By: Angen
Differential Revision: https://code.wildfiregames.com/D2871
This was SVN commit r23867.
2020-07-22 09:31:08 +00:00
..
2019-01-13 15:38:41 +00:00
2018-02-03 14:17:31 +00:00
2018-02-03 14:17:31 +00:00
2018-02-03 14:17:31 +00:00
2018-02-03 14:17:31 +00:00
2019-01-13 15:38:41 +00:00
2018-02-03 14:17:31 +00:00
2018-02-03 14:17:31 +00:00
2018-02-03 14:17:31 +00:00