Opticron Opticron

Memory Leaks: Still a Major Issue in 1.4

Memory Leaks: Still a Major Issue in 1.4

Memory Leaks have been a problem for GalCiv2 since its release, and I applaud the developers for their tireless and dedicated efforts in attempting to resolve these leaks.

That said, the leaks are still an ever-present and annoying issue inherent to the game. Typically they don't manifest themselves until a saved game starts to reach a certain maturity level (say, once everyone starts nearing the end of the tech tree, and/or everyone has a ton of ships flying around). The biggest challenges to the RAM usage of the game seem to be:

1) The ship config files
2) The number of ships in play at any given time
3) The number of ship designs in play at any given time
4) Use of the Shipyard to design ships
5) Battles between ships
6) Planetary invasions
7) Game saves
8) Galaxy size

These instances burn a slow, but steady hole in system memory allocation -- eventually causing a game to grow more and more unstable as it progresses. In a typical game, for instance, I'll experience no problems at all until I reach a certain tech level, and the game has become particularly deep and involved. By then, the game will begin to crash nearly every time I design a new ship, or every handful of turns. Usually the game will freeze, but occasionally it will crash-to-desktop with an "out of memory" error message.

Just to give you a sense of my system setup: I'm running a 2GHz Core Duo laptop with 2GB RAM and a 4GB paging file. I have a fairly recent video card with 256MB of memory. I defragment my hard drive regularly, I run only GalCiv2 when I'm playing the game, and usually I quit / turn off my machine after an hour or two of play. Also, I clear out my ship config files and saved game files after every game runs its course. Basically, there is nothing about my system or my gaming habits that should cause this crash situation to happen.
13,773 views 31 replies
Reply #26 Top
i heard the new nvidia geforce 8800 gtx is preety good too


Yes, it is a very good card if you're into nvidia (which I am)but the high price and the fact that I eventually want to run an SLI setup kept me in the 200.00 range. Plus, I don't play FPS's, like F.E.A.R. and Doom, so my graphics needs aren't the greatest. But like I said elsewhere, I will definitely buy another 7600GT once I get a mobo with two pci-e slots, which is looking to be about 1 to 2 years down the road unfortunately.

Besides, if you aren't into the most extreme, graphics demanding games, the 7600GT and similar ones are going for around 130.00 right now at newegg.
Reply #27 Top
I have only one into that error once, never again... try going out to download.com and downloading a program called freeRAM XP Pro - it is a ram monitoring program that can be programmed to auto-free your ram every x number of minutes. i've got mine set to free the ram every 30 minutes, it causes a momentary (5-10 second) lag in the system when it does so, but it makes sure that your ram is as free as possible
Reply #28 Top
To make the swapfile static:

On the desktop, right-click My Computer and choose Properties from the menu.
Select the Advanced tab, then click the Performance-Settings button.
Select the Advanced tab, then click the Virtual Memory-Change button.
Make sure the drive you want your swapfile on is highlighted in the upper window, then click on the Custom Size button and set both Initial Size and Maximum Size to the same value. Mine are set to 3072.
Click the Set button, then OK your way back out.

A reboot may be required, and you will be prompted if that is the case.

As Evil Stormbringer indicated, there is no specific option for creating a static file. He has already done it by setting his min/max to 4095.
It just prevents Windows from trying to increase the size on the fly, which is what it does if the max is set higher than the minimum size.
Reply #29 Top
To make the swapfile static:


Thanks, Moose.
Reply #30 Top
I asked the same questions a few days ago. look at this post for the answers from stardock:

WWW Link
Reply #31 Top
LOL That link tells you exactly what i told those guys and they thought i was crazy and clueless