Horrific Memory Leak

Recent, too!

Recently I've started experiencing a horrendous memory leav when playing Gal Civ 2. Even though I've played larger games in the past, now I find most of my games lagging, sagging, and with skippy music and slow interface. It seems to get worse over time and I didn't notice it before and don't know why it suddenly seems to be happening. I've tried to turn down several graphical options to help but there seems to be little to no change and I don't know what to do about it.
12,972 views 19 replies
Reply #1 Top
Run some anti-spyware just to be on the safe side. Also, get more RAM. I'm running perfectly good with 1GB of RAM. I do notice that it lags after 4 hours of gaming. But a good reboot fixes it.
Reply #2 Top
Run some anti-spyware just to be on the safe side. Also, get more RAM. I'm running perfectly good with 1GB of RAM. I do notice that it lags after 4 hours of gaming. But a good reboot fixes it


You shouldn't have to reboot to play a game... memory leaks are an unfortunate and aweful side effect of using C++ to code something

If I were them, I would either invest in a good memory manager (which all good C++ development companies should od), or start using Managed Extensions and get the "big boys" (ie C#) into the mix.... nothing beats a decent Garbage Collector

Reply #3 Top
Have you actualy checked your GC2 memory usage over time?

There are a lot of things that can cause the symptoms you have, memory leak is just one of them.



Reply #4 Top
o0... wierd. I have a gig of ram too, and just played 12 hours straight (finished a game in one go...) , didn't have any slow down problems what-so-ever. Perhaps you should post your debug.err and have some of the more knowledgeable people look around. It might be something specific that is causing it.
Reply #5 Top
i have 512 and have to restart about ever 6 hours or so, but i need a break every six hours !!!
Reply #6 Top
I treat every time my graphic card crashes as a sign I should lay off the game for a while.

And it always does, sooner or later.
Reply #8 Top
Yeah and in middle to late game each AI is pumping out tons of ships and of course the game has to keep track of every single one of those ships, calculate the movements and such, all of which takes up progressively more cpu and memory.
Reply #9 Top
I don't think Stardock releases a game with such tremendous memory leeks.
I also have problems right now to play a game on a large map but that is due to my hardware, a 1.4MHz Laptop with 500MB of RAM. One round in a late game period takes up to one minute.
Reply #10 Top
Same problem here basically. Found playing on gigantic too much, large is very playable. I think the 512 RAM is the important part, it probably has to do with swapping in and out. Should be getting another 512 tomorrow.
Reply #11 Top
start using Managed Extensions and get the "big boys" (ie C#) into the mix.... nothing beats a decent Garbage Collector


Yeah... and nothing beats throwing performance out the window either...

C++ FTW!
Reply #12 Top
You shouldn't have to reboot to play a game... memory leaks are an unfortunate and aweful side effect of using C++ to code something

Bah. . . Memory leaks occur just as easily in garbage collected languages, too. In C++ you have to remember to deallocate memory. In garbage collected languages you have to remember to clear all references -- especially when two objects reference each other.
Reply #13 Top

You can be sure we put GalCiv II through intensive memory leak testing prior to release. There are actually some excellent tools (though expensive) to help track them down.

There aren't any significant memory links. The game will use a lot of memory if you play on a large enough galaxy with enough ships.  Also, when you leave the game, the memory it uses is deallocated.

Reply #14 Top

Turn off 'follow ship' in the interface settings, and before ending your turn, focus your view on somewhere in the galaxy with less activity. it will speed up each turn a lot.
Reply #15 Top
Never had ANY memory leak problems, it must be just the guy's computer.
Reply #16 Top
just save your game after awhile, im running on a 1.25g computer with 712 mb memory with a 256mb video card (geforce fx5700). i have no problems with this game. ( So far i have not found a reason to upgrade my computer it still runs alot of the newest games perfectly.
Reply #17 Top
I've noticed some memory leaks after loading games. If I load a game too many times in one session, it will crash to the desktop. Along the way, there will be minor glitches. I did wonder if saving the game has the same affect too, but I'm convinced 'load game' causes more memory leaks.
Reply #18 Top
Tip: If you ever play a game that has a memory leak, run it Windowed. Then alt-tab out occasionally, as this forces windows to reallocate memory. Sounds crazy, I know, but it worked for every game that I can remember that had a memory leak (Anarchy Online, Eve Online, Vampire Masquerade, to name a few).

That being said, I hadn't noticed any memory leaks (but I admit I wasn't looking for them)... but I do see more memory being used as the game continues, especially on larger maps, but that's to be expected. The game crawls for my friend who has only 256mb of memory... still very playable on small maps, but, it does bog down late game.
Reply #19 Top
If the problem has anything to do with saves, it may not help that I save obsessively and nearly constantly.

I've also considered that it may just be certain maps. Some games, I'm able to run them smoothly even to the end on large, others, I'll run a small one and it will get hard to run even when zoomed out to logos only, no 3d. Interesting.