0ad/source/simulation2
wraitii 7350b9042e Don't poll territory in Position component
CmpPosition::TurnStart checks whether the territory changed underneath
each entityevery turn. The only user of this is TerritoryDecay
(structures, for the most part). It is rather inefficient to have this
done for all entities.
The simplest solution is to listen to position-changed messages in
TerritoryDecay instead. This should hardly ever happen in vanilla 0
A.D., except in Atlas, so it's basically free.

This sort of reverts 19965ce37a (original implementation) and
c44b48bd59.

Accepted By: Freagarach (concept only)
Differential Revision: https://code.wildfiregames.com/D5009
This was SVN commit r27673.
2023-06-13 15:48:03 +00:00
..
components Don't poll territory in Position component 2023-06-13 15:48:03 +00:00
docs Migrate DEFINE_INTERFACE_METHOD_* to the ScriptFunction wrappers. 2021-05-01 08:01:30 +00:00
helpers Remove some unnecessary string copy related to substr. 2022-12-04 19:56:12 +00:00
scripting Don't poll territory in Position component 2023-06-13 15:48:03 +00:00
serialization Fix the removal of implicit conversions in libfmt 10 by using explicit casts. 2023-05-31 12:03:04 +00:00
system Allow other root XML than entity. 2022-12-30 07:34:23 +00:00
tests Allow other root XML than entity. 2022-12-30 07:34:23 +00:00
MessageTypes.h Don't poll territory in Position component 2023-06-13 15:48:03 +00:00
Simulation2.cpp Move GenericName, History and Icon from the civ-JSON to cmpIdentity. 2022-02-05 06:24:45 +00:00
Simulation2.h Move GenericName, History and Icon from the civ-JSON to cmpIdentity. 2022-02-05 06:24:45 +00:00
TypeList.h Don't poll territory in Position component 2023-06-13 15:48:03 +00:00