You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ClosestProc in OpenRA.Mods.Common/Traits/Harvester.cs uses quite an expensive query to calculate how much harvesters are already associated with a IAcceptResources trait. It queries all harvesters to see if they are linked to IAcceptResources trait - for each trait.
An optiomization would be to just maintain an Occupancy count per IAcceptResources. Harvesters would have to increment and decrement this value.
The value indicates how many harvesters are associated with the trait. Allowing the spreading of harvesters over traits/refineries.
Relevant whenever a harvester tries to find a new refinery.
The text was updated successfully, but these errors were encountered:
ClosestProc
inOpenRA.Mods.Common/Traits/Harvester.cs
uses quite an expensive query to calculate how much harvesters are already associated with aIAcceptResources
trait. It queries all harvesters to see if they are linked to IAcceptResources trait - for each trait.An optiomization would be to just maintain an Occupancy count per
IAcceptResources
. Harvesters would have to increment and decrement this value.The value indicates how many harvesters are associated with the trait. Allowing the spreading of harvesters over traits/refineries.
Relevant whenever a harvester tries to find a new refinery.
The text was updated successfully, but these errors were encountered: