View Single Post
Old 06-06-2006, 11:08 AM   #21
Andreas Raht
Administrator
 
Andreas Raht's Avatar
 
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,992
Quote:
Originally Posted by jarmenia
If the program is written to continue to take memory until the system drags to a hault, then yes, its not a memory leak just a memory hog. The result is the same however as system performance degrades over time. The program should run the same in the first 15 min as it does five hours later. This is not the case and I'll be happy to send you the performance logs when I get home if you want to see them.

Perhaps a solution to this is to empty the cache every so often, say once a year or every so many games. I'm not sure what exactly your caching or why so I can't propose a solution. The one thing I can say though is it needs to be looked at and I'll do whatever you ask to help resolve it. The way it is right now I can't run a 100 year sim without restarting the game every 20 years or so.
You're right, it should not be getting slower. Actually when all templates are in the cache it should be faster! When you start to simulate,and the program does not find templates in the cache, it will load and prepare them each time when a template is needed, so it should be slower when you start and faster after some "game days".

Interesting! I'll look at it again, and from a different "point of view" now.
Andreas Raht is offline