Page 1 of 1

Working as intended?

Posted: Sun Jun 14, 2020 11:02 pm
by Twotribes
My current set up uses 27 to 28 percent of my memory after playing this game that jumps to 35 to 40 percent, is that normal?

RE: Working as intended?

Posted: Sun Jun 14, 2020 11:02 pm
by Twotribes
I am talking about after you turn game off of course.

RE: Working as intended?

Posted: Mon Jun 15, 2020 7:00 am
by Vic
I dont think so. Is it permanent? or does it go down after time?

RE: Working as intended?

Posted: Mon Jun 15, 2020 9:10 am
by Twotribes
That I don't know just noticed it I will check it out more maybe something else caused it, I know the other day I had an update for windows to do and it went to 40 percent.

RE: Working as intended?

Posted: Mon Jun 15, 2020 9:13 am
by WeaverofBrokenThreads
I don't have any memory leaks.

RE: Working as intended?

Posted: Mon Jun 15, 2020 12:37 pm
by zgrssd
ORIGINAL: Vic

I dont think so. Is it permanent? or does it go down after time?
We are dealing with .NET, so Garbage Collection Memory Management. Memory Measurements are notoriously hard to do right. And issues even worse to diagnose.

So the usual Spiel so people do not missunderstand the GC:
Garbage Collection is expensive. While it runs, all other threads must pause. As a result .NET is really lazy at running the GC. If it only happens once - on application closure - that is the ideal case. Beyond that, only a few cases can get it to run:
- danger of a OutOfMemoryException. When you get one, the GC did all the collection and defragmentation it could.
- explicit calls of GC.Collect(). But really does not belong into production code.
- various optimisations. Concurrent/Server Garbage Collection. Automatic passes over generation 1 after leaving certain scopes.

Taskmanager memory usage:
200 MiB during intro sequence
183 MiB in main menu
just shy of 800 MiB after loading a large moon

RE: Working as intended?

Posted: Mon Jun 15, 2020 5:20 pm
by Twotribes
Well I can't recreate it right now so perhaps it is a minor problem, The only reason I notice it is cause at about 40 percent memory usage my system gets a few unhandled exception errors when playing this or Advanced Tactics Gold.