Cities: Skylines

Cities: Skylines

Loading Screen Mod
Igor 1 Jun, 2019 @ 4:01pm
Why so much memory?
Hello!
I subscribe to several mods and objects. A folder with all additions takes only 3 gigabytes.
But when the game is loading, when a list of missing objects is shown, I see that the game uses as much as 14 gigabytes RAM.
Why so much?
Last edited by Igor; 1 Jun, 2019 @ 4:02pm
< >
Showing 1-5 of 5 comments
thale5  [developer] 5 Jun, 2019 @ 9:30am 
@mercenary_Artem That is how games work. File storage is optimized for small size whereas memory storage is optimized for fast performance.

In addition, the Unity game engine runs on Mono, which is quite wasteful because of garbage collection etc.
Is there anyway that a CSL mod could activate Mono's Garbage cleaning function?
Assuming there is such a feature of course.
thale5  [developer] 11 Sep, 2019 @ 11:28am 
@Evil Dave of Canada Yes, garbage collection can be invoked. But it is not necessary, the platform does it automatically.

Back in the 2015-2017 time frame, there was a *major* bug in the base game that made asset loading very slow (it is much faster these days). The bug was just one line of code that was invoked very often. Here it is:

~Image() { Dispose(); GC.Collect(); // many hours were lost because of this line }
So I should make sure to add that in to any mod or asset code I write?
<smirk>
< >
Showing 1-5 of 5 comments
Per page: 1530 50