Jump to content

Recommended Posts

Hello,

I have 16 GB of RAM.

when the game starts, it's at roughly 1 GB of RAM when in the main menu. After loading the game, it's at roughly 2 GB or RAM usage.

I had it twice now that after playing a while, the RAM usage had gotten up to 12 GB

I tested it and found out that the RAM usage jumps up by about 300-500 MB per reload. So, after starting a game and loading the save, saving and loading each time adds the ram usage.

Is that normal? It looks to me like there's some memory issue there...

Regards

Link to comment
Share on other sites

Its a know issue. The RAM is not entirely cleared on leaving a game. Thats something i encountered in several unity-engine-games. So i doubt KLEI can do anything about this. The best solution is, to save, quit, restart the game. Its also much faster.

Link to comment
Share on other sites

It seems to be related to garbage collection. The problem is that allocating or freeing memory introduces a severe overhead from the OS (usually windows). Multiple solutions have come up, like reusing the same memory, mark memory to be freed, but don't do it until the CPU is free etc.

It looks to me like unity is doing something clever to boost performance, but either unity or game developers use some of it in a way, which makes it act like leaking memory. It's clearly not an ONI only problem. Rimworld leaks hundreds of MB by deleting a mod, which makes cleaning up the outdated mods really annoying and slow.

Link to comment
Share on other sites

11 hours ago, SharraShimada said:

Its a know issue. The RAM is not entirely cleared on leaving a game. Thats something i encountered in several unity-engine-games. So i doubt KLEI can do anything about this. The best solution is, to save, quit, restart the game. Its also much faster.

Klei did fix multiple instances of memory leaks in ONI in the past, it's just another one of those.

Since they have experience with memory leaks, it should probably be fixed quickly, assuming someone actually fills a bug report with a save instead of just making a thread in "suggestions".

Link to comment
Share on other sites

There were several bug reports about this in the past, and as far as i remember the answer of the devs was to quit the game to free the memory. They know about this issue. But when its engine related, there is not much they can do about it, besides waiting for Uniity to fix them. 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...