Page 1 of 1

Memory Leak?

Posted: Tue Jun 04, 2019 8:06 pm
by Horst
After a long session, I've noticed that the OoB.exe ate up 7300M RAM when I tried to quit. I can't remember that OoB used that large amount of RAM in the past.
When I load the Sandstorm scenario "Alam el Halfa" during the deployment phase with most of my units placed, the game already uses up 4488M RAM. Now what worries me: everytime I redeploy the same tank unit, the RAM increases by about 2-5M. Looks like the game can't properly release memory anymore. The game still seem to flush memory when loading a new scenario though. I have never bothered yet to observe the RAM usage during scenarios before. The 7300M event happened after the Herkules scenario. Reloading the last save "only" shows 5000M after wiping all AI units out.
Setting the game to the lowest gfx quality doesn't really make a difference.

Re: Memory Leak?

Posted: Tue Jun 04, 2019 9:38 pm
by Horst
Looks like I found the memory-bomber:
Vanilla, U.S. Pacific, Operation Downfall: 873M RAM usage
Modified, replacing the atlas.tga file (terrain overlay like transport icons) of 4M size with a modified one of 548K: 4879M RAM!!!

@Terminator: this is your changed file with the better train-transport overlay. No idea why the game hates your file so much, but after resaving it to 32-bit tga of 4M size like the vanilla one, my game only shows 870-1108M with all my other mod files. Dunno why the RAM often varies that much. Whatever, that's a reasonable RAM usage now.
Heh, looks like the tiny atlas.tga file was loaded like 8000 times into the RAM! :lol:

Re: Memory Leak?

Posted: Wed Jun 05, 2019 10:50 pm
by LNDavoust
5 GB of RAM for a single file... :shock:

Ok, this bug it's both hilarious and terryfing at the same time...

Re: Memory Leak?

Posted: Thu Jun 06, 2019 2:21 pm
by bru888
To be clear, if I am reading him properly, Horst is talking about a modification that Terminator made to a game file. So this is not a bug in the unmodified game.