Sarkath
Active Member
- Sep 8, 2019
- 547
- 949
- 245
That's more like a gentle flogging, really. If you have enough NPCs in the world the game has a tendency to create and trash several very large and expensive lists between turns.one thing i will say about the coding that could be some of the cause of the memory thrashing is lines likewhich have unneeded boxing. if you need to create an object for a single operation that is immedately thrown away it will probably lead to memory thrashing.Java:Integer.valueOf(parentElement.getAttribute("sonsMother"))
A few things have been improved since I last did any profiling, but I remember clocking it at over 48GB of allocations during a few minutes of gameplay (obviously not all at once, but the GC had to collect like mad to keep the game running with an 8GB heap size).