CitiesSkylinesMods / TMPE

Cities: Skylines Traffic Manager: President Edition
https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252
MIT License
563 stars 85 forks source link

Optimize max number of Pathfinding threads for high core/thread count CPUs #1744

Closed krzychu124 closed 1 year ago

krzychu124 commented 1 year ago
kvakvs commented 1 year ago

Just considering how many cores the game needs to run, 2-4 maybe? Give it a better informed decision than my guess here. And you can safely allocate most or all of the remaining cores.

krzychu124 commented 1 year ago

Just considering how many cores the game needs to run, 2-4 maybe?

It can use way more than 4, just not at full load. Depends on what savegame you try, but also what GPU you have, since Unity Engine is allocating additional background threads for rendering (in my case 16 worker threads).

Below, 655k map, vanilla + TM:PE and FPS Booster only, you can see it's fairly stable 35% of 32 available CPU threads. 6-8 with almost constant 100% are main, simulation and few most used pathfinding threads. It doesn't really need more than 10 (for sure not 28 as previously was😂) since there is no demand (pf counter is <25 all the time) and cannot be higher since count of citizens and vehicle instances are bounding of the limit. image