boformer / BuildingThemes

Mod for Cities:Skylines
http://steamcommunity.com/sharedfiles/filedetails/?id=466158459
MIT License
13 stars 11 forks source link

Performance of the Filter #47

Closed boformer closed 9 years ago

boformer commented 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.

boformer commented 9 years ago

Improved by https://github.com/boformer/BuildingThemes/commit/680c0c2ab775bf29e48cf9bdcac601ff8544d161