Cities: Skylines

Cities: Skylines

Loading Screen Mod
Igor 2019 年 6 月 1 日 下午 4:01
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?
最後修改者:Igor; 2019 年 6 月 1 日 下午 4:02
< >
目前顯示第 1-5 則留言,共 5
thale5  [開發人員] 2019 年 6 月 5 日 上午 9:30 
@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.
Evil Dave of Canada 2019 年 9 月 10 日 上午 2:41 
Is there anyway that a CSL mod could activate Mono's Garbage cleaning function?
Assuming there is such a feature of course.
thale5  [開發人員] 2019 年 9 月 11 日 上午 11:28 
@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 }
Evil Dave of Canada 2019 年 9 月 11 日 下午 4:39 
So I should make sure to add that in to any mod or asset code I write?
Evil Dave of Canada 2019 年 9 月 11 日 下午 4:40 
<smirk>
< >
目前顯示第 1-5 則留言,共 5
每頁顯示: 1530 50