CityScope / CSL_Hanoi

Repository dedicated to project related to Hanoi City
GNU General Public License v3.0
3 stars 2 forks source link

Simulation speed and layers #27

Closed tnguyenh closed 4 years ago

tnguyenh commented 4 years ago

The model is currently running very slowly. A great amount of lag is induced by two layers: the landuse and the main_river.

It is related to issue #18 . Both layers require simplification. Maybe main_river can be simplified manually, I will check this.

tnguyenh commented 4 years ago

For main_river, there are a lot of vertices, but also a lot of small ponds or lakes. Maybe we should consider removing the smallest ones.

image

agrignard commented 4 years ago

I have just created a simple shape with only the red river (I kept the original one also) We are basically gaining a factor of 10% per step which is not that bad (for the user it's almost the same as the small part of the red river were almost invisible from the table) It goes from 400 agents to 20.

In this commit https://github.com/CityScope/CSL_Hanoi/commit/99e3a156f7306305be795e073fbbd2c04a5196f5

Screen Shot 2019-11-12 at 10 34 44