0ad/source/simulation2
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
..
components Abort formation-walking on any message from UnitMotion. 2020-07-22 09:31:08 +00:00
docs Replace deprecated jsval with JS::Value. 2017-08-28 10:27:36 +00:00
helpers Fix building on GCC 10, fixes #5709, #5756. 2020-06-30 10:24:00 +00:00
scripting Improve the warning message for FromJSValue<CColor> when trying to convert a non-object to CColor. 2020-06-01 16:09:28 +00:00
serialization RangeManager: Grid for 2D array, enum cleanups. 2020-06-13 09:05:40 +00:00
system Rework ScriptInterface EnumeratePropertyNames to support non-enumerable properties. 2020-06-14 09:49:32 +00:00
tests RangeManager: Grid for 2D array, enum cleanups. 2020-06-13 09:05:40 +00:00
MessageTypes.h UnitMotion - Send messages to UnitAI when obstructed, to allow stopping early when walking and avoiding pathfinding lag. 2019-07-22 18:07:24 +00:00
Simulation2.cpp Use victory conditions json's in Atlas 2020-07-18 17:39:59 +00:00
Simulation2.h Use victory conditions json's in Atlas 2020-07-18 17:39:59 +00:00
TypeList.h Add a C++ interface for CCmpAttack. 2020-04-21 21:44:05 +00:00