Closed boformer closed 9 years ago
The GetRandomBuildingInfo method is called quite frequently (especially while a building is upgrading, it is called every tick).
Right now wer are filtering the FastList of assets which are allowed to grow again every time.
It would be better to precompile one "m_areaBuildings" array for every district.
Improved by https://github.com/boformer/BuildingThemes/commit/680c0c2ab775bf29e48cf9bdcac601ff8544d161
The GetRandomBuildingInfo method is called quite frequently (especially while a building is upgrading, it is called every tick).
Right now wer are filtering the FastList of assets which are allowed to grow again every time.
It would be better to precompile one "m_areaBuildings" array for every district.